﻿:root {
    --primary-color: #8aa2f0;
    --primary-gradient: linear-gradient(135deg, #a5b4fc 0%, #c4b5fd 100%);
    --primary-soft: #eef2ff;
    --welcome-card-grad: linear-gradient(135deg, rgba(165, 180, 252, 0.36) 0%, rgba(196, 181, 253, 0.22) 100%);
    --welcome-animation-opacity: 0.50;

    --bg-color: #f5f7fb;
    --card-bg: rgba(255, 255, 255, 0.55);
    --text-primary: #2b3445;
    --text-secondary: #64748b;
    --shadow: 0 10px 30px rgba(148, 163, 200, 0.12);
    --shadow-card-inset: inset 0 0 0 1px rgba(255, 255, 255, 0.75);
    --radius: 24px;
    --glass-border: 1px solid rgba(255, 255, 255, 0.72);
}

[data-theme="green"] {
    --primary-color: #6ee7b7;
    --primary-gradient: linear-gradient(135deg, #a7f3d0 0%, #6ee7b7 100%);
    --primary-soft: #ecfdf5;
    --welcome-card-grad: linear-gradient(135deg, rgba(167, 243, 208, 0.38) 0%, rgba(110, 231, 183, 0.22) 100%);
}

[data-theme="blue"] {
    --primary-color: #93c5fd;
    --primary-gradient: linear-gradient(135deg, #dbeafe 0%, #93c5fd 100%);
    --primary-soft: #eff6ff;
    --welcome-card-grad: linear-gradient(135deg, rgba(191, 219, 254, 0.38) 0%, rgba(147, 197, 253, 0.22) 100%);
}

[data-theme="orange"] {
    --primary-color: #fed7aa;
    --primary-gradient: linear-gradient(135deg, #fff7ed 0%, #fed7aa 100%);
    --primary-soft: #fffbeb;
    --welcome-card-grad: linear-gradient(135deg, rgba(254, 215, 170, 0.38) 0%, rgba(253, 186, 116, 0.22) 100%);
}

[data-theme="pink"] {
    --primary-color: #fbcfe8;
    --primary-gradient: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
    --primary-soft: #fdf2f8;
    --welcome-card-grad: linear-gradient(135deg, rgba(251, 207, 232, 0.38) 0%, rgba(244, 172, 202, 0.22) 100%);
}

[data-theme="red"] {
    --primary-color: #fecaca;
    --primary-gradient: linear-gradient(135deg, #fef2f2 0%, #fecaca 100%);
    --primary-soft: #fef2f2;
    --welcome-card-grad: linear-gradient(135deg, rgba(254, 202, 202, 0.38) 0%, rgba(252, 165, 165, 0.22) 100%);
}

[data-theme="night"] {
    --primary-color: #818cf8;
    --primary-gradient: linear-gradient(135deg, #4f46e5 0%, #818cf8 100%);
    --primary-soft: #312e81;
    --welcome-card-grad: linear-gradient(135deg, rgba(79,70,229,0.40) 0%, rgba(129,140,248,0.24) 100%);
    --welcome-animation-opacity: 0.24;

    --bg-color: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.45);
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --shadow: 0 10px 30px rgba(15, 23, 42, 0.35);
    --shadow-card-inset: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    --glass-border: 1px solid rgba(255, 255, 255, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body.light-glow-bg {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    padding-bottom: 86px;
    transition: background 0.42s ease, color 0.34s ease;
    position: relative;
    overflow-x: hidden;
}

body.light-glow-bg::before {
    content: "";
    position: fixed;
    top: -140px;
    right: -120px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(180, 200, 255, 0.28) 0%, transparent 72%);
    pointer-events: none;
    z-index: -1;
}

body.light-glow-bg::after {
    content: "";
    position: fixed;
    bottom: -180px;
    left: -100px;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200, 220, 255, 0.24) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

[data-theme="night"] body.light-glow-bg::before {
    background: radial-gradient(circle, rgba(120, 140, 255, 0.14) 0%, transparent 70%);
}

[data-theme="night"] body.light-glow-bg::after {
    background: radial-gradient(circle, rgba(90, 110, 220, 0.10) 0%, transparent 70%);
}

/* 加载动画 */
.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-color);
    z-index: 9999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.loading-overlay.active {
    display: flex;
}

.loading-spinner {
    width: 52px;
    height: 52px;
    border: 4px solid rgba(120, 140, 180, 0.14);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

[data-theme="night"] .loading-spinner {
    border-color: rgba(255, 255, 255, 0.09);
    border-top-color: var(--primary-color);
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-text {
    margin-top: 18px;
    font-size: 14px;
    color: var(--text-secondary);
}

/* 头部 */
.header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 14px 18px;
    background: var(--card-bg);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border-bottom: var(--glass-border);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-title {
    font-size: 19px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.6px;
}

.header-back {
    position: absolute;
    left: 18px;
    font-size: 26px;
    color: var(--text-primary);
    cursor: pointer;
    z-index: 10;
}

/* ==========首页问候卡片========== */
.user-card {
    margin: 20px 18px;
    padding: 30px 24px;
    background: var(--welcome-card-grad);
    border-radius: 30px;
    color: var(--text-primary);
    border: var(--glass-border);
    box-shadow: var(--shadow), var(--shadow-card-inset);
    position: relative;
    overflow: hidden;
}

.user-card::before {
    content: '';
    position:absolute;
    top:-50%;
    left:-50%;
    width:200%;
    height:200%;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        var(--primary-color) 60deg,
        transparent 120deg,
        transparent 180deg,
        var(--primary-color) 240deg,
        transparent 300deg
    );
    opacity: var(--welcome-animation-opacity);
    animation: flowGradient 8s linear infinite;
    z-index:1;
}
.user-card::after {
    content: '';
    position: absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background: inherit;
    z-index:2;
}

@keyframes flowGradient {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.greeting {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
    position: relative;
    z-index: 3;
}

.user-time {
    font-size: 14px;
    color: var(--text-secondary);
    position: relative;
    z-index: 3;
}

/* 首页双列功能服务卡片 */
.services-section {
    margin: 24px 18px;
}

.section-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 18px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 28px;
}

.service-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 20px 18px;
    backdrop-filter: blur(18px) saturate(130%);
    -webkit-backdrop-filter: blur(18px) saturate(130%);
    border: var(--glass-border);
    border-radius: 26px;
    box-shadow: var(--shadow), var(--shadow-card-inset);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    border: none;
    width: 100%;
    text-align: left;
    font-family: inherit;
    color: inherit;
    position: relative;
    overflow: hidden;
}
.service-item:nth-child(4n+1) { background: linear-gradient(145deg, rgba(238, 242, 255, 0.8) 0%, rgba(224, 231, 255, 0.55) 100%); }
.service-item:nth-child(4n+2) { background: linear-gradient(145deg, rgba(236, 253, 245, 0.8) 0%, rgba(209, 250, 229, 0.55) 100%); }
.service-item:nth-child(4n+3) { background: linear-gradient(145deg, rgba(255, 247, 237, 0.8) 0%, rgba(254, 215, 170, 0.5) 100%); }
.service-item:nth-child(4n+4) { background: linear-gradient(145deg, rgba(253, 242, 248, 0.8) 0%, rgba(251, 207, 232, 0.5) 100%); }

.service-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(148, 163, 200, 0.18), var(--shadow-card-inset);
}

.service-item:active {
    transform: scale(0.97);
}

.service-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 14px;
    position: relative;
    flex-shrink: 0;
}

.service-icon.green {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #047857;
}

.service-icon.blue {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1d4ed8;
}

.service-icon.purple {
    background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
    color: #6d28d9;
}

.service-icon.pink {
    background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
    color: #be185d;
}

.service-icon.orange {
    background: linear-gradient(135deg, #ffedd5 0%, #fed7aa 100%);
    color: #c2410c;
}

.service-icon.cyan {
    background: linear-gradient(135deg, #cffafe 0%, #a5f3fc 100%);
    color: #0e7490;
}

.service-content {
    width: 100%;
}

.service-name {
    font-size: 15px;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 4px;
    display: block;
}

.service-desc {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.45;
}

.service-arrow {
    position: absolute;
    right: 16px;
    bottom: 16px;
    color: var(--text-secondary);
    font-size: 18px;
    transition: all 0.24s;
    opacity: 0.5;
}

.service-item:hover .service-arrow {
    transform: translateX(4px);
    opacity: 1;
    color: var(--primary-color);
}

.help-section {
    margin: 0 18px 28px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.6) 0%, rgba(248, 250, 252, 0.45) 100%);
    backdrop-filter: blur(18px) saturate(130%);
    -webkit-backdrop-filter: blur(18px) saturate(130%);
    border: var(--glass-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow), var(--shadow-card-inset);
    overflow: hidden;
}

.help-header {
    display: flex;
    align-items: center;
    padding: 18px 20px;
    cursor: pointer;
    transition: background 0.24s;
}

.help-header:active {
    background: rgba(0, 0, 0, 0.04);
}

[data-theme="night"] .help-header:active {
    background: rgba(255, 255, 255, 0.05);
}

.help-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #a16207;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-right: 16px;
}

[data-theme="night"] .help-icon {
    background: linear-gradient(135deg, #713f12 0%, #a16207 100%);
    color: #fde68a;
}

.help-title {
    flex: 1;
}

.help-title-text {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    display: block;
    margin-bottom: 4px;
}

.help-title-desc {
    font-size: 12.5px;
    color: var(--text-secondary);
}

.help-toggle {
    color: var(--text-secondary);
    font-size: 20px;
    transition: transform 0.34s;
}

.help-section.expanded .help-toggle {
    transform: rotate(180deg);
}

.help-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.38s ease;
}

.help-section.expanded .help-content {
    max-height: 1000px;
}

.help-item {
    padding: 16px 20px;
    border-top: var(--glass-border);
}

.help-item-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.help-item-content {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.help-item-content p {
    margin-bottom: 10px;
}

.help-notice {
    background: rgba(254, 226, 226, 0.7);
    border-left: 4px solid #fca5a5;
    padding: 12px 14px;
    border-radius: 10px;
    margin-top: 12px;
    font-size: 12px;
    color: #b91c1c;
}

[data-theme="night"] .help-notice {
    background: rgba(127, 29, 29, 0.35);
    border-left-color: #f87171;
    color: #fecaca;
}

/* 底部导航 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--card-bg);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    border-top: var(--glass-border);
    display: flex;
    justify-content: space-around;
    padding: 10px 0 calc(10px + env(safe-area-inset-bottom));
    box-shadow: 0 -8px 32px rgba(140, 170, 220, 0.08);
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 6px 28px;
    cursor: pointer;
    transition: all 0.24s;
    text-decoration: none;
    color: var(--text-secondary);
}

.nav-item.active {
    color: var(--primary-color);
}

.nav-icon {
    font-size: 26px;
    transition: transform 0.22s;
}

.nav-item:active .nav-icon {
    transform: scale(0.88);
}

.nav-text {
    font-size: 12px;
    font-weight: 500;
}

/* =========页面切换动画========= */
.page {
    display: none;
}
.page.active {
    display: block;
    animation: pageEnter 1s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes pageEnter {
    from {
        opacity:0;
        transform: translateY(24px) scale(0.97);
        filter: blur(2px);
    }
    to {
        opacity:1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

/* 个人中心头部 */
.profile-header {
    background: var(--welcome-card-grad);
    padding: 44px 26px;
    color: var(--text-primary);
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: var(--glass-border);
}

.profile-header::before {
    content: "";
    position: absolute;
    top: -60%;
    right: -30%;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(165, 180, 252, 0.32) 0%, transparent 70%);
}

.avatar-img {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 18px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
    display: block;
    background: white;
}

.profile-name {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
}

.profile-id {
    color: var(--text-secondary);
    font-size: 14px;
}

.menu-list {
    margin: 20px 18px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.6) 0%, rgba(248, 250, 252, 0.45) 100%);
    backdrop-filter: blur(18px) saturate(130%);
    -webkit-backdrop-filter: blur(18px) saturate(130%);
    border: var(--glass-border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow), var(--shadow-card-inset);
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-bottom: var(--glass-border);
    cursor: pointer;
    transition: background 0.24s;
    text-decoration: none;
    color: inherit;
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item:active {
    background: rgba(0, 0, 0, 0.04);
}

[data-theme="night"] .menu-item:active {
    background: rgba(255, 255, 255, 0.05);
}

.menu-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 14px;
    font-size: 20px;
}

.menu-icon.purple {
    background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
    color: #6d28d9;
}

.menu-icon.blue {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1d4ed8;
}

.menu-icon.green {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #047857;
}

.menu-icon.orange {
    background: linear-gradient(135deg, #ffedd5 0%, #fed7aa 100%);
    color: #c2410c;
}

.menu-content {
    flex: 1;
}

.menu-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
}

.menu-desc {
    font-size: 12.5px;
    color: var(--text-secondary);
    margin-top: 3px;
}

.menu-arrow {
    color: var(--text-secondary);
    font-size: 18px;
}

/* 二级页面 */
.hzy-common-page {
    padding: 18px;
    padding-bottom: 90px;
}

.common-main-btn {
    display: flex;
    align-items: center;
    padding: 22px 20px;
    background: var(--welcome-card-grad);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    color: var(--text-primary);
    text-decoration: none;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
    border: var(--glass-border);
}

.common-main-btn::before {
    content: "";
    position: absolute;
    top: -60%;
    right: -20%;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
    opacity:0.15;
}

.common-main-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin-right: 16px;
    flex-shrink: 0;
}

.common-main-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.common-main-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.common-main-desc {
    font-size: 14px;
    color: var(--text-secondary);
}

.common-section {
    margin-bottom: 24px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.6) 0%, rgba(248, 250, 252, 0.45) 100%);
    backdrop-filter: blur(18px) saturate(130%);
    -webkit-backdrop-filter: blur(18px) saturate(130%);
    border: var(--glass-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow), var(--shadow-card-inset);
    padding: 20px;
}

