/* ============================================
 * 梅学长的电子工作室 · 样式表
 * 设计参考：SaaS 控制台风格
 * ============================================ */

/* ---------- 1. 基础变量与重置 ---------- */
:root {
    --c-primary: #4A8DFF;
    --c-primary-dark: #2E6BD8;
    --c-primary-light: #EAF2FF;
    --c-success: #00C896;
    --c-success-light: #E6FAF4;
    --c-warning: #FF9A3D;
    --c-warning-light: #FFF4E5;
    --c-danger: #FF6B6B;
    --c-danger-light: #FFECEC;
    --c-gold: #FFB020;
    --c-purple: #8B5CF6;

    --c-text-1: #1F2937;
    --c-text-2: #4B5563;
    --c-text-3: #6B7280;
    --c-text-4: #9CA3AF;

    --c-bg-page: #F7F9FC;
    --c-bg-card: #FFFFFF;
    --c-bg-soft: #F3F5F9;
    --c-border: #E5E7EB;
    --c-border-light: #F0F2F5;

    --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.04);
    --shadow-md: 0 4px 12px rgba(16, 24, 40, 0.06);
    --shadow-lg: 0 12px 32px rgba(16, 24, 40, 0.08);

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;

    --topbar-h: 64px;
    --sidebar-w: 240px;

    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
                 "Hiragino Sans GB", "Microsoft YaHei", "HarmonyOS Sans",
                 "Source Han Sans CN", sans-serif;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    font-family: var(--font-sans);
    color: var(--c-text-1);
    background: var(--c-bg-page);
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { display: block; max-width: 100%; }

/* ---------- 2. 顶部导航 ---------- */
.topbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--topbar-h);
    background: #fff;
    border-bottom: 1px solid var(--c-border);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--c-text-1);
    padding: 4px 8px;
}

.logo {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: cover;
}

.brand-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--c-text-1);
}

.brand-tag {
    font-size: 12px;
    color: var(--c-text-3);
    padding: 3px 8px;
    background: var(--c-primary-light);
    color: var(--c-primary-dark);
    border-radius: 12px;
    margin-left: 4px;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid var(--c-border);
    transition: border-color 0.2s;
}
.avatar:hover { border-color: var(--c-primary); }

/* ---------- 3. 按钮 ---------- */
.btn-primary,
.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    border: none;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-primary {
    background: var(--c-primary);
    color: #fff;
    box-shadow: 0 2px 4px rgba(74, 141, 255, 0.25);
}
.btn-primary:hover {
    background: var(--c-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(74, 141, 255, 0.35);
}

.btn-outline {
    background: #fff;
    color: var(--c-text-1);
    border: 1px solid var(--c-border);
}
.btn-outline:hover {
    border-color: var(--c-primary);
    color: var(--c-primary);
}

.btn-lg {
    padding: 12px 24px;
    font-size: 15px;
}

.btn-copy {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    background: var(--c-primary);
    color: #fff;
    border: none;
    font-size: 13px;
    transition: all 0.2s;
}
.btn-copy:hover { background: var(--c-primary-dark); }
.btn-copy.copied { background: var(--c-success); }

/* ---------- 4. 主体布局 ---------- */
.app {
    padding-top: var(--topbar-h);
    display: flex;
    min-height: 100vh;
}

/* 左侧菜单 */
.sidebar {
    position: fixed;
    top: var(--topbar-h);
    left: 0;
    bottom: 0;
    width: var(--sidebar-w);
    background: #fff;
    border-right: 1px solid var(--c-border);
    overflow-y: auto;
    z-index: 50;
    padding: 16px 0;
    display: flex;
    flex-direction: column;
}

.sidebar-section { padding: 0 20px; margin-bottom: 8px; }
.sidebar-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--c-text-4);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.menu { flex: 1; }
.menu-group { margin-bottom: 16px; }

.menu-group-title {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--c-text-3);
}
.menu-group-title i { font-size: 16px; }

.menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 20px 9px 32px;
    color: var(--c-text-2);
    font-size: 14px;
    border-left: 3px solid transparent;
    transition: all 0.2s;
}
.menu-item i { font-size: 18px; color: var(--c-text-3); }
.menu-item:hover {
    background: var(--c-bg-soft);
    color: var(--c-text-1);
}
.menu-item:hover i { color: var(--c-primary); }

