/* ==================== AI装修 - 高端设计系统 ==================== */
:root {
    --primary: #07C160;
    --primary-dark: #05A14E;
    --primary-light: #E8F8EE;
    --primary-glow: rgba(7, 193, 96, 0.35);
    --accent: #FF6B35;
    --accent-light: #FFF3EB;
    --danger: #FA5151;
    --warning: #FFC300;
    --success: #07C160;
    --info: #10AEFF;
    --bg: #F4F6F8;
    --bg-warm: #F8F6F3;
    --white: #FFFFFF;
    --card: #FFFFFF;
    --text: #1A1A2E;
    --text-secondary: #555770;
    --text-light: #8E8EA0;
    --text-gray: #B0B0C0;
    --border: #EDEEF2;
    --border-light: #F5F6F8;
    --orange: #FF6B35;
    --radius: 16px;
    --radius-sm: 12px;
    --radius-xs: 8px;
    --radius-full: 999px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
    --shadow: 0 4px 16px rgba(0,0,0,0.06), 0 1px 4px rgba(0,0,0,0.04);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.1), 0 4px 12px rgba(0,0,0,0.05);
    --shadow-glow: 0 8px 32px var(--primary-glow);
    --tab-height: 60px;
    --top-bar-height: 52px;
    --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    --font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { height: 100%; overflow-x: hidden; }
body {
    font-family: var(--font-family);
    background: var(--bg);
    color: var(--text);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-bottom: calc(var(--tab-height) + 24px + env(safe-area-inset-bottom));
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    position: relative;
}
a { text-decoration: none; color: inherit; }
input, select, textarea, button { font-family: inherit; outline: none; }
button { cursor: pointer; }

/* ==================== 全局动画 ==================== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}
@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
}
@keyframes glow {
    0%, 100% { box-shadow: 0 0 8px var(--primary-glow); }
    50% { box-shadow: 0 0 20px var(--primary-glow); }
}
@keyframes ripple {
    0% { transform: scale(0); opacity: 0.6; }
    100% { transform: scale(4); opacity: 0; }
}
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes bounceIn {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.05); }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); opacity: 1; }
}

/* 页面切换动画 */
.page {
    display: none;
    padding-bottom: 16px;
    animation: fadeIn 0.35s ease;
}
.page.active { display: block; }

/* 骨架屏加载 */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

/* ==================== 顶部标题栏 ==================== */
.top-bar {
    position: sticky;
    top: 0;
    z-index: 99;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 17px;
    font-weight: 600;
    height: var(--top-bar-height);
    letter-spacing: 0.3px;
    box-shadow: 0 2px 16px rgba(7, 193, 96, 0.25);
    animation: slideDown 0.4s ease;
}
.top-bar::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 8px;
    background: linear-gradient(to bottom, rgba(7,193,96,0.08), transparent);
    pointer-events: none;
}

.page-header {
    padding: 20px 16px 12px;
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: fadeIn 0.3s ease;
}

/* ==================== 底部Tab导航 ==================== */
.tab-bar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    height: var(--tab-height);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-top: 1px solid rgba(0,0,0,0.04);
    display: flex;
    z-index: 100;
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -4px 24px rgba(0,0,0,0.04);
}
.tab-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
    font-size: 10px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    background: none;
    position: relative;
    letter-spacing: 0.3px;
    gap: 3px;
    padding: 6px 0;
}
.tab-item .tab-icon {
    font-size: 22px;
    margin-bottom: 1px;
    transition: var(--transition-bounce);
    position: relative;
}
.tab-item.active {
    color: var(--primary);
}
.tab-item.active .tab-icon {
    transform: scale(1.15) translateY(-2px);
}
.tab-item.active::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    animation: bounceIn 0.4s ease;
}
.tab-item:active {
    transform: scale(0.92);
}

