/* 漫展同好站 · 样式
   目标：手机端与桌面端都能看，卡片式布局，主色偏二次元紫粉。 */

:root {
    --accent: #7c3aed;
    --accent-2: #ec4899;
    --accent-soft: #f5efff;
    --bg: #faf8ff;
    --card: #ffffff;
    --text: #1f2233;
    --muted: #6b7280;
    --line: #e8e4f5;
    --radius: 16px;
    --shadow: 0 6px 20px rgba(31, 34, 51, .06);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
                 "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); }

.wrap {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(180%) blur(8px);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 60px;
    flex-wrap: wrap;
}

.logo {
    font-size: 20px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: .5px;
}

.logo-mark { margin-right: 6px; }

.nav {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.nav a {
    color: var(--muted);
    font-size: 15px;
    font-weight: 600;
    padding: 4px 0;
    border-bottom: 2px solid transparent;
}

.nav a:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.main { padding: 28px 20px 48px; }

/* ---------- Hero ---------- */
.hero {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    color: #fff;
    border-radius: 24px;
    padding: 36px 28px;
    margin-bottom: 32px;
}

.hero-kicker {
    margin: 0 0 6px;
    font-size: 14px;
    opacity: .85;
    letter-spacing: 2px;
}

.hero h1 {
    margin: 0 0 12px;
    font-size: 34px;
    line-height: 1.3;
}

.hero h1 em {
    font-style: normal;
    background: rgba(255, 255, 255, .22);
    border-radius: 8px;
    padding: 0 8px;
}

.hero-sub {
    margin: 0 0 20px;
    font-size: 16px;
    opacity: .95;
}

.hero-stats {
    display: flex;
    gap: 26px;
    flex-wrap: wrap;
}

.hero-stats div {
    display: flex;
    flex-direction: column;
}

.hero-stats b { font-size: 24px; }
.hero-stats span { font-size: 13px; opacity: .85; }

/* ---------- Section ---------- */
.section { margin-bottom: 36px; }

.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.section-head h2 {
    margin: 0;
    font-size: 22px;
}

.more { font-size: 14px; font-weight: 600; }

.page-head { margin-bottom: 22px; }
.page-head h1 { margin: 0 0 6px; font-size: 28px; }
.page-head p { margin: 0; color: var(--muted); }

/* ---------- Grid & Card ---------- */
.grid {
    display: grid;
    gap: 16px;
}

.grid-guest { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid-expo { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid-tonghao { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.grid-mall { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 18px;
    transition: transform .15s ease, box-shadow .15s ease;
}

a.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 26px rgba(31, 34, 51, .10);
}

.card h3 { margin: 0 0 8px; font-size: 18px; }
.card h3 a { color: var(--text); }
.card h3 a:hover { color: var(--accent); }

/* 嘉宾 */
.guest-card { display: flex; gap: 14px; align-items: flex-start; }

.guest-avatar {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--accent-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    overflow: hidden;
}
.guest-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

.guest-body { min-width: 0; }
.guest-meta { margin: 0 0 6px; display: flex; gap: 6px; flex-wrap: wrap; }
.guest-tags { margin: 0 0 6px; font-size: 13px; color: var(--muted); }
.guest-foot { margin: 0; font-size: 13px; font-weight: 700; color: var(--accent); }

/* Chip */
.chip {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
}

.chip-plain { background: #f1f0f7; color: var(--muted); }
.chip-link { background: #fff; border: 1px solid var(--line); color: var(--accent); }

/* 漫展 */
.expo-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.expo-emoji { font-size: 28px; }

.expo-cover {
    position: relative;
    display: block;
    margin: -18px -18px 12px;
    aspect-ratio: 16 / 9;
    background: var(--accent-soft);
    border-radius: var(--radius) var(--radius) 0 0;
    overflow: hidden;
}
.expo-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.expo-cover .status { position: absolute; top: 10px; right: 10px; }

/* 漫展详情海报 */
.detail-cover {
    margin: 0 auto 20px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    max-width: 800px;
}
.detail-cover img { width: 100%; display: block; }

/* 详情简介（保留换行）与详情图 */
.bio-detail { white-space: pre-line; font-size: 15px; line-height: 1.85; }
.detail-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 360px));
    justify-content: center;
    gap: 14px;
}
.detail-gallery-item {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--accent-soft);
}
.detail-gallery-item img { width: 100%; display: block; }

.status {
    font-size: 12px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 999px;
}

.status-soon { background: #fff4e5; color: #b45309; }
.status-ongoing { background: #e6f7ee; color: #047857; }
.status-past { background: #f1f0f7; color: var(--muted); }

.expo-meta { margin: 0 0 8px; font-size: 13px; color: var(--muted); }
.expo-summary { margin: 0 0 10px; font-size: 14px; }
.expo-foot { margin: 0; display: flex; gap: 6px; flex-wrap: wrap; }

/* 漫展列表：状态标签 + 分页 */
.status-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 16px; }
.status-tabs a {
    font-size: 14px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--line);
    color: var(--muted);
}
.status-tabs a:hover { color: var(--accent); }
.status-tabs a.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 26px;
}
.page-link {
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--accent);
}
.page-link.disabled { color: var(--muted); opacity: .5; }
.page-info { font-size: 14px; color: var(--muted); }

/* 同好 */
.tonghao-meta { margin: 0 0 8px; display: flex; gap: 6px; flex-wrap: wrap; }
.tonghao-desc { margin: 0 0 10px; font-size: 14px; color: var(--muted); }

.tonghao-foot {
    margin: 0 0 12px;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    font-size: 13px;
    font-weight: 600;
}

.tonghao-foot .qq { color: var(--accent); }
.tonghao-leader { margin: 0 0 10px; font-size: 12px; color: var(--muted); }

.tonghao-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* 商场 */
.mall-emoji { font-size: 30px; margin-bottom: 6px; }
.mall-meta { margin: 0 0 6px; font-size: 13px; color: var(--muted); }
.mall-intro { margin: 0 0 10px; font-size: 14px; }
.mall-tags { margin: 0; display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------- Detail ---------- */
.detail-head {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 26px;
    max-width: 860px;
    margin: 0 auto 30px;
}

.detail-avatar {
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: var(--accent-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    overflow: hidden;
}
.detail-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

.detail-head h1 { margin: 0 0 8px; font-size: 30px; }
.kicker { margin: 0 0 4px; font-size: 13px; color: var(--accent); font-weight: 700; }
.bio { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.source { margin: 10px 0 0; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ticket { margin: 10px 0 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tip-inline { font-size: 12px; color: var(--muted); }

/* ---------- Form ---------- */
.filter {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.filter input[type=text],
.filter select {
    font: inherit;
    font-size: 14px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    min-width: 140px;
}

.filter input[type=text] { flex: 1 1 200px; }

/* ---------- Button ---------- */
.btn {
    display: inline-block;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    padding: 7px 14px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--text);
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    border-color: transparent;
    color: #fff;
}

.btn-primary:hover { color: #fff; opacity: .92; }

/* ---------- Misc ---------- */
.empty { color: var(--muted); padding: 20px 0; }
.tip { font-size: 13px; color: var(--muted); margin-top: 12px; }

.site-footer {
    border-top: 1px solid var(--line);
    padding: 24px 0 40px;
    background: #fff;
}

.site-footer p { margin: 0 0 6px; font-size: 13px; color: var(--muted); }
.site-footer .beian a { color: var(--muted); }

/* ---------- 头部搜索 ---------- */
.header-search {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 2px 4px 2px 12px;
    height: 36px;
}
.header-search input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    width: 180px;
    color: var(--text);
}
.header-search button {
    border: none;
    background: var(--accent);
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
}

/* ---------- 视图切换 ---------- */
.view-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 14px; }
.view-tabs a {
    font-size: 14px;
    font-weight: 600;
    padding: 7px 16px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--line);
    color: var(--muted);
}
.view-tabs a.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.filter-note { margin: -6px 0 16px; font-size: 14px; color: var(--muted); }

/* ---------- 城市 / 场馆导览 ---------- */
.grid-city { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.grid-venue { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

.city-card, .venue-card { padding: 0; overflow: hidden; display: block; }
.city-cover, .venue-cover { aspect-ratio: 16 / 9; background: var(--accent-soft); overflow: hidden; }
.venue-cover { aspect-ratio: 21 / 9; }
.city-cover img, .venue-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.city-cover-empty { display: flex; align-items: center; justify-content: center; font-size: 42px; }
.city-body, .venue-body { padding: 14px 16px 16px; }
.city-body h3, .venue-body h3 { margin: 0 0 6px; font-size: 18px; }
.city-meta, .venue-meta { margin: 0; font-size: 13px; color: var(--muted); }
.city-meta b, .venue-meta b { color: var(--accent); font-size: 15px; }
.city-total { margin-left: 8px; }

/* ---------- 首页城市快捷 ---------- */
.city-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.city-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 92px;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
}
.city-chip b { font-size: 16px; color: var(--text); }
.city-chip span { font-size: 12px; color: var(--muted); }

/* ---------- 漫展日历 ---------- */
.cal-month { margin-bottom: 26px; }
.cal-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.cal-head h2 { margin: 0; font-size: 20px; }
.cal-list { list-style: none; margin: 0; padding: 0; }
.cal-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    margin-bottom: 8px;
}
.cal-date { flex: 0 0 98px; font-weight: 700; color: var(--accent); font-size: 14px; }
.cal-name {
    flex: 1 1 auto;
    min-width: 0;
    font-weight: 600;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.cal-name:hover { color: var(--accent); }
.cal-place {
    flex: 0 1 auto;
    font-size: 13px;
    color: var(--muted);
    max-width: 320px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
    .hero { padding: 26px 20px; border-radius: 18px; }
    .hero h1 { font-size: 26px; }
    .hero-stats { gap: 18px; }
    .header-inner { padding: 10px 0 6px; }
    /* 小屏让导航独占一行，4 等分，避免被截断 */
    .nav {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 0;
        border-top: 1px solid var(--line);
        padding-top: 6px;
    }
    .nav a {
        font-size: 14px;
        text-align: center;
        border-bottom: none;
    }
    .header-search { width: 100%; margin-top: 6px; }
    .header-search input { width: 100%; flex: 1 1 auto; }
    .main { padding: 20px 16px 36px; }
    .detail-head { flex-direction: column; }
    .grid-guest, .grid-expo, .grid-tonghao, .grid-mall,
    .grid-city, .grid-venue {
        grid-template-columns: 1fr;
    }
    .cal-item { flex-wrap: wrap; }
    .cal-date { flex: 0 0 auto; }
    .cal-name { flex: 1 1 60%; }
    .cal-place { max-width: 100%; white-space: normal; }
}