.menu-item.active {
    background: var(--c-primary-light);
    color: var(--c-primary-dark);
    border-left-color: var(--c-primary);
    font-weight: 600;
}
.menu-item.active i { color: var(--c-primary); }

.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--c-border-light);
}
.footer-text {
    font-size: 12px;
    color: var(--c-text-4);
    line-height: 1.8;
}

/* 右侧内容 */
.content {
    flex: 1;
    margin-left: var(--sidebar-w);
    padding: 28px 36px 60px;
    min-width: 0;
}

.page { display: none; animation: fadeUp 0.3s ease; }
.page.active { display: block; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---------- 5. 通用组件 ---------- */
.page-header {
    margin-bottom: 24px;
}
.page-header h1 {
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 6px;
    color: var(--c-text-1);
    display: flex;
    align-items: center;
    gap: 10px;
}
.page-header h1 i { color: var(--c-primary); }
.page-header p {
    margin: 0;
    color: var(--c-text-3);
    font-size: 14px;
}
.page-header-danger h1 i { color: var(--c-danger); }

.section-title {
    margin: 36px 0 16px;
}
.section-title h2 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: var(--c-text-1);
    display: flex;
    align-items: center;
    gap: 8px;
}
.section-title h2 i { color: var(--c-primary); }

.sub-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--c-text-1);
    margin: 32px 0 14px;
    padding-left: 10px;
    border-left: 3px solid var(--c-primary);
}

.card {
    background: var(--c-bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--c-border-light);
    box-shadow: var(--shadow-sm);
    padding: 24px;
}

.callout {
    display: flex;
    gap: 12px;
    padding: 16px 18px;
    border-radius: var(--radius-md);
    margin: 16px 0;
    font-size: 14px;
    line-height: 1.7;
}
.callout > i { font-size: 22px; flex-shrink: 0; line-height: 1.4; }
.callout p { margin: 4px 0; }
.callout-info {
    background: var(--c-primary-light);
    border-left: 4px solid var(--c-primary);
    color: var(--c-text-2);
}
.callout-info > i { color: var(--c-primary); }
.callout-warning {
    background: var(--c-warning-light);
    border-left: 4px solid var(--c-warning);
    color: var(--c-text-2);
}
.callout-warning > i { color: var(--c-warning); }
.callout-soft {
    background: var(--c-bg-soft);
    color: var(--c-text-3);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    margin-top: 16px;
    font-size: 13px;
}

/* ---------- 6. 首页 Hero ---------- */
.hero {
    background: linear-gradient(135deg, #EAF2FF 0%, #F0F7FF 60%, #fff 100%);
    border-radius: var(--radius-xl);
    padding: 36px 40px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 24px;
    align-items: center;
    margin-bottom: 24px;
    border: 1px solid var(--c-border-light);
}
.hero-greeting {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    color: var(--c-primary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
}
.hero-greeting i { color: var(--c-warning); }

.hero-title {
    font-size: 36px;
    font-weight: 800;
    margin: 0 0 12px;
    color: var(--c-text-1);
    letter-spacing: -0.5px;
}
.hero-subtitle {
    font-size: 18px;
    color: var(--c-text-2);
    margin: 0 0 8px;
    font-weight: 500;
}
.hero-desc {
    color: var(--c-text-3);
    margin: 0 0 24px;
    font-size: 14px;
}
.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.hero-right { text-align: center; }
.hero-right img {
    max-width: 100%;
    max-height: 280px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

/* ---------- 7. 数据条 ---------- */
.stat-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 8px;
}
.stat-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid var(--c-border-light);
    transition: all 0.25s;
}
.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.stat-icon {
    width: 44px; height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}
.stat-blue .stat-icon { background: var(--c-primary-light); color: var(--c-primary); }
.stat-green .stat-icon { background: var(--c-success-light); color: var(--c-success); }
.stat-purple .stat-icon { background: #F3EAFE; color: var(--c-purple); }
.stat-orange .stat-icon { background: var(--c-warning-light); color: var(--c-warning); }

.stat-label { font-size: 12px; color: var(--c-text-3); margin-bottom: 2px; }
.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--c-text-1);
    line-height: 1.2;
}
.stat-value span {
    font-size: 13px;
    font-weight: 500;
    color: var(--c-text-3);
    margin-left: 2px;
}