.common-section-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.common-icon-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px 8px;
}

.common-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: transform 0.24s;
}

.common-icon-item:active {
    transform: scale(0.91);
}

.common-icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.common-icon-circle.green {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #047857;
}

.common-icon-circle.blue {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1d4ed8;
}

.common-icon-circle.purple {
    background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
    color: #6d28d9;
}

.common-icon-circle.cyan {
    background: linear-gradient(135deg, #cffafe 0%, #a5f3fc 100%);
    color: #0e7490;
}

.common-icon-circle.yellow {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #a16207;
}

.common-icon-circle.orange {
    background: linear-gradient(135deg, #ffedd5 0%, #fed7aa 100%);
    color: #c2410c;
}

.common-icon-circle.pink {
    background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
    color: #be185d;
}

.common-icon-circle.gray {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    color: #475569;
}

.common-icon-text {
    font-size: 12px;
    color: var(--text-primary);
    text-align: center;
    line-height: 1.3;
}

/* 关于页面 */
.about-page {
    padding: 36px 22px;
    text-align: center;
}

.about-logo-img {
    width: 90px;
    height: 90px;
    border-radius: 22px;
    object-fit: cover;
    margin: 0 auto 20px;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.12);
    display: block;
}

.about-name {
    font-size: 21px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.about-version {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 36px;
}

.about-menu-list {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.6) 0%, rgba(248, 250, 252, 0.45) 100%);
    backdrop-filter: blur(18px) saturate(130%);
    -webkit-backdrop-filter: blur(18px) saturate(130%);
    border: var(--glass-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow), var(--shadow-card-inset);
    overflow: hidden;
    margin-bottom: 44px;
}