/* ==================== 首页头部 ==================== */
.home-header {
    background: linear-gradient(135deg, #07C160 0%, #05A14E 30%, #048A43 60%, #2ECC71 100%);
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
    padding: 0 20px 28px;
    position: relative;
    overflow: hidden;
}
.home-header::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}
.home-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: -5%;
    width: 110%;
    height: 32px;
    background: var(--bg);
    border-radius: 24px 24px 0 0;
}
.home-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    color: white;
    font-size: 14px;
    position: relative;
    z-index: 1;
}
#homeLangBtn {
    padding: 5px 14px;
    background: rgba(255,255,255,0.2);
    border-radius: var(--radius-full);
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(8px);
}
#homeLangBtn:active {
    background: rgba(255,255,255,0.35);
    transform: scale(0.95);
}
.home-welcome {
    padding: 8px 0 20px;
    color: white;
    position: relative;
    z-index: 1;
}
.home-welcome h2 {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.3px;
    line-height: 1.3;
    text-shadow: 0 1px 4px rgba(0,0,0,0.1);
}
.home-welcome p {
    font-size: 13px;
    opacity: 0.88;
    margin-top: 6px;
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* ==================== 算力卡片 ==================== */
.power-banner {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-lg);
    margin-top: -12px;
    position: relative;
    z-index: 2;
    animation: fadeInUp 0.5s ease 0.1s both;
    border: 1px solid rgba(0,0,0,0.03);
}
.power-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(7,193,96,0.03), transparent 60%);
    pointer-events: none;
}
.power-banner .power-left {
    display: flex;
    flex-direction: column;
}
.power-banner .power-label {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 500;
    letter-spacing: 0.5px;
}
.power-banner .power-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--text);
    margin: 4px 0;
    line-height: 1.1;
    background: linear-gradient(135deg, var(--text), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.power-banner .power-sub {
    font-size: 11px;
    color: var(--primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}
.power-banner .power-sub::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    display: inline-block;
    animation: pulse 2s infinite;
}
.power-banner .power-actions {
    display: flex;
    gap: 10px;
}
.power-banner .power-btn {
    padding: 10px 18px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
    letter-spacing: 0.3px;
}
.power-btn.primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 16px rgba(7, 193, 96, 0.3);
}
.power-btn.primary:active {
    transform: scale(0.95);
    box-shadow: 0 2px 8px rgba(7, 193, 96, 0.3);
}
.power-btn.outline {
    background: var(--primary-light);
    color: var(--primary);
}
.power-btn.outline:active {
    transform: scale(0.95);
    background: #d4f1e0;
}

/* ==================== 功能板块 ==================== */
.section-block {
    padding: 20px 16px;
    animation: fadeIn 0.4s ease;
}
.section-title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
}
.section-title::before {
    content: '';
    width: 4px;
    height: 20px;
    background: linear-gradient(180deg, var(--primary), #2ECC71);
    border-radius: 3px;
    display: block;
}
.section-more {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 500;
    margin-left: auto;
    padding: 4px 12px;
    background: var(--bg);
    border-radius: var(--radius-full);
    transition: var(--transition);
}
.section-more:active {
    background: var(--primary-light);
    color: var(--primary);
}

/* ==================== 功能卡片网格 ==================== */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.feature-item {
    background: var(--white);
    border-radius: var(--radius-sm);
    padding: 18px 8px 14px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(0,0,0,0.02);
    position: relative;
    overflow: hidden;
}
.feature-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(7,193,96,0.05), transparent);
    opacity: 0;
    transition: var(--transition);
}
.feature-item:active {
    transform: scale(0.95);
    box-shadow: var(--shadow);
}
.feature-item:active::before {
    opacity: 1;
}
.feature-item .fi-icon {
    font-size: 30px;
    transition: var(--transition-bounce);
}
.feature-item:active .fi-icon {
    transform: scale(1.15);
}
.feature-item .fi-name {
    font-size: 12px;
    color: var(--text);
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* ==================== 服务项目列表 ==================== */
.service-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.service-item {
    background: var(--white);
    border-radius: var(--radius);
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.02);
    position: relative;
    overflow: hidden;
}
.service-item::after {
    content: '';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-top: 2px solid var(--text-gray);
    border-right: 2px solid var(--text-gray);
    transform: translateY(-50%) rotate(45deg);
    opacity: 0.5;
}
.service-item:active {
    transform: scale(0.98);
    box-shadow: var(--shadow);
}
.service-item .si-icon {
    font-size: 34px;
    flex-shrink: 0;
}
.service-item .si-info {
    flex: 1;
    min-width: 0;
}
.service-item .si-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}
.service-item .si-desc {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 3px;
    line-height: 1.4;
}
.service-item .si-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
    margin-right: 16px;
}
.service-item .si-price small {
    font-size: 11px;
    font-weight: 500;
}