/* ---------- 8. 承诺卡片（首页 3 张） ---------- */
.promise-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.promise-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 22px 20px;
    text-align: center;
    border: 1px solid var(--c-border-light);
    transition: all 0.25s;
}
.promise-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--c-primary-light);
}
.promise-icon { font-size: 36px; margin-bottom: 10px; }
.promise-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--c-text-1);
    margin-bottom: 6px;
}
.promise-desc {
    font-size: 13px;
    color: var(--c-text-3);
    line-height: 1.6;
}

/* ---------- 9. 信任栏 ---------- */
.trust-bar {
    margin-top: 24px;
    padding: 16px 24px;
    background: #fff;
    border-radius: var(--radius-md);
    border: 1px solid var(--c-border-light);
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 12px;
}
.trust-bar span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--c-text-2);
    font-weight: 500;
}
.trust-bar i { color: var(--c-success); font-size: 16px; }

/* ---------- 10. 主理人介绍 ---------- */
.profile-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 20px;
    margin-bottom: 20px;
}
.profile-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    text-align: center;
    border: 1px solid var(--c-border-light);
    box-shadow: var(--shadow-sm);
}
.profile-photo {
    width: 130px; height: 130px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 14px;
    border: 4px solid var(--c-primary-light);
}
.profile-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}
.profile-role {
    font-size: 13px;
    color: var(--c-text-3);
    margin-bottom: 16px;
}
.profile-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}
.tag {
    display: inline-block;
    padding: 4px 10px;
    background: var(--c-primary-light);
    color: var(--c-primary-dark);
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.profile-bio h3 {
    font-size: 17px;
    margin: 0 0 12px;
    color: var(--c-text-1);
}
.profile-bio p {
    margin: 0 0 10px;
    color: var(--c-text-2);
    font-size: 14px;
    line-height: 1.8;
}
.profile-bio strong { color: var(--c-primary-dark); }

.info-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}
.info-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 16px;
    border: 1px solid var(--c-border-light);
    text-align: center;
}
.info-icon { font-size: 24px; color: var(--c-primary); margin-bottom: 6px; }
.info-label { font-size: 12px; color: var(--c-text-3); margin-bottom: 2px; }
.info-value { font-size: 14px; font-weight: 600; color: var(--c-text-1); }

/* ---------- 11. 工作室环境 ---------- */
.workshop-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.workshop-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    position: relative;
    aspect-ratio: 4/3;
    background: var(--c-bg-soft);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
}
.workshop-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}
.workshop-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}
.workshop-item:hover img { transform: scale(1.05); }

