/* 吉搭高端 App 视觉层：只改样式，不改业务逻辑 */
:root {
    --app-bg: #f0faf4;
    --card-bg: rgba(255, 255, 255, 0.88);
    --text-main: #121826;
    --text-soft: #6b7280;
    --brand: #10b981;
    --brand-2: #34d399;
    --brand-3: #6ee7b7;
    --danger: #ef4444;
    --shadow-soft: 0 18px 45px rgba(16, 185, 129, 0.08);
    --shadow-float: 0 18px 55px rgba(16, 185, 129, 0.18);
    --radius-xl: 22px;
}

html {
    background: var(--app-bg);
}

body {
    color: var(--text-main);
    background:
        radial-gradient(circle at 15% -10%, rgba(16, 185, 129, 0.15), transparent 34%),
        radial-gradient(circle at 85% 0%, rgba(52, 211, 153, 0.12), transparent 30%),
        linear-gradient(180deg, #f8fdf9 0%, #f0faf4 42%, #e8f5ee 100%) !important;
    min-height: 100vh;
    letter-spacing: -0.01em;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,.55) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.55) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,.25), transparent 45%);
    z-index: -1;
}

.main-content {
    padding-bottom: 112px !important;
}

.gradient-header,
header.gradient-header,
.gradient {
    background:
        linear-gradient(135deg, rgba(16, 185, 129, 0.95) 0%, rgba(52, 211, 153, 0.90) 48%, rgba(110, 231, 183, 0.85) 100%) !important;
    box-shadow: 0 18px 50px rgba(16, 185, 129, 0.18);
    backdrop-filter: blur(20px);
}

body > header.gradient-header,
body > header.gradient,
body > header.bg-white,
body > header[class*="bg-white"] {
    margin: 12px 14px 0;
    border-radius: 26px !important;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.58) !important;
}

body > header.sticky,
body > header[class*="sticky"] {
    top: 12px !important;
}

header.sticky,
header.bg-white,
header[class*="bg-white"] {
    background: rgba(255,255,255,0.82) !important;
    backdrop-filter: blur(22px);
    border-bottom: 1px solid rgba(255,255,255,0.55) !important;
    box-shadow: 0 12px 35px rgba(17, 24, 39, 0.06);
}

.bg-white {
    background-color: var(--card-bg) !important;
}

.rounded-xl {
    border-radius: 18px !important;
}

.rounded-2xl {
    border-radius: var(--radius-xl) !important;
}

.shadow-sm,
.shadow,
.shadow-lg {
    box-shadow: var(--shadow-soft) !important;
}

.activity-card,
.bg-white.rounded-xl,
.bg-white.rounded-2xl,
section.bg-white,
form.bg-white,
.card,
.item {
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
}

.activity-card {
    overflow: hidden;
    transform: translateZ(0);
}

.activity-card:hover,
a.block.bg-white:hover,
.item:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 55px rgba(16, 185, 129, 0.12) !important;
}

button,
a,
.activity-card,
.item {
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, opacity .18s ease;
}

button:active,
a:active {
    transform: scale(0.98);
}

button[class*="bg-purple"],
a[class*="bg-purple"],
button[class*="bg-orange"],
a[class*="bg-orange"],
button[class*="bg-green"],
a[class*="bg-green"],
button[class*="bg-emerald"],
a[class*="bg-emerald"] {
    border: 0 !important;
    box-shadow: 0 14px 34px rgba(16, 185, 129, 0.22);
}

.bg-purple-600,
.bg-purple-500 {
    background: linear-gradient(135deg, var(--brand), var(--brand-2)) !important;
}