/* ==================== 促销横幅 ==================== */
.promo-banner {
    background: linear-gradient(135deg, #FFF8F0 0%, #FFF3EB 50%, #FFEDE0 100%);
    border-radius: var(--radius);
    padding: 18px 20px;
    margin: 0 16px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid rgba(255,107,53,0.1);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.promo-banner::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(255,107,53,0.08) 0%, transparent 70%);
    border-radius: 50%;
}
.promo-banner:active {
    transform: scale(0.98);
}
.promo-banner .promo-icon {
    font-size: 38px;
    animation: float 3s ease-in-out infinite;
}
.promo-banner .promo-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    flex: 1;
    line-height: 1.4;
}
.promo-banner .promo-btn {
    padding: 8px 18px;
    background: linear-gradient(135deg, var(--accent), #E85D2C);
    color: white;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(255,107,53,0.3);
    transition: var(--transition);
}
.promo-banner .promo-btn:active {
    transform: scale(0.95);
}

/* ==================== 报价单页 ==================== */
.quotation-header {
    background: var(--primary);
    color: white;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.quotation-header .back-icon { font-size: 20px; cursor: pointer; }
.quotation-header h2 { font-size: 17px; }

.quotation-room {
    padding: 14px 16px;
    background: var(--white);
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--border-light);
}
.quotation-room .room-tag {
    padding: 5px 14px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
}
.quotation-room select {
    flex: 1;
    border: none;
    font-size: 14px;
    outline: none;
    color: var(--text);
    font-weight: 500;
}

.quotation-table {
    margin: 16px;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.quotation-table table { width: 100%; border-collapse: collapse; }
.quotation-table th {
    background: linear-gradient(180deg, #FAFBFC, #F5F6F8);
    padding: 12px 8px;
    font-size: 11px;
    color: var(--text-light);
    text-align: center;
    font-weight: 600;
    border-bottom: 1px solid var(--border);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.quotation-table td {
    padding: 12px 8px;
    text-align: center;
    font-size: 13px;
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
}
.quotation-table td input {
    width: 100%;
    border: none;
    text-align: center;
    font-size: 13px;
    outline: none;
    padding: 6px 4px;
    border-radius: var(--radius-xs);
    transition: var(--transition);
    color: var(--text);
    font-weight: 500;
}
.quotation-table td input:focus {
    background: var(--primary-light);
    box-shadow: 0 0 0 2px rgba(7,193,96,0.15);
}
.quotation-table .qt-product input { text-align: left; padding-left: 10px; }
.quotation-table .qt-del {
    color: var(--text-gray);
    font-size: 16px;
    cursor: pointer;
    border: none;
    background: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.quotation-table .qt-del:active {
    background: #FEE2E2;
    color: var(--danger);
}

.quotation-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--white);
    margin: 16px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid rgba(0,0,0,0.02);
}
.quotation-total .total-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}
.quotation-total .total-value {
    font-size: 24px;
    font-weight: 800;
    color: var(--danger);
    letter-spacing: -0.5px;
}

.quotation-actions {
    display: flex;
    gap: 12px;
    padding: 0 16px 16px;
}
.quotation-actions .qbtn {
    flex: 1;
    padding: 14px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.3px;
}
.quotation-actions .qbtn:active {
    transform: scale(0.97);
}
.qbtn.secondary {
    background: var(--white);
    color: var(--text);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.qbtn.primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 16px rgba(7,193,96,0.3);
}
.qbtn.warning {
    background: linear-gradient(135deg, var(--orange), #E85D2C);
    color: white;
    box-shadow: 0 4px 16px rgba(255,107,53,0.25);
}

/* ==================== 个人中心 ==================== */
.profile-header {
    background: linear-gradient(135deg, #07C160 0%, #05A14E 40%, #048A43 100%);
    padding: 36px 16px 28px;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.profile-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -30%;
    width: 160%;
    height: 160%;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.08) 0%, transparent 50%);
    pointer-events: none;
}
.profile-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: -5%;
    width: 110%;
    height: 24px;
    background: var(--bg);
    border-radius: 20px 20px 0 0;
}
.profile-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    border: 3px solid rgba(255,255,255,0.4);
    backdrop-filter: blur(8px);
    position: relative;
    z-index: 1;
    transition: var(--transition-bounce);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.profile-avatar:active {
    transform: scale(1.08);
}
.profile-nickname {
    font-size: 20px;
    font-weight: 700;
    position: relative;
    z-index: 1;
    letter-spacing: 0.3px;
}
.profile-id {
    font-size: 12px;
    opacity: 0.75;
    margin-top: 4px;
    position: relative;
    z-index: 1;
    font-weight: 400;
}

.profile-stats {
    display: flex;
    background: var(--white);
    margin: -12px 16px 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 20px 0;
    position: relative;
    z-index: 2;
    border: 1px solid rgba(0,0,0,0.02);
    animation: fadeInUp 0.4s ease 0.15s both;
}
.profile-stat {
    flex: 1;
    text-align: center;
    border-right: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: var(--transition);
    cursor: pointer;
}
.profile-stat:last-child { border-right: none; }
.profile-stat:active {
    transform: scale(0.96);
}
.profile-stat .ps-value {
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
    line-height: 1.1;
}
.profile-stat .ps-label {
    font-size: 11px;
    color: var(--text-light);
    font-weight: 500;
    letter-spacing: 0.3px;
}

.profile-menu {
    margin: 0 16px;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    animation: fadeIn 0.4s ease 0.2s both;
}
.profile-menu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 17px 18px;
    border-bottom: 1px solid var(--border-light);
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}
.profile-menu-item:last-child { border-bottom: none; }
.profile-menu-item:active {
    background: var(--primary-light);
}
.profile-menu-item .pmi-icon {
    font-size: 22px;
    width: 32px;
    text-align: center;
    flex-shrink: 0;
}
.profile-menu-item .pmi-name {
    flex: 1;
    font-weight: 500;
    color: var(--text);
}
.profile-menu-item .pmi-arrow {
    color: var(--text-gray);
    font-size: 13px;
    font-weight: 400;
    transition: var(--transition);
}
.profile-menu-item:active .pmi-arrow {
    transform: translateX(3px);
    color: var(--primary);
}
.profile-menu-item .pmi-badge {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
}

