/* ============================================
   小小AI创业家 - 全局样式
   色彩鲜艳 · 移动优先
   ============================================ */

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

:root {
    --c-purple: #7c3aed;
    --c-pink: #ec4899;
    --c-cyan: #06b6d4;
    --c-green: #10b981;
    --c-orange: #f59e0b;
    --c-blue: #3b82f6;
    --c-red: #ef4444;
    --c-indigo: #6366f1;
    --c-text: #1e293b;
    --c-text-light: #64748b;
    --c-bg: #f8faff;
    --c-card: #ffffff;
    --c-border: #e2e8f0;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 4px 20px rgba(99,102,241,0.08);
    --shadow-hover: 0 8px 30px rgba(99,102,241,0.15);
}

html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
                 "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: var(--c-bg);
    color: var(--c-text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    padding-bottom: 70px; /* 底部导航栏空间 */
}

a { color: inherit; text-decoration: none; }

/* ===== 容器 ===== */
.container {
    max-width: 780px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ===== 顶部导航 ===== */
.top-nav {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--c-border);
}
.top-nav-inner {
    max-width: 780px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 16px;
}
.top-nav .logo {
    font-size: 17px; font-weight: 800;
    background: linear-gradient(135deg, var(--c-purple), var(--c-pink));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.top-nav .nav-links { display: flex; gap: 16px; list-style: none; }
.top-nav .nav-links a {
    font-size: 14px; color: var(--c-text-light);
    transition: color .2s;
}
.top-nav .nav-links a:hover { color: var(--c-purple); }
.top-nav .nav-links a.btn-login {
    background: linear-gradient(135deg, var(--c-purple), var(--c-pink));
    color: #fff !important; font-size: 13px; font-weight: 700;
    padding: 7px 16px; border-radius: 100px;
    border: 2px solid #fff;
    box-shadow: 0 2px 10px rgba(124,58,237,0.35);
    cursor: pointer; white-space: nowrap;
    -webkit-text-fill-color: #fff;
    transition: transform .15s, box-shadow .2s;
}
.top-nav .nav-links a.btn-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(124,58,237,0.45);
    color: #fff !important;
}
@media (max-width: 520px) {
    .top-nav-inner { padding: 10px 12px; }
    .top-nav .nav-links { gap: 10px; }
    .top-nav .nav-links a:not(.btn-login) { font-size: 13px; }
    .top-nav .nav-links a.btn-login { padding: 6px 12px; font-size: 12px; }
    .top-nav .logo { font-size: 15px; }
}

/* ===== Hero ===== */
.hero {
    padding: 50px 0 30px; text-align: center;
}
.hero-emoji {
    font-size: 60px; display: inline-block;
    animation: float 3s ease-in-out infinite;
}
@keyframes float {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}
.hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, #eef2ff, #fce7f3);
    color: var(--c-purple); font-size: 13px; font-weight: 600;
    padding: 6px 16px; border-radius: 100px; margin-bottom: 20px;
}
.hero h1 {
    font-size: clamp(26px, 5vw, 38px); font-weight: 800; line-height: 1.3;
    margin-bottom: 14px;
    background: linear-gradient(135deg, var(--c-purple), var(--c-pink), var(--c-cyan));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-sub {
    font-size: 16px; color: var(--c-text-light);
    max-width: 500px; margin: 0 auto 24px;
}

/* ===== 服务卡片网格 ===== */
.skills-section { padding: 10px 0 40px; }
.section-title { text-align: center; margin-bottom: 24px; }
.section-title h2 { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.section-title p { font-size: 14px; color: var(--c-text-light); }

.skills-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
}
@media (max-width: 520px) { .skills-grid { grid-template-columns: 1fr; } }

.skill-card {
    background: var(--c-card); border-radius: var(--radius);
    padding: 24px 20px; box-shadow: var(--shadow);
    border: 1px solid var(--c-border);
    display: flex; align-items: flex-start; gap: 14px;
    transition: transform .25s, box-shadow .25s;
    cursor: pointer; position: relative; overflow: hidden;
}
.skill-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: var(--accent, var(--c-purple));
}
.skill-card:hover { transform: translateY(-3px); box-shadow: var(--c-shadow-hover); }
.skill-card .skill-icon {
    width: 48px; height: 48px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; flex-shrink: 0;
}
.skill-card h4 { font-size: 16px; margin-bottom: 3px; }
.skill-card p { font-size: 13px; color: var(--c-text-light); line-height: 1.5; }
.skill-card .skill-price {
    margin-top: 6px; font-size: 12px; font-weight: 700;
    color: var(--c-pink);
}