.about-menu-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-bottom: var(--glass-border);
    cursor: pointer;
    transition: background 0.24s;
}

.about-menu-item:last-child {
    border-bottom: none;
}

.about-menu-item:active {
    background: rgba(0, 0, 0, 0.04);
}

[data-theme="night"] .about-menu-item:active {
    background: rgba(255, 255, 255, 0.05);
}

.about-menu-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 14px;
    font-size: 20px;
}

.about-menu-text {
    flex: 1;
    text-align: left;
    font-size: 15px;
    color: var(--text-primary);
    font-weight: 500;
}

.about-footer {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 2;
    text-align: center;
    opacity: 0.72;
    padding-bottom: 10px;
}

/* 设置页面 */
.settings-page-content {
    padding: 18px;
    padding-bottom: 90px;
}

.setting-section {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.6) 0%, rgba(248, 250, 252, 0.45) 100%);
    backdrop-filter: blur(18px) saturate(130%);
    -webkit-backdrop-filter: blur(18px) saturate(130%);
    border: var(--glass-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow), var(--shadow-card-inset);
    padding: 18px 20px;
    margin-bottom: 24px;
}

.setting-section-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 16px;
    letter-spacing: 0.6px;
}

.theme-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.theme-list-item {
    display: flex;
    align-items: center;
    padding: 12px 14px;
    border-radius: 16px;
    cursor: pointer;
    transition: background 0.24s;
    border: 2px solid transparent;
}