.profile-logout {
    margin: 24px 16px;
    text-align: center;
    animation: fadeIn 0.4s ease 0.3s both;
}
.profile-logout button {
    width: 100%;
    padding: 15px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 15px;
    color: var(--danger);
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}
.profile-logout button:active {
    transform: scale(0.98);
    background: #FFF5F5;
}

/* ==================== AI功能页 ==================== */
.ai-section { padding: 20px 16px; }
.ai-section-title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.ai-section-title::before {
    content: '';
    width: 4px;
    height: 20px;
    background: linear-gradient(180deg, var(--info), #8B5CF6);
    border-radius: 3px;
    display: block;
}

.ai-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}
.ai-feature-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px 16px 18px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(0,0,0,0.02);
    position: relative;
    overflow: hidden;
}
.ai-feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(7,193,96,0.04), transparent);
    opacity: 0;
    transition: var(--transition);
}
.ai-feature-card:active {
    transform: scale(0.96);
    box-shadow: var(--shadow);
}
.ai-feature-card:active::before {
    opacity: 1;
}
.ai-feature-card .aic-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    transition: var(--transition-bounce);
    position: relative;
    z-index: 1;
}
.ai-feature-card:active .aic-icon {
    transform: scale(1.12);
}
.aic-icon.green { background: linear-gradient(135deg, #E8F8EE, #D4F1E0); color: #07C160; }
.aic-icon.blue { background: linear-gradient(135deg, #E8F4FD, #D4ECFB); color: #10AEFF; }
.aic-icon.orange { background: linear-gradient(135deg, #FFF3E0, #FFE8CC); color: #FF6B35; }
.aic-icon.purple { background: linear-gradient(135deg, #F3E8FF, #E8D4FF); color: #8B5CF6; }
.aic-icon.pink { background: linear-gradient(135deg, #FCE7F3, #F9D0E5); color: #EC4899; }
.aic-icon.cyan { background: linear-gradient(135deg, #E0F7FA, #C8EEF5); color: #0891B2; }
.ai-feature-card .aic-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    position: relative;
    z-index: 1;
}
.ai-feature-card .aic-desc {
    font-size: 11px;
    color: var(--text-light);
    position: relative;
    z-index: 1;
}
.ai-feature-card .aic-cost {
    font-size: 11px;
    color: var(--primary);
    margin-top: 2px;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

/* ==================== 通用弹窗 ==================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0);
    z-index: 200;
    display: none;
    align-items: flex-end;
    justify-content: center;
    transition: background 0.3s ease;
}
.modal-overlay.show {
    display: flex;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.modal-sheet {
    background: var(--white);
    border-radius: 20px 20px 0 0;
    width: 100%;
    max-width: 480px;
    padding: 24px 16px 36px;
    max-height: 82vh;
    overflow-y: auto;
    animation: slideUp 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}
.modal-sheet::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
}
.modal-sheet h3 {
    text-align: center;
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-top: 8px;
    color: var(--text);
}
.modal-sheet .close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 22px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-gray);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.modal-sheet .close-btn:active {
    background: var(--bg);
}

/* ==================== 表单 ==================== */
.form-group { margin-bottom: 16px; }
.form-group label {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 7px;
    font-weight: 600;
    letter-spacing: 0.2px;
}
.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    outline: none;
    background: var(--white);
    color: var(--text);
    transition: var(--transition);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(7,193,96,0.1);
}
.form-input::placeholder { color: var(--text-gray); }
.form-textarea { resize: vertical; min-height: 88px; line-height: 1.6; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: var(--radius-full);
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.3px;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    width: 100%;
    box-shadow: 0 4px 16px rgba(7,193,96,0.3);
}
.btn-primary:active {
    box-shadow: 0 2px 8px rgba(7,193,96,0.3);
}
.btn-block { width: 100%; }

/* ==================== Toast ==================== */
.toast {
    position: fixed;
    top: 72px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    padding: 12px 24px;
    border-radius: var(--radius-full);
    color: white;
    font-size: 13px;
    font-weight: 500;
    z-index: 300;
    opacity: 0;
    pointer-events: none;
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background: rgba(26, 26, 46, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    letter-spacing: 0.3px;
}
.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ==================== 充值方式卡片 ==================== */
.contact-list { display: flex; flex-direction: column; gap: 10px; }
.contact-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid rgba(0,0,0,0.02);
    transition: var(--transition);
}
.contact-card:active {
    transform: scale(0.98);
}
.contact-card .cc-icon { font-size: 34px; flex-shrink: 0; }
.contact-card .cc-info { flex: 1; min-width: 0; }
.contact-card .cc-type { font-size: 15px; font-weight: 600; color: var(--text); }
.contact-card .cc-account {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 3px;
    word-break: break-all;
}
.contact-card .cc-copy {
    padding: 8px 16px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
}
.contact-card .cc-copy:active {
    transform: scale(0.95);
    background: #d4f1e0;
}

/* ==================== 会员套餐 ==================== */
.membership-list { display: flex; flex-direction: column; gap: 12px; }
.membership-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 14px;
    border: 2px solid transparent;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.membership-card.featured {
    border-color: var(--primary);
    background: linear-gradient(135deg, #FFFFFF 0%, #F0FFF5 100%);
}
.membership-card.featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), #2ECC71);
}
.membership-card:active { transform: scale(0.98); }
.membership-card .mc-icon { font-size: 38px; flex-shrink: 0; }
.membership-card .mc-info { flex: 1; }
.membership-card .mc-name { font-size: 16px; font-weight: 700; color: var(--text); }
.membership-card .mc-desc { font-size: 12px; color: var(--text-light); margin-top: 4px; line-height: 1.4; }
.membership-card .mc-price {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
    white-space: nowrap;
    letter-spacing: -0.5px;
}
.membership-card .mc-price span {
    font-size: 12px;
    font-weight: 500;
}

/* ==================== 上传图片区 ==================== */
.upload-area {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 32px;
    text-align: center;
    cursor: pointer;
    position: relative;
    margin-bottom: 14px;
    transition: var(--transition);
    background: var(--bg-warm);
}
.upload-area:active {
    background: var(--primary-light);
    border-color: var(--primary);
}
.upload-area .ua-icon {
    font-size: 40px;
    margin-bottom: 10px;
    color: var(--text-gray);
    transition: var(--transition-bounce);
}
.upload-area:active .ua-icon {
    transform: scale(1.1);
}
.upload-area .ua-text {
    font-size: 13px;
    color: var(--text-light);
    font-weight: 500;
}
.upload-area img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: var(--radius);
}

/* ==================== 结果展示区 ==================== */
.result-box {
    background: var(--white);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow-sm);
    max-height: 400px;
    overflow-y: auto;
    white-space: pre-wrap;
    font-size: 13px;
    line-height: 1.8;
    color: var(--text);
    border: 1px solid var(--border-light);
}
.result-box:empty::before {
    content: '结果将在这里显示...';
    color: var(--text-gray);
    font-style: italic;
}

/* ==================== 登录/注册 Tab 按钮 ==================== */
.login-tab-bar {
    display: flex;
    margin-bottom: 20px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    padding: 4px;
    gap: 4px;
}
.login-tab-btn {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: var(--radius-xs);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    background: transparent;
    color: var(--text-light);
}
.login-tab-btn.active {
    background: var(--white);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

/* ==================== 弹窗列表项样式 ==================== */
.sheet-list-item {
    padding: 14px 0;
    border-bottom: 1px solid var(--border-light);
}
.sheet-list-item:last-child { border-bottom: none; }
.sheet-list-item .item-header {
    font-weight: 600;
    font-size: 14px;
    color: var(--text);
}
.sheet-list-item .item-sub {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-gray);
}
.empty-state .empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}
.empty-state .empty-text {
    font-size: 14px;
    font-weight: 500;
}

/* ==================== 通用间距 ==================== */
.p-16 { padding: 16px; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mb-16 { margin-bottom: 16px; }

/* ==================== 响应式 ==================== */
@media (min-width: 481px) {
    body {
        border-left: 1px solid var(--border);
        border-right: 1px solid var(--border);
        box-shadow: 0 0 40px rgba(0,0,0,0.06);
    }
}

/* ==================== 滚动条美化 ==================== */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-gray); }

/* ==================== 选择高亮 ==================== */
::selection {
    background: rgba(7,193,96,0.2);
    color: var(--text);
}