/* ---------- 12. 奖项 ---------- */
.awards-block { margin-bottom: 28px; }
.awards-block-title { margin: 0 0 14px; font-size: 18px; }
.tier {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
}
.tier-gold { background: #FFF7E0; color: #B58105; border: 1px solid #FFE48A; }
.tier-silver { background: #EAF2FF; color: var(--c-primary-dark); border: 1px solid #C5DBFF; }
.tier-bronze { background: #FBE9D7; color: #A85A12; border: 1px solid #F5C998; }
.tier-gallery { background: var(--c-bg-soft); color: var(--c-text-2); border: 1px solid var(--c-border); }

.awards-list {
    background: #fff;
    border-radius: var(--radius-md);
    border: 1px solid var(--c-border-light);
    overflow: hidden;
}
.awards-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--c-border-light);
    transition: background 0.2s;
}
.awards-item:last-child { border-bottom: none; }
.awards-item:hover { background: var(--c-bg-soft); }
.medal { font-size: 20px; }
.awards-name { flex: 1; color: var(--c-text-1); font-size: 14px; font-weight: 500; }
.awards-level {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}
.awards-special { background: #FFF0E0; color: #B85C00; }
.awards-first { background: var(--c-primary-light); color: var(--c-primary-dark); }
.awards-second { background: var(--c-success-light); color: #018863; }
.awards-third { background: #FBE9D7; color: #A85A12; }

.awards-top {
    background: linear-gradient(90deg, #FFF7E0 0%, #fff 100%);
    border-left: 3px solid var(--c-gold);
}

.certs-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.cert-item {
    aspect-ratio: 4/3;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    background: var(--c-bg-soft);
    border: 1px solid var(--c-border-light);
    transition: all 0.2s;
}
.cert-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.cert-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--c-primary);
}
.cert-item:hover img { transform: scale(1.04); }

/* ---------- 13. 服务范围 ---------- */
.platforms-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 16px;
}
.platform-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 18px 16px;
    text-align: center;
    border: 1px solid var(--c-border-light);
    transition: all 0.25s;
}
.platform-card i { font-size: 28px; color: var(--c-primary); margin-bottom: 8px; }
.platform-name { font-size: 14px; font-weight: 600; color: var(--c-text-1); margin-bottom: 3px; }
.platform-desc { font-size: 12px; color: var(--c-text-3); }
.platform-card:hover {
    border-color: var(--c-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.platform-other { background: var(--c-primary-light); border-style: dashed; }

.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0 18px;
    padding: 4px;
    background: var(--c-bg-soft);
    border-radius: var(--radius-md);
}
.category-tab {
    padding: 8px 14px;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--c-text-2);
    transition: all 0.2s;
    white-space: nowrap;
}
.category-tab:hover { background: #fff; color: var(--c-text-1); }
.category-tab.active {
    background: #fff;
    color: var(--c-primary-dark);
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    min-height: 200px;
}
.project-card {
    background: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--c-border-light);
    cursor: pointer;
    transition: all 0.25s;
    position: relative;
}
.project-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--c-primary);
}
.project-img {
    aspect-ratio: 4/3;
    background: var(--c-bg-soft);
    overflow: hidden;
}
.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.project-card:hover .project-img img { transform: scale(1.06); }
.project-info {
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.project-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--c-text-1);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.project-badge {
    font-size: 10px;
    padding: 2px 6px;
    background: var(--c-success-light);
    color: var(--c-success);
    border-radius: 4px;
    font-weight: 600;
    flex-shrink: 0;
}

.delivery-list {
    background: #fff;
    border-radius: var(--radius-md);
    border: 1px solid var(--c-border-light);
    padding: 8px 0;
}
.delivery-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    color: var(--c-text-2);
    font-size: 14px;
    border-bottom: 1px solid var(--c-border-light);
}
.delivery-list li:last-child { border-bottom: none; }
.delivery-list i { color: var(--c-success); font-size: 18px; }

/* ---------- 14. 时间线 ---------- */
.timeline {
    position: relative;
    padding-left: 0;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 22px;
    top: 16px;
    bottom: 16px;
    width: 2px;
    background: linear-gradient(180deg, var(--c-primary) 0%, var(--c-primary-light) 100%);
}
.timeline-item {
    display: flex;
    gap: 18px;
    margin-bottom: 18px;
    position: relative;
}
.timeline-dot {
    width: 46px; height: 46px;
    background: #fff;
    border: 2px solid var(--c-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--c-primary);
    font-size: 16px;
    flex-shrink: 0;
    z-index: 1;
    box-shadow: 0 0 0 4px #fff;
}
.timeline-body {
    flex: 1;
    background: #fff;
    border-radius: var(--radius-md);
    padding: 14px 18px;
    border: 1px solid var(--c-border-light);
    box-shadow: var(--shadow-sm);
}
.timeline-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--c-text-1);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.timeline-time {
    font-size: 12px;
    color: var(--c-primary);
    background: var(--c-primary-light);
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 500;
}
.timeline-desc {
    font-size: 13px;
    color: var(--c-text-3);
}

/* ---------- 15. 八大承诺 ---------- */
.promise-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}
.big-promise {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 22px 18px;
    border: 1px solid var(--c-border-light);
    text-align: center;
    transition: all 0.25s;
    position: relative;
}
.big-promise:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.big-promise-icon { font-size: 36px; margin-bottom: 8px; }
.big-promise-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--c-text-1);
    margin-bottom: 6px;
}
.big-promise-desc {
    font-size: 12px;
    color: var(--c-text-3);
    line-height: 1.6;
}