/* ===== 故事卡片 ===== */
.story-card {
    background: var(--c-card); border-radius: var(--radius);
    padding: 32px 28px; box-shadow: var(--shadow);
    border: 1px solid var(--c-border); margin-bottom: 20px;
}
.story-card h2 { font-size: 20px; margin-bottom: 16px; }
.story-card p { margin-bottom: 14px; font-size: 15px; }
.highlight {
    background: linear-gradient(180deg, transparent 60%, #c7d2fe 60%);
    font-weight: 600;
}
.story-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; padding-top: 20px; border-top: 1px dashed var(--c-border); }
.story-meta .tag {
    display: inline-flex; align-items: center; gap: 4px;
    background: #f1f5f9; color: var(--c-text-light);
    font-size: 12px; padding: 5px 12px; border-radius: 8px;
}

/* ===== 进度条 ===== */
.progress-card {
    background: var(--c-card); border-radius: var(--radius);
    padding: 24px 28px; box-shadow: var(--shadow);
    border: 1px solid var(--c-border); margin-bottom: 20px;
}
.progress-bar-wrap {
    background: #f1f5f9; border-radius: 100px;
    height: 22px; overflow: hidden; position: relative;
}
.progress-bar-fill {
    background: linear-gradient(90deg, var(--c-purple), var(--c-pink));
    height: 100%; border-radius: 100px; width: 0;
    transition: width 1.5s ease; position: relative;
}
.progress-bar-fill::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 2s infinite;
}
@keyframes shimmer { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.progress-labels {
    display: flex; justify-content: space-between;
    margin-top: 8px; font-size: 13px; color: var(--c-text-light);
}
.progress-labels .current { color: var(--c-purple); font-weight: 700; }

/* ===== 支付卡片 ===== */
.payment-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
@media (max-width: 680px) { .payment-grid { grid-template-columns: 1fr; } }

.pay-card {
    background: var(--c-card); border-radius: var(--radius);
    padding: 24px 20px; box-shadow: var(--shadow);
    border: 1px solid var(--c-border); text-align: center;
    transition: transform .25s, box-shadow .25s;
    display: flex; flex-direction: column; align-items: center;
}
.pay-card:hover { transform: translateY(-4px); box-shadow: var(--c-shadow-hover); }
.pay-card .icon {
    width: 50px; height: 50px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; margin-bottom: 12px;
}
.pay-card .icon.bank { background: #eff6ff; }
.pay-card .icon.wechat { background: #f0fdf4; }
.pay-card .icon.alipay { background: #eff6ff; }
.pay-card h3 { font-size: 16px; margin-bottom: 4px; }
.pay-card .desc { font-size: 12px; color: var(--c-text-light); margin-bottom: 16px; }

.qr-box {
    width: 170px; height: 170px; border-radius: 12px; overflow: hidden;
    border: 1px solid var(--c-border); background: #fff;
    display: flex; align-items: center; justify-content: center;
}
.qr-box img { width: 100%; height: 100%; object-fit: contain; }
.qr-tip { font-size: 12px; color: var(--c-text-light); margin-top: 8px; }

.bank-info { width: 100%; text-align: left; margin-top: 14px; }
.bank-info .row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 8px 0; border-bottom: 1px dashed var(--c-border); font-size: 13px;
}
.bank-info .row:last-child { border-bottom: none; }
.bank-info .label { color: var(--c-text-light); white-space: nowrap; margin-right: 8px; }
.bank-info .value { font-weight: 600; text-align: right; word-break: break-all; }
.copy-btn {
    background: #f1f5f9; border: none; border-radius: 6px;
    padding: 3px 10px; font-size: 12px; color: var(--c-text-light);
    cursor: pointer; transition: all .2s; margin-left: 6px; white-space: nowrap;
}
.copy-btn:hover { background: var(--c-purple); color: #fff; }
.copy-btn.copied { background: var(--c-green); color: #fff; }

/* ===== 承诺卡片 ===== */
.promise-card {
    background: linear-gradient(135deg, #eef2ff, #fce7f3);
    border-radius: var(--radius); padding: 28px; text-align: center;
    border: 1px solid #c7d2fe; margin-bottom: 30px;
}
.promise-card h3 { font-size: 17px; margin-bottom: 10px; color: var(--c-purple); }
.promise-card p { font-size: 14px; color: #4338ca; line-height: 1.7; }

/* ===== 页脚 ===== */
footer {
    text-align: center; padding: 30px 16px;
    color: var(--c-text-light); font-size: 12px;
    border-top: 1px solid var(--c-border);
}
footer p { margin-bottom: 4px; }

/* ============================================
   管理后台样式
   ============================================ */

/* ===== Dashboard 头部 ===== */
.dash-header {
    background: linear-gradient(135deg, var(--c-purple), var(--c-pink));
    padding: 20px 16px 24px; color: #fff;
    border-radius: 0 0 24px 24px; margin-bottom: 16px;
}
.dash-header .user-info {
    display: flex; align-items: center; gap: 12px; margin-bottom: 16px;
}
.dash-header .avatar {
    width: 48px; height: 48px; border-radius: 50%;
    background: rgba(255,255,255,0.25); display: flex;
    align-items: center; justify-content: center; font-size: 24px;
}
.dash-header .user-name { font-size: 18px; font-weight: 700; }
.dash-header .user-meta { font-size: 12px; opacity: 0.85; }

/* 统计卡片 */
.stats-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
}
.stat-card {
    background: rgba(255,255,255,0.15); border-radius: var(--radius-sm);
    padding: 14px; backdrop-filter: blur(4px);
}
.stat-card .stat-label { font-size: 12px; opacity: 0.85; margin-bottom: 4px; }
.stat-card .stat-value { font-size: 20px; font-weight: 800; }

/* ===== 内容区 ===== */
.content-area { padding: 0 0 20px; }

/* 卡片列表 */
.card {
    background: var(--c-card); border-radius: var(--radius);
    padding: 18px 16px; box-shadow: var(--shadow);
    border: 1px solid var(--c-border); margin-bottom: 12px;
}
.card-title {
    font-size: 16px; font-weight: 700; margin-bottom: 12px;
    display: flex; align-items: center; gap: 6px;
}

/* 列表项 */
.list-item {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 0; border-bottom: 1px solid var(--c-border);
}
.list-item:last-child { border-bottom: none; }
.list-item .item-icon {
    width: 40px; height: 40px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; flex-shrink: 0;
}
.list-item .item-body { flex: 1; min-width: 0; }
.list-item .item-title { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.list-item .item-sub { font-size: 12px; color: var(--c-text-light); }
.list-item .item-amount { font-size: 15px; font-weight: 700; white-space: nowrap; }
.list-item .item-amount.income { color: var(--c-green); }
.list-item .item-amount.expense { color: var(--c-red); }

/* 状态标签 */
.status-badge {
    display: inline-flex; align-items: center; gap: 3px;
    font-size: 11px; font-weight: 600;
    padding: 3px 10px; border-radius: 100px;
    white-space: nowrap;
}

/* ===== 按钮 ===== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 10px 20px; border-radius: var(--radius-sm);
    font-size: 14px; font-weight: 600; border: none; cursor: pointer;
    transition: all .2s; text-decoration: none;
}
.btn-primary {
    background: linear-gradient(135deg, var(--c-purple), var(--c-pink));
    color: #fff;
}
.btn-primary:hover { opacity: 0.9; }
.btn-secondary {
    background: #f1f5f9; color: var(--c-text);
}
.btn-secondary:hover { background: #e2e8f0; }
.btn-success {
    background: linear-gradient(135deg, var(--c-green), #059669);
    color: #fff;
}
.btn-danger {
    background: linear-gradient(135deg, var(--c-red), #dc2626);
    color: #fff;
}
.btn-block { width: 100%; }
.btn-sm { padding: 6px 14px; font-size: 12px; }
.btn-ghost {
    background: transparent; color: var(--c-text-light);
    border: 1px solid var(--c-border);
}
.btn-ghost:hover { background: #f8fafc; }

/* ===== 表单 ===== */
.form-group { margin-bottom: 16px; }
.form-label {
    display: block; font-size: 14px; font-weight: 600;
    margin-bottom: 6px; color: var(--c-text);
}
.form-label .required { color: var(--c-red); }
.form-control {
    width: 100%; padding: 10px 14px;
    border: 2px solid var(--c-border); border-radius: var(--radius-sm);
    font-size: 15px; font-family: inherit;
    transition: border-color .2s; background: #fff;
}
.form-control:focus {
    outline: none; border-color: var(--c-purple);
}
textarea.form-control { resize: vertical; min-height: 80px; }
select.form-control { cursor: pointer; }
.form-hint { font-size: 12px; color: var(--c-text-light); margin-top: 4px; }

/* 服务选择卡片 */
.service-picker { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; }
.service-pick {
    border: 2px solid var(--c-border); border-radius: var(--radius-sm);
    padding: 16px 12px; text-align: center; cursor: pointer;
    transition: all .2s; background: #fff;
}
.service-pick:hover { border-color: var(--c-purple); }
.service-pick.selected {
    border-color: var(--c-purple); background: #f5f3ff;
}
.service-pick .sp-icon { font-size: 28px; margin-bottom: 6px; }
.service-pick .sp-name { font-size: 14px; font-weight: 600; }
.service-pick .sp-price { font-size: 12px; color: var(--c-pink); margin-top: 2px; }

/* ===== 底部导航 ===== */
.bottom-nav {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
    background: rgba(255,255,255,0.95); backdrop-filter: blur(12px);
    border-top: 1px solid var(--c-border);
    display: flex; max-width: 780px; margin: 0 auto;
}
.bottom-nav a {
    flex: 1; text-align: center; padding: 8px 0 6px;
    font-size: 11px; color: var(--c-text-light);
    transition: color .2s; text-decoration: none;
}
.bottom-nav a .nav-icon { font-size: 20px; display: block; line-height: 1.4; }
.bottom-nav a.active { color: var(--c-purple); font-weight: 700; }

/* ===== Toast ===== */
.toast {
    position: fixed; bottom: 80px; left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #1f2937; color: #fff;
    padding: 10px 22px; border-radius: 100px;
    font-size: 14px; opacity: 0; transition: all .3s;
    z-index: 1000; pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

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

/* ===== 时间线 ===== */
.timeline { position: relative; padding-left: 24px; }
.timeline::before {
    content: ''; position: absolute; left: 8px; top: 4px; bottom: 4px;
    width: 2px; background: var(--c-border);
}
.timeline-item { position: relative; margin-bottom: 16px; }
.timeline-item::before {
    content: ''; position: absolute; left: -20px; top: 4px;
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--c-purple);
}
.timeline-item .tl-status { font-size: 14px; font-weight: 600; }
.timeline-item .tl-time { font-size: 12px; color: var(--c-text-light); }
.timeline-item .tl-note { font-size: 13px; color: var(--c-text); margin-top: 2px; }

/* ===== 标签页 ===== */
.tabs {
    display: flex; gap: 0; margin-bottom: 16px;
    background: #fff; border-radius: var(--radius-sm);
    overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--c-border);
}
.tab {
    flex: 1; text-align: center; padding: 10px;
    font-size: 14px; font-weight: 600; color: var(--c-text-light);
    cursor: pointer; transition: all .2s; border: none; background: none;
}
.tab.active {
    color: #fff;
    background: linear-gradient(135deg, var(--c-purple), var(--c-pink));
}

/* ===== 淡入动画 ===== */
.fade-in { opacity: 0; transform: translateY(16px); transition: opacity .5s, transform .5s; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ===== 背景装饰 ===== */
.bg-deco { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg-deco::before, .bg-deco::after {
    content: ''; position: absolute; border-radius: 50%;
    filter: blur(80px); opacity: 0.1;
}
.bg-deco::before { width: 400px; height: 400px; background: var(--c-purple); top: -120px; right: -80px; }
.bg-deco::after { width: 350px; height: 350px; background: var(--c-cyan); bottom: -80px; left: -60px; }

/* ===== 实验项目声明横幅 ===== */
.exp-notice {
    background: linear-gradient(135deg, #fff7e6, #fffbeb);
    border-top: 3px solid #f59e0b;
    border-bottom: 3px solid #f59e0b;
    padding: 14px 0;
}
.exp-notice .container {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.exp-notice-icon { font-size: 26px; flex-shrink: 0; line-height: 1; }
.exp-notice p {
    margin: 0; font-size: 14px; line-height: 1.6; color: #92400e;
}
.exp-notice strong { color: #b45309; }
