/* verevoice.com 新版样式 - 简洁现代 */
:root {
    --primary: #4f46e5;
    --primary-dark: #4338ca;
    --success: #10b981;
    --danger: #ef4444;
    --text: #1f2937;
    --text-light: #6b7280;
    --bg: #f9fafb;
    --border: #e5e7eb;
    --radius: 12px;
    --shadow: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
                 "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; width: 100%; }

/* ---------- Header ---------- */
.site-header {
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 60px;
}
.logo { font-size: 20px; font-weight: 700; color: var(--primary); text-decoration: none; }
.header-nav { display: flex; gap: 20px; align-items: center; }
.header-nav a { color: var(--text); text-decoration: none; font-size: 14px; }
.header-nav a:hover { color: var(--primary); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-block; padding: 10px 20px; border-radius: 8px;
    border: none; cursor: pointer; font-size: 14px; font-weight: 500;
    text-decoration: none; text-align: center; transition: all .15s;
}
.btn-wechat {
    background: #07c160; color: #fff;
}
.btn-wechat:hover { background: #06ad56; color: #fff; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-link { background: none; border: none; color: var(--text-light); cursor: pointer; font-size: 14px; }

/* ---------- Main ---------- */
.main-content { flex: 1; padding: 40px 20px; }

/* ---------- 登录页 ---------- */
.login-wrap {
    max-width: 400px; margin: 60px auto; text-align: center;
    background: #fff; padding: 50px 40px; border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.login-wrap h1 { font-size: 24px; margin-bottom: 12px; }
.login-wrap p { color: var(--text-light); margin-bottom: 30px; }
.login-wrap .btn-wechat {
    display: block; width: 100%; padding: 14px; font-size: 16px;
}

/* ---------- 用户中心卡片 ---------- */
.user-card {
    background: #fff; border-radius: var(--radius); padding: 30px;
    box-shadow: var(--shadow); max-width: 700px; margin: 0 auto;
    display: flex; align-items: center; gap: 24px;
}
.user-avatar {
    width: 80px; height: 80px; border-radius: 50%; object-fit: cover;
    background: var(--border);
}
.user-info h2 { font-size: 20px; margin-bottom: 6px; }
.user-meta { color: var(--text-light); font-size: 14px; margin-bottom: 4px; }

.vip-badge {
    display: inline-block; padding: 3px 10px; border-radius: 20px;
    font-size: 12px; font-weight: 600;
}
.vip-badge.active { background: #fef3c7; color: #92400e; }
.vip-badge.permanent { background: #ddd6fe; color: #5b21b6; }
.vip-badge.expired { background: #fee2e2; color: #991b1b; }
.vip-badge.free { background: #f3f4f6; color: var(--text-light); }

/* ---------- 套餐卡片 ---------- */
.plans-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px; margin-top: 30px;
}
.plan-card {
    background: #fff; border-radius: var(--radius); padding: 36px 28px;
    box-shadow: var(--shadow); text-align: center; position: relative;
    border: 2px solid transparent; transition: all .2s;
}
.plan-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.plan-card.disabled { opacity: .55; background: #f9fafb; }
.plan-card.disabled:hover { border-color: transparent; transform: none; }
.plan-card .btn[disabled] { background: #d1d5db; color: #6b7280; cursor: not-allowed; }
.plan-card.featured { border-color: var(--primary); }
.plan-card.featured::before {
    content: '推荐'; position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
    background: var(--primary); color: #fff; padding: 3px 14px; border-radius: 20px;
    font-size: 12px;
}
.plan-name { font-size: 20px; font-weight: 600; margin-bottom: 12px; }
.plan-price { font-size: 36px; font-weight: 700; color: var(--primary); margin: 16px 0; }
.plan-price small { font-size: 16px; font-weight: 400; color: var(--text-light); }
.plan-duration { color: var(--text-light); font-size: 14px; margin-bottom: 24px; }
.plan-card .btn { display: block; width: 100%; }

/* ---------- 消息页 ---------- */
.msg-wrap {
    max-width: 500px; margin: 80px auto; text-align: center;
    background: #fff; padding: 40px; border-radius: var(--radius); box-shadow: var(--shadow);
}
.msg-wrap .icon { font-size: 48px; margin-bottom: 16px; }
.msg-wrap.error .icon { color: var(--danger); }
.msg-wrap.success .icon { color: var(--success); }
.msg-wrap h2 { margin-bottom: 12px; }

/* ---------- 后台 ---------- */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
    width: 220px; background: #1f2937; color: #fff; padding: 20px 0; flex-shrink: 0;
}
.admin-sidebar h3 { padding: 0 20px 20px; font-size: 18px; border-bottom: 1px solid #374151; }
.admin-sidebar a {
    display: block; padding: 12px 20px; color: #d1d5db; text-decoration: none; font-size: 14px;
}
.admin-sidebar a:hover, .admin-sidebar a.active { background: #374151; color: #fff; }
.admin-main { flex: 1; padding: 30px; background: var(--bg); overflow-x: auto; }
.admin-main h1 { margin-bottom: 24px; font-size: 22px; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 20px; margin-bottom: 30px; }
.stat-card { background: #fff; padding: 24px; border-radius: var(--radius); box-shadow: var(--shadow); }
.stat-card .label { color: var(--text-light); font-size: 13px; }
.stat-card .value { font-size: 28px; font-weight: 700; margin-top: 6px; }

table { width: 100%; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border-collapse: collapse; }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); font-size: 14px; }
th { background: #f3f4f6; font-weight: 600; color: var(--text-light); text-transform: uppercase; font-size: 12px; }
tr:hover { background: #fafafa; }

.form-row { margin-bottom: 16px; }
.form-row label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 500; }
.form-row input, .form-row select {
    width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px;
}
.form-row input:focus { outline: none; border-color: var(--primary); }

/* ---------- 增强统计卡片 ---------- */
.stat-card.highlight { background: linear-gradient(135deg,#4f46e5,#7c3aed); color:#fff; }
.stat-card.highlight .label, .stat-card.highlight .value { color:#fff; }
.stat-card.month { border-left: 3px solid var(--primary); }
.stat-card .stat-sub { margin-top:8px; font-size:12px; color:var(--text-light); }
.stat-card.month .stat-sub b { color:var(--primary); }

/* ---------- Footer ---------- */
.site-footer { background: #fff; border-top: 1px solid var(--border); padding: 20px 0; margin-top: auto; }
.site-footer p { text-align: center; color: var(--text-light); font-size: 13px; }

@media (max-width: 640px) {
    .user-card { flex-direction: column; text-align: center; }
    .admin-layout { flex-direction: column; }
    .admin-sidebar { width: 100%; }
}

/* ---------- 主页 Hero ---------- */
.hero {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #9333ea 100%);
    color: #fff; text-align: center; padding: 80px 20px;
}
.hero-title { font-size: 42px; font-weight: 800; margin-bottom: 16px; letter-spacing: 1px; }
.hero-sub { font-size: 18px; opacity: .9; max-width: 640px; margin: 0 auto 32px; line-height: 1.7; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-actions .btn-lg { padding: 14px 36px; font-size: 16px; }

/* ---------- 通用 section ---------- */
.section { padding: 60px 0; }
.section-gray { background: #f9fafb; }
.section-title { text-align: center; font-size: 28px; font-weight: 700; margin-bottom: 40px; color: var(--text); }

/* ---------- 功能特点卡片 ---------- */
.features-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px; max-width: 960px; margin: 0 auto;
}
.feature-card {
    background: #fff; border-radius: 12px; padding: 32px 24px; text-align: center;
    box-shadow: var(--shadow); transition: transform .2s;
}
.feature-card:hover { transform: translateY(-4px); }
.feature-icon {
    width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%;
    background: linear-gradient(135deg,#4f46e5,#7c3aed); color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 24px;
}
.feature-card h3 { font-size: 18px; margin-bottom: 10px; }
.feature-card p { color: var(--text-light); font-size: 14px; line-height: 1.6; }

/* ---------- 视频区（16:9，强制占满父容器）---------- */
.video-wrap {
    position: relative; width: 100% !important;
    padding-bottom: 56.25%; height: 0; border-radius: 12px; overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,.15); background: #000;
}
.video-wrap iframe { position: absolute; top: 0; left: 0; width: 100% !important; height: 100% !important; border: 0; }

/* ---------- 下载区（简洁文字链接，居中横排）---------- */
.download-list {
    display: flex; gap: 40px; justify-content: center; flex-wrap: wrap;
}
.download-item {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 16px 32px; background: #fff; border-radius: 10px;
    box-shadow: var(--shadow); text-decoration: none; color: var(--text);
    font-size: 16px; font-weight: 500; transition: all .2s;
}
.download-item:hover {
    color: var(--primary); transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79,70,229,.15);
}
.download-item .download-icon { font-size: 22px; }

/* ---------- 备案号 ---------- */
.site-footer .beian { margin-top: 8px; }
.site-footer .beian a { color: var(--text-light); font-size: 13px; text-decoration: none; }
.site-footer .beian a:hover { color: var(--primary); }

@media (max-width: 640px) {
    .hero-title { font-size: 30px; }
    .hero-sub { font-size: 16px; }
    .hero { padding: 50px 20px; }
}

/* ---------- 音频试听区 ---------- */
.audio-list {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px; max-width: 900px; margin: 0 auto;
}
.audio-item {
    display: flex; align-items: center; gap: 14px;
    background: #fff; padding: 14px 18px; border-radius: 10px;
    box-shadow: var(--shadow); cursor: pointer; transition: all .15s;
}
.audio-item:hover { transform: translateX(4px); box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.audio-play-btn {
    width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
    background: var(--primary); color: #fff; font-size: 14px;
    display: flex; align-items: center; justify-content: center;
    transition: all .15s;
}
.audio-play-btn.playing { background: var(--success); }
.audio-play-btn:hover { transform: scale(1.1); }
.audio-title { font-size: 14px; color: var(--text); line-height: 1.4; }
