/* ==========================================
   Vsinger 虚拟歌手门户 - 全站样式
   主色:天依蓝 #66CCFF(品牌色)
   ========================================== */

:root {
    --blue: #66ccff;
    --blue-dark: #2aa8e8;
    --blue-deep: #1b7fb8;
    --ink: #2b3440;
    --muted: #7a8699;
    --bg: #f4f9fd;
    --card: #ffffff;
    --radius: 14px;
    --shadow: 0 6px 24px rgba(43, 104, 168, 0.12);
}

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

body {
    font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.7;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container { width: min(1080px, 92%); margin: 0 auto; }

/* ---------- 头部 ---------- */
.site-header {
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%);
    color: #fff;
    box-shadow: 0 2px 12px rgba(27, 127, 184, 0.35);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    flex-wrap: wrap;
    gap: 10px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
}

.logo-badge {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.22);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.logo-text { font-size: 20px; font-weight: 700; letter-spacing: 1px; }

.main-nav { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }

.main-nav > a, .nav-dropbtn {
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 15px;
    display: inline-block;
    transition: background 0.2s, color 0.2s;
}

.main-nav > a:hover, .nav-dropbtn:hover { background: rgba(255, 255, 255, 0.18); color: #fff; }
.main-nav > a.active, .nav-dropdown.active .nav-dropbtn { background: #fff; color: var(--blue-deep); font-weight: 600; }

/* 导航下拉 */
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(27, 80, 120, 0.25);
    padding: 8px;
    min-width: 168px;
    z-index: 200;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu { display: block; }

.nav-dropdown-menu a {
    display: block;
    padding: 9px 14px;
    border-radius: 8px;
    font-size: 14px;
    color: var(--ink) !important;
    text-decoration: none;
    white-space: nowrap;
}

.nav-dropdown-menu a:hover { background: #eaf7ff; color: var(--blue-deep) !important; }
.nav-dropdown-menu a .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; }

/* ---------- 主体 ---------- */
.site-main { flex: 1; padding: 36px 0 56px; }

/* 免责提示条 */
.site-notice {
    background: #fff8e6;
    border: 1px solid #f0dfae;
    color: #8a6d1d;
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 13px;
    margin-bottom: 26px;
    line-height: 1.7;
}

/* ---------- 门户 Hero ---------- */
.hero {
    background: linear-gradient(160deg, #e8f6ff 0%, #d6eeff 45%, #c2e6ff 100%);
    border-radius: var(--radius);
    padding: 56px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 36px;
    box-shadow: var(--shadow);
}

.hero::before, .hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(102, 204, 255, 0.35), transparent 70%);
    pointer-events: none;
}

.hero::before { width: 260px; height: 260px; top: -80px; right: -60px; }
.hero::after  { width: 200px; height: 200px; bottom: -70px; left: -40px; }

.hero h1 { font-size: 42px; color: var(--blue-deep); margin-bottom: 8px; position: relative; }
.hero .sub { font-size: 20px; color: var(--blue-dark); margin-bottom: 18px; position: relative; }
.hero p { color: #4a6a86; max-width: 660px; margin: 0 auto 26px; position: relative; }

.hero .faces { font-size: 26px; letter-spacing: 14px; margin-bottom: 10px; position: relative; }

.btn {
    display: inline-block;
    background: var(--blue);
    color: #fff;
    padding: 12px 30px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 6px 18px rgba(42, 168, 232, 0.4);
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.btn:hover { background: var(--blue-dark); transform: translateY(-2px); }

.btn-outline {
    background: transparent;
    color: var(--blue-deep);
    border: 2px solid var(--blue);
    box-shadow: none;
}

.btn-outline:hover { background: var(--blue); color: #fff; }

/* 社交平台按钮 */
.btn-bili { background: #fb7299; box-shadow: 0 6px 18px rgba(251, 114, 153, 0.4); }
.btn-bili:hover { background: #e05e85; }

.btn-douyin {
    background: linear-gradient(135deg, #25f4ee, #fe2c55);
    box-shadow: 0 6px 18px rgba(254, 44, 85, 0.35);
}

.btn-douyin:hover { filter: brightness(1.08); transform: translateY(-2px); }

/* ---------- 区块 ---------- */
.section { margin-top: 40px; }

.section h2 {
    font-size: 24px;
    color: var(--blue-deep);
    margin-bottom: 6px;
    padding-left: 14px;
    border-left: 5px solid var(--blue);
}

.section .desc { color: var(--muted); margin-bottom: 20px; padding-left: 14px; }

/* 通用卡片网格 */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.card {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 26px 24px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(43, 104, 168, 0.18); }

.card h3 { color: var(--blue-deep); font-size: 18px; margin-bottom: 8px; }
.card h3 .num {
    display: inline-block;
    background: var(--blue);
    color: #fff;
    border-radius: 8px;
    font-size: 13px;
    padding: 1px 8px;
    margin-right: 8px;
    vertical-align: 2px;
}
.card p { color: #4a5a6e; font-size: 14.5px; }
.card .tag {
    display: inline-block;
    background: #eaf7ff;
    color: var(--blue-deep);
    border-radius: 999px;
    font-size: 12px;
    padding: 2px 12px;
    margin-top: 12px;
}

/* ---------- 歌手卡片(门户首页) ---------- */
.singer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 22px;
}

.singer-card {
    display: block;
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
}

.singer-card:hover { transform: translateY(-6px); box-shadow: 0 14px 32px rgba(43, 104, 168, 0.2); }

.singer-card .s-cover {
    aspect-ratio: 1 / 1;
    background-color: var(--c, var(--blue));
    background-image: linear-gradient(160deg, rgba(255, 255, 255, 0.30), transparent 55%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 72px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.singer-card .s-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.singer-card .s-body { padding: 18px 20px 20px; }

.singer-card .s-body h3 { font-size: 19px; color: var(--ink); margin-bottom: 2px; }
.singer-card .s-body h3 .s-en { font-size: 12.5px; color: var(--muted); font-weight: 400; margin-left: 6px; letter-spacing: 1px; }
.singer-card .s-body p { color: #4a5a6e; font-size: 13.5px; margin-top: 6px; }
.singer-card .s-tags { margin-top: 10px; }
.singer-card .s-tags span {
    display: inline-block;
    font-size: 12px;
    color: var(--blue-deep);
    background: #eaf7ff;
    border-radius: 999px;
    padding: 2px 12px;
    margin: 3px 6px 0 0;
}

/* ---------- 人物详情页 ---------- */
.char-hero {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    background: var(--card);
    display: flex;
    gap: 32px;
    padding: 34px;
    flex-wrap: wrap;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
}

.char-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, var(--c, var(--blue)), transparent 55%);
    opacity: 0.14;
    pointer-events: none;
}

.char-avatar {
    width: 170px;
    aspect-ratio: 1 / 1;
    border-radius: 14px;
    flex-shrink: 0;
    background-color: var(--c, var(--blue));
    background-image: linear-gradient(160deg, rgba(255, 255, 255, 0.30), transparent 60%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.char-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.char-avatar .char { font-size: 62px; font-weight: 700; line-height: 1; }
.char-avatar .en { font-size: 13px; letter-spacing: 2px; opacity: 0.95; margin-top: 8px; }

.char-body { flex: 1; min-width: 260px; position: relative; }
.char-body h2 { color: var(--blue-deep); margin-bottom: 4px; font-size: 26px; }
.char-body .char-en { color: var(--muted); font-size: 14px; letter-spacing: 1.5px; margin-bottom: 12px; }
.char-body p { margin-bottom: 10px; }
.char-body .color-chip {
    display: inline-block;
    padding: 3px 14px;
    border-radius: 999px;
    color: #fff;
    font-size: 13px;
    margin-top: 6px;
}

.info-table { width: 100%; border-collapse: collapse; margin-top: 14px; }
.info-table th, .info-table td {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px dashed #dbeaf5;
    font-size: 14.5px;
}
.info-table th { color: var(--blue-deep); width: 110px; white-space: nowrap; }

.char-nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 26px;
}

/* ---------- 歌曲列表 ---------- */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }

.filter-bar a {
    padding: 8px 18px;
    border-radius: 999px;
    background: var(--card);
    color: var(--blue-deep);
    text-decoration: none;
    border: 1.5px solid #cfe4f5;
    font-size: 14px;
    transition: all 0.2s;
    box-shadow: var(--shadow);
}

.filter-bar a:hover { border-color: var(--blue); transform: translateY(-1px); }
.filter-bar a.on { background: var(--blue); color: #fff; border-color: var(--blue); }

.song-list { display: flex; flex-direction: column; gap: 16px; }

.song-item {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px 26px;
    display: flex;
    gap: 18px;
    align-items: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.song-item:hover { transform: translateX(6px); box-shadow: 0 10px 26px rgba(43, 104, 168, 0.18); }

.song-rank {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--blue), var(--blue-deep));
    color: #fff;
    font-size: 19px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.song-info { flex: 1; }
.song-info h3 { color: var(--blue-deep); font-size: 17px; }
.song-info .meta { color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.song-info .meta .singer-link { color: var(--blue-dark); text-decoration: none; }
.song-info .meta .singer-link:hover { text-decoration: underline; }
.song-info .note { color: #4a5a6e; font-size: 14px; margin-top: 6px; }

.song-date {
    color: var(--muted);
    font-size: 13px;
    text-align: right;
    white-space: nowrap;
}

/* ---------- 播放按钮(跳转网易云) ---------- */
.song-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    flex-shrink: 0;
}

.btn-play {
    display: inline-block;
    border: none;
    cursor: pointer;
    background: var(--blue);
    color: #fff;
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
    text-align: center;
    box-shadow: 0 4px 12px rgba(42, 168, 232, 0.35);
    transition: background 0.2s, transform 0.15s;
}

.btn-play:hover { background: var(--blue-dark); transform: translateY(-1px); color: #fff; }

/* ---------- 图库 ---------- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px;
}

.g-item {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    aspect-ratio: 4 / 5;
    display: flex;
    flex-direction: column;
    position: relative;
    color: #fff;
    text-decoration: none;
}

.g-item .art {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 52px;
    font-weight: 700;
}

.g-item .cap {
    background: rgba(20, 40, 60, 0.55);
    padding: 10px 14px;
    font-size: 13.5px;
    text-align: center;
    backdrop-filter: blur(2px);
}

.g-note { color: var(--muted); font-size: 13.5px; margin-top: 14px; text-align: center; }

/* ---------- 留言板 ---------- */
.board-wrap { display: grid; grid-template-columns: 340px 1fr; gap: 24px; align-items: start; }

@media (max-width: 820px) { .board-wrap { grid-template-columns: 1fr; } }

.board-form, .board-list {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 26px;
}

.board-form h3 { color: var(--blue-deep); margin-bottom: 14px; }

.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 14px; color: #4a5a6e; margin-bottom: 6px; }

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #cfe4f5;
    border-radius: 10px;
    font-size: 14.5px;
    font-family: inherit;
    background: #fbfdff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(102, 204, 255, 0.25);
}

.form-group textarea { resize: vertical; min-height: 110px; }

.btn-submit {
    border: none;
    cursor: pointer;
    background: var(--blue);
    color: #fff;
    padding: 11px 34px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    transition: background 0.2s, transform 0.15s;
}

.btn-submit:hover { background: var(--blue-dark); transform: translateY(-1px); }

.alert {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 14.5px;
}

.alert-success { background: #e4f9ee; color: #1e8e5a; border: 1px solid #b8ecd1; }
.alert-error { background: #fdecec; color: #c0392b; border: 1px solid #f5c6c6; }

.msg-item {
    padding: 14px 0;
    border-bottom: 1px dashed #dbeaf5;
}

.msg-item:last-child { border-bottom: none; }

.msg-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; flex-wrap: wrap; gap: 4px; }
.msg-name { color: var(--blue-deep); font-weight: 600; font-size: 15px; }
.msg-target {
    display: inline-block;
    background: #eaf7ff;
    color: var(--blue-deep);
    font-size: 12px;
    padding: 1px 10px;
    border-radius: 999px;
    margin-left: 8px;
    font-weight: 400;
}
.msg-time { color: var(--muted); font-size: 12.5px; }
.msg-content { color: #3d4c5e; font-size: 14.5px; }

.empty { color: var(--muted); text-align: center; padding: 30px 0; }

/* ---------- 页脚 ---------- */
.site-footer {
    background: linear-gradient(135deg, var(--blue-deep), #125a8a);
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
    padding: 26px 0;
    font-size: 14px;
}

.site-footer p { margin: 4px 0; }
.footer-note { font-size: 12.5px; opacity: 0.75; line-height: 1.8; }
.footer-ver { font-size: 12px; opacity: 0.5; margin-top: 6px; }

/* ---------- 页面标题 ---------- */
.page-head { margin-bottom: 26px; }
.page-head h1 { color: var(--blue-deep); font-size: 30px; margin-bottom: 4px; }
.page-head p { color: var(--muted); }