.bg-orange-500 {
    background: linear-gradient(135deg, #ff8a3d, #ff5f6d) !important;
}

.bg-green-500,
.bg-emerald-400 {
    background: linear-gradient(135deg, #16c784, #22d3a6) !important;
}

input,
textarea,
select {
    border: 1px solid rgba(148, 163, 184, 0.18) !important;
    background: rgba(248, 250, 252, 0.88) !important;
    border-radius: 16px !important;
    outline: none !important;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

input:focus,
textarea:focus,
select:focus {
    border-color: rgba(16, 185, 129, 0.45) !important;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.08);
    background: rgba(255,255,255,0.96) !important;
}

.bottom-nav {
    left: 14px !important;
    right: 14px !important;
    bottom: 14px !important;
    border: 1px solid rgba(255, 255, 255, 0.76) !important;
    border-radius: 28px !important;
    background: rgba(255, 255, 255, 0.78) !important;
    backdrop-filter: blur(26px) saturate(1.2);
    box-shadow: 0 22px 60px rgba(28, 34, 74, 0.18) !important;
    overflow: visible;
    max-width: 520px;
    margin: 0 auto;
}

.bottom-nav > div {
    padding: 8px 8px !important;
}

.bottom-nav a,
.bottom-nav button {
    border-radius: 20px;
}

.bottom-nav a.text-purple-600 {
    color: var(--brand) !important;
    background: rgba(16, 185, 129, 0.10);
}

.bottom-nav .w-14.h-14 {
    width: 62px !important;
    height: 62px !important;
    background: linear-gradient(135deg, var(--brand), var(--brand-2)) !important;
    box-shadow: var(--shadow-float) !important;
    border: 4px solid rgba(255,255,255,.86);
}

.modal {
    backdrop-filter: blur(14px);
    background: rgba(8, 13, 30, 0.52) !important;
}

.modal-content {
    border: 1px solid rgba(255,255,255,.72);
    box-shadow: 0 25px 80px rgba(0,0,0,.22);
    background: rgba(255,255,255,.94) !important;
}

.category-pill,
.chip span {
    box-shadow: 0 8px 18px rgba(17,24,39,.06);
}

img {
    image-rendering: auto;
}

/* 统一前台页面顶部标题栏：固定高度、圆角、不透明渐变 */
body:not(.admin-body) > header.gradient-header,
body:not(.admin-body) > header.gradient,
body:not(.admin-body) > header.home-topbar {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%) !important;
    margin: 12px 14px 0 !important;
    border-radius: 24px !important;
    height: 56px !important;
    min-height: 56px !important;
    padding: 10px 16px !important;
    box-shadow: 0 12px 30px rgba(16,185,129,.20) !important;
    border: 1px solid rgba(255,255,255,.52) !important;
    backdrop-filter: none !important;
    overflow: visible !important;
    top: 12px !important;
}

body:not(.admin-body) > header.gradient-header > h1,
body:not(.admin-body) > header.gradient > div > h1,
body:not(.admin-body) > header.home-topbar .brand-name {
    font-size: 20px !important;
    line-height: 28px !important;
    font-weight: 800 !important;
    color: #fff !important;
}

body:not(.admin-body) > header.gradient-header a,
body:not(.admin-body) > header.gradient-header button,
body:not(.admin-body) > header.gradient a,
body:not(.admin-body) > header.gradient button,
body:not(.admin-body) > header.home-topbar button {
    flex-shrink: 0;
}

/* 后台高端化 */
aside.w-64 {
    background: rgba(255,255,255,.86) !important;
    backdrop-filter: blur(22px);
    border-right: 1px solid rgba(255,255,255,.7);
    box-shadow: 18px 0 45px rgba(15,23,42,.06) !important;
}

aside.w-64 nav a {
    border-radius: 16px !important;
    margin-bottom: 6px !important;
}

aside.w-64 nav a.bg-purple-50 {
    background: linear-gradient(135deg, rgba(16,185,129,.14), rgba(52,211,153,.12)) !important;
    color: var(--brand) !important;
    font-weight: 700;
}

table {
    border-collapse: separate;
    border-spacing: 0;
}

thead {
    background: rgba(248,250,252,.9) !important;
}

td,
th {
    border-color: rgba(226, 232, 240, 0.8) !important;
}

@media (min-width: 768px) {
    body:not(.admin-body) {
        position: relative;
    }

    body:not(.admin-body) > .main-content,
    body:not(.admin-body) > main,
    body:not(.admin-body) > div.main-content {
        max-width: 520px;
        margin-left: auto;
        margin-right: auto;
    }

    body:not(.admin-body) > header {
        max-width: 520px;
        margin-left: auto;
        margin-right: auto;
    }
}