/* ---------- 16. 联系方式 ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.contact-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--c-border-light);
    box-shadow: var(--shadow-sm);
}
.contact-card-head {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 18px;
    color: var(--c-text-1);
}
.contact-card-head i { font-size: 24px; color: var(--c-success); }

.contact-id {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: var(--c-bg-soft);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.contact-id-label {
    font-size: 13px;
    color: var(--c-text-3);
}
.contact-id-value {
    font-family: "Consolas", "Monaco", monospace;
    font-size: 16px;
    font-weight: 600;
    color: var(--c-primary-dark);
    flex: 1;
}

.contact-qr {
    text-align: center;
    padding: 16px;
    background: var(--c-bg-soft);
    border-radius: var(--radius-md);
}
.contact-qr img {
    width: 200px;
    max-width: 100%;
    margin: 0 auto 8px;
    border-radius: var(--radius-sm);
    background: #fff;
    padding: 8px;
}
.contact-qr-tip { font-size: 13px; color: var(--c-text-3); }

.contact-info h3 {
    margin: 0 0 12px;
    font-size: 17px;
}
.contact-info p {
    margin: 6px 0;
    color: var(--c-text-2);
    font-size: 14px;
}
.contact-checklist {
    list-style: decimal;
    padding-left: 22px;
    margin: 10px 0 14px;
}
.contact-checklist li {
    color: var(--c-text-2);
    padding: 4px 0;
    font-size: 14px;
}
.contact-meta {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px dashed var(--c-border);
}
.contact-meta div {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 0;
    color: var(--c-text-3);
    font-size: 13px;
}
.contact-meta i { color: var(--c-primary); font-size: 16px; }

/* ---------- 17. 定金支付 ---------- */
.deposit-wrap {
    display: flex;
    justify-content: center;
    padding: 20px 0;
}
.deposit-card {
    width: 100%;
    max-width: 460px;
    background: linear-gradient(135deg, #fff 0%, var(--c-primary-light) 100%);
    border-radius: var(--radius-xl);
    padding: 32px 28px;
    border: 1px solid var(--c-primary-light);
    box-shadow: var(--shadow-lg);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.deposit-card::before {
    content: '';
    position: absolute;
    top: -50px; right: -50px;
    width: 160px; height: 160px;
    background: radial-gradient(circle, rgba(74,141,255,0.15), transparent 70%);
    border-radius: 50%;
}
.deposit-badge {
    display: inline-block;
    background: #fff;
    color: var(--c-primary-dark);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 18px;
    box-shadow: var(--shadow-sm);
}
.deposit-amount {
    display: flex;
    justify-content: center;
    align-items: baseline;
    margin-bottom: 22px;
}
.deposit-amount .currency { font-size: 28px; color: var(--c-primary); font-weight: 700; }
.deposit-amount .value { font-size: 64px; color: var(--c-primary); font-weight: 800; line-height: 1; }
.deposit-amount .period { font-size: 24px; color: var(--c-primary); }

.deposit-features {
    margin-bottom: 22px;
    text-align: left;
    background: rgba(255,255,255,0.6);
    border-radius: var(--radius-md);
    padding: 12px 18px;
}
.deposit-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
    color: var(--c-text-2);
    font-size: 13px;
}
.deposit-features i { color: var(--c-success); font-size: 17px; }

.deposit-qr {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 14px;
}
.deposit-qr img {
    width: 200px;
    max-width: 100%;
    margin: 0 auto 8px;
}
.deposit-qr-tip { font-size: 13px; color: var(--c-text-3); }

.deposit-note {
    margin: 0;
    color: var(--c-text-3);
    font-size: 13px;
}
.deposit-note strong { color: var(--c-primary-dark); }

/* ---------- 18. FAQ ---------- */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.faq-item {
    background: #fff;
    border-radius: var(--radius-md);
    border: 1px solid var(--c-border-light);
    overflow: hidden;
    transition: all 0.2s;
}
.faq-item:hover { border-color: var(--c-primary-light); }
.faq-question {
    padding: 16px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 15px;
    font-weight: 500;
    color: var(--c-text-1);
}
.faq-question:hover { background: var(--c-bg-soft); }
.faq-q-text {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    flex: 1;
}
.faq-q-num {
    background: var(--c-primary-light);
    color: var(--c-primary-dark);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}
.faq-toggle {
    font-size: 20px;
    color: var(--c-text-4);
    transition: transform 0.25s;
    flex-shrink: 0;
}
.faq-item.open .faq-toggle { transform: rotate(180deg); color: var(--c-primary); }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.faq-item.open .faq-answer { max-height: 500px; }
.faq-answer-inner {
    padding: 0 20px 16px 56px;
    color: var(--c-text-2);
    font-size: 14px;
    line-height: 1.8;
}

/* ---------- 19. 反诈骗 ---------- */
.warning-block {
    background: #fff;
    border-left: 4px solid var(--c-danger);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin-bottom: 14px;
    box-shadow: var(--shadow-sm);
}
.warning-block h3 {
    margin: 0 0 8px;
    font-size: 16px;
    color: var(--c-danger);
}
.warning-block p {
    margin: 4px 0;
    color: var(--c-text-2);
    font-size: 14px;
    line-height: 1.7;
}
.warning-block strong { color: var(--c-primary-dark); }
.warning-block ul {
    margin: 6px 0;
    padding-left: 22px;
    list-style: disc;
}
.warning-block ul li {
    color: var(--c-text-2);
    padding: 2px 0;
    font-size: 14px;
}

/* ---------- 20. 灯箱 / Toast / Overlay ---------- */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 30px;
    animation: fadeIn 0.2s ease;
}
.lightbox.show { display: flex; }
.lightbox img {
    max-width: 92vw;
    max-height: 88vh;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.lightbox-close {
    position: absolute;
    top: 24px; right: 24px;
    width: 44px; height: 44px;
    background: rgba(255,255,255,0.15);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.lightbox-close:hover {
    background: rgba(255,255,255,0.3);
    transform: rotate(90deg);
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.toast {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: var(--c-text-1);
    color: #fff;
    padding: 10px 20px;
    border-radius: 24px;
    font-size: 14px;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
}
.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 45;
}
.overlay.show { display: block; }

/* ---------- 21. 响应式 ---------- */
@media (max-width: 1200px) {
    .stat-row { grid-template-columns: repeat(2, 1fr); }
    .promise-grid { grid-template-columns: repeat(2, 1fr); }
    .platforms-grid { grid-template-columns: repeat(3, 1fr); }
    .projects-grid { grid-template-columns: repeat(3, 1fr); }
    .certs-gallery { grid-template-columns: repeat(3, 1fr); }
    .info-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .hero { grid-template-columns: 1fr; }
    .hero-right { display: none; }
    .hero-title { font-size: 28px; }
    .profile-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .promise-row { grid-template-columns: 1fr; }
    .workshop-gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .mobile-toggle { display: flex; }
    .topbar { padding: 0 14px; }
    .brand-tag { display: none; }
    .brand-name { font-size: 15px; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        box-shadow: 0 0 30px rgba(0,0,0,0.1);
    }
    .sidebar.open { transform: translateX(0); }

    .content {
        margin-left: 0;
        padding: 18px 16px 50px;
    }
    .page-header h1 { font-size: 22px; }

    .stat-row,
    .platforms-grid,
    .projects-grid,
    .certs-gallery,
    .info-row,
    .promise-grid,
    .workshop-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero { padding: 24px 20px; }
    .hero-title { font-size: 24px; }
    .hero-subtitle { font-size: 15px; }

    .timeline::before { left: 18px; }
    .timeline-dot { width: 38px; height: 38px; font-size: 14px; }

    .deposit-amount .value { font-size: 48px; }

    .topbar-right .btn-primary span,
    .topbar-right .btn-primary { padding: 6px 10px; font-size: 13px; }
}

@media (max-width: 480px) {
    .stat-row,
    .platforms-grid,
    .projects-grid,
    .certs-gallery,
    .info-row,
    .promise-grid,
    .workshop-gallery { grid-template-columns: 1fr; }
    .topbar-right .btn-primary { display: none; }
}

/* 隐藏滚动条但保留功能 */
.sidebar::-webkit-scrollbar { width: 6px; }
.sidebar::-webkit-scrollbar-thumb { background: var(--c-border); border-radius: 3px; }
.sidebar::-webkit-scrollbar-thumb:hover { background: var(--c-text-4); }