.theme-list-item.active {
    border-color: var(--primary-color);
    background: rgba(0, 0, 0, 0.045);
}

[data-theme="night"] .theme-list-item.active {
    background: rgba(255, 255, 255, 0.06);
}

.theme-list-preview {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    margin-right: 16px;
    flex-shrink: 0;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.10);
}

.theme-list-preview.purple {
    background: linear-gradient(135deg, #a5b4fc 0%, #c4b5fd 100%);
}

.theme-list-preview.green {
    background: linear-gradient(135deg, #a7f3d0 0%, #6ee7b7 100%);
}

.theme-list-preview.blue {
    background: linear-gradient(135deg, #bfdbfe 0%, #93c5fd 100%);
}

.theme-list-preview.orange {
    background: linear-gradient(135deg, #fed7aa 0%, #fdba74 100%);
}

.theme-list-preview.pink {
    background: linear-gradient(135deg, #fbcfe8 0%, #f9a8d4 100%);
}

.theme-list-preview.red {
    background: linear-gradient(135deg, #fecaca 0%, #fca5a5 100%);
}

.theme-list-preview.night {
    background: linear-gradient(135deg, #334155 0%, #0f172a 100%);
}

.theme-list-info {
    flex: 1;
}

.theme-list-name {
    font-size: 14.5px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 3px;
}

.theme-list-desc {
    font-size: 12px;
    color: var(--text-secondary);
}

.theme-list-check {
    color: var(--primary-color);
    font-size: 18px;
    font-weight: 600;
    opacity: 0;
}

.theme-list-item.active .theme-list-check {
    opacity: 1;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 130px;
    left: 50%;
    transform: translateX(-50%) translateY(24px);
    background: rgba(15, 23, 42, 0.72);
    color: white;
    padding: 12px 22px;
    border-radius: 28px;
    font-size: 13.5px;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: all 0.34s ease;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* 模态框 */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 26px;
    animation: fadeIn 0.36s ease;
}

.modal-overlay.show {
    display: flex;
}

.modal-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    border: var(--glass-border);
    border-radius: 28px;
    padding: 30px 24px 24px;
    width: 100%;
    max-width: 320px;
    text-align: center;
    box-shadow: var(--shadow);
    animation: modalIn 0.34s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.88) translateY(24px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-img {
    width: 100%;
    max-width: 200px;
    height: auto;
    margin: 0 auto 16px;
    border-radius: 14px;
    display: block;
    object-fit: cover;
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.modal-desc {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
}

.modal-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 16px;
    background: var(--primary-gradient);
    color: #312e81;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.22s;
    font-family: inherit;
}

.modal-btn:active {
    transform: scale(0.96);
}

/* 平板适配 */
@media (min-width: 768px) {

    .header,
    .profile-header,
    .hzy-common-page,
    .services-section,
    .help-section,
    .menu-list,
    .settings-page-content,
    .about-page {
        max-width: 620px;
        margin-left: auto;
        margin-right: auto;
    }

    .user-card {
        max-width: calc(620px - 36px);
        margin-left: auto;
        margin-right: auto;
    }

    .bottom-nav {
        max-width: 620px;
        margin-left: auto;
        margin-right: auto;
    }
}
