/* 古剑奇谭木语人 - 发布页（应用商店风格） */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --gold: #c9a96e;
    --gold-deep: #8b6f47;
    --gold-light: #e8d9b8;
    --ink: #1f2430;
    --gray: #6b7280;
    --line: #ececf0;
    --bg: #f6f7f9;
    --card: #ffffff;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.6;
}

.container { max-width: 960px; margin: 0 auto; padding: 0 20px; }

/* 顶部导航 */
.topbar {
    background: #fff;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 100;
}
.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}
.topbar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--ink);
    font-weight: 800;
    font-size: 17px;
}
.topbar-logo img { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; }
.topbar-nav { display: flex; align-items: center; gap: 22px; }
.topbar-nav a {
    color: var(--gray);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color .2s;
}
.topbar-nav a:hover { color: var(--gold-deep); }
.topbar-btn {
    background: linear-gradient(135deg, var(--gold), var(--gold-deep));
    color: #fff !important;
    padding: 8px 18px;
    border-radius: 20px;
    font-weight: 700;
}

/* App 头部 */
.app-header {
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 36px 0;
}
.app-header-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}
.app-icon {
    width: 110px;
    height: 110px;
    border-radius: 24px;
    object-fit: cover;
    box-shadow: 0 8px 30px rgba(0,0,0,.14);
}
.app-info { flex: 1; min-width: 240px; }
.app-name { font-size: 30px; font-weight: 900; margin-bottom: 6px; }
.app-meta { color: var(--gray); font-size: 14px; margin-bottom: 10px; }
.app-rating { display: flex; align-items: center; gap: 10px; }
.rating-score { font-size: 22px; font-weight: 900; color: var(--gold-deep); }
.stars { color: #f5b50a; letter-spacing: 2px; font-size: 15px; }
.rating-count { color: var(--gray); font-size: 13px; }
.app-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* 按钮 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all .25s;
}
.btn-android {
    background: linear-gradient(135deg, var(--gold), var(--gold-deep));
    color: #fff;
    box-shadow: 0 4px 16px rgba(139,111,71,.3);
}
.btn-android:hover { transform: translateY(-2px); box-shadow: 0 8px 26px rgba(139,111,71,.4); }
.btn-ios {
    background: linear-gradient(135deg, #007aff 0%, #0051d5 100%);
    color: #fff;
    cursor: pointer;
    opacity: 1;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
    transition: all 0.3s ease;
}
.btn-ios:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 122, 255, 0.4);
}
.btn-ios:active {
    transform: translateY(0);
}
.btn-lg { padding: 16px 40px; font-size: 17px; }

/* 卡片区块 */
.card-section { padding: 28px 0; }
.card {
    background: var(--card);
    border-radius: 18px;
    border: 1px solid var(--line);
    padding: 32px;
    box-shadow: 0 2px 12px rgba(0,0,0,.04);
}
.card-title {
    font-size: 21px;
    font-weight: 900;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--gold);
    display: inline-block;
    color: var(--ink);
}

/* 最近更新 */
.update-date { color: var(--gold-deep); font-weight: 700; font-size: 14px; margin-bottom: 14px; }
.update-list { list-style: none; }
.update-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
    line-height: 1.7;
}
.update-list li:last-child { border-bottom: none; }
.update-tag {
    flex-shrink: 0;
    background: var(--gold-light);
    color: var(--gold-deep);
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 12px;
    margin-top: 2px;
}
.update-tag.hot { background: #fde8e8; color: #c0392b; }

/* 详细信息 */
.info-table { width: 100%; border-collapse: collapse; }
.info-table td { padding: 12px 4px; border-bottom: 1px solid var(--line); font-size: 14px; }
.info-table tr:last-child td { border-bottom: none; }
.info-label { color: var(--gray); width: 130px; font-weight: 500; }

/* 游戏特色 */
.feature-list { display: flex; flex-direction: column; gap: 22px; }
.feature-item { display: flex; gap: 18px; align-items: flex-start; }
.feature-item-icon {
    width: 54px; height: 54px;
    background: linear-gradient(135deg, rgba(201,169,110,.18), rgba(139,111,71,.10));
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 26px;
    flex-shrink: 0;
}
.feature-item-text h3 { font-size: 16px; font-weight: 800; margin-bottom: 6px; }
.feature-item-text p { font-size: 14px; color: var(--gray); line-height: 1.8; }

/* 截图横滑 */
.screenshot-scroller {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
    scrollbar-width: thin;
}
.screenshot-track { display: flex; gap: 12px; width: max-content; }
.shot {
    width: 300px;
    height: 169px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid var(--line);
    background: #000;
}
.shot img { width: 100%; height: 100%; object-fit: cover; }

/* 评价 */
.review-summary { display: flex; gap: 40px; align-items: center; flex-wrap: wrap; }
.review-score-block { text-align: center; min-width: 160px; }
.review-score { font-size: 56px; font-weight: 900; color: var(--gold-deep); line-height: 1; }
.review-stars { color: #f5b50a; letter-spacing: 3px; font-size: 18px; margin: 8px 0 4px; }
.review-desc { color: var(--gray); font-size: 13px; }
.review-bars { flex: 1; min-width: 260px; }
.bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 13px; color: var(--gray); }
.bar-label { width: 28px; }
.bar { flex: 1; height: 8px; background: #f0f0f3; border-radius: 6px; overflow: hidden; }
.bar-fill { height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-deep)); border-radius: 6px; }
.bar-num { width: 40px; text-align: right; }

/* 底部下载 */
.bottom-download {
    background: linear-gradient(135deg, #3a2f22, #1f2430);
    padding: 40px 0;
    margin-top: 10px;
}
.bottom-download-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.bottom-app { display: flex; align-items: center; gap: 16px; }
.bottom-app .app-icon { width: 68px; height: 68px; border-radius: 16px; box-shadow: 0 4px 18px rgba(0,0,0,.4); }
.bottom-app h3 { color: #fff; font-size: 20px; font-weight: 900; margin-bottom: 4px; }
.bottom-app p { color: #b8bcc6; font-size: 13px; }

/* 页脚 */
.footer { background: #1a1e27; color: #8b90a0; text-align: center; padding: 26px 0; font-size: 13px; }

/* 弹窗公告 */
.announcement-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.6);
    backdrop-filter: blur(5px);
    display: flex; align-items: center; justify-content: center;
    z-index: 9999;
    opacity: 0; visibility: hidden;
    transition: opacity .3s, visibility .3s;
}
.announcement-overlay.active { opacity: 1; visibility: visible; }
.announcement-modal {
    background: #fff;
    border-radius: 20px;
    width: 90%; max-width: 500px;
    max-height: 80vh; overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,.3);
    transform: translateY(-50px);
    opacity: 0;
    transition: transform .4s cubic-bezier(.34,1.56,.64,1), opacity .3s;
}
.announcement-overlay.active .announcement-modal { transform: translateY(0); opacity: 1; }
.announcement-overlay.slide-up .announcement-modal { transform: translateY(-100vh); opacity: 0; }
.announcement-overlay.slide-up { opacity: 0; visibility: hidden; transition: opacity .5s .2s, visibility .5s .2s; }
.announcement-header {
    background: linear-gradient(135deg, var(--gold), var(--gold-deep));
    padding: 24px; text-align: center;
    border-radius: 20px 20px 0 0;
}
.announcement-icon { font-size: 40px; margin-bottom: 8px; }
.announcement-title { color: #fff; font-size: 22px; font-weight: 900; }
.announcement-content { padding: 24px; }
.announcement-content p { color: #374151; font-size: 14px; line-height: 1.8; margin-bottom: 12px; }
.announcement-content p:last-child { margin-bottom: 0; }
.announcement-footer { padding: 0 24px 24px; text-align: center; }
.announcement-btn {
    background: linear-gradient(135deg, var(--gold), var(--gold-deep));
    color: #fff; border: none;
    padding: 14px 48px; border-radius: 12px;
    font-size: 16px; font-weight: 700; cursor: pointer;
    transition: all .3s;
    box-shadow: 0 4px 15px rgba(201,169,110,.4);
}
.announcement-btn:hover { transform: translateY(-2px); }
.announcement-checkbox-wrap { margin-bottom: 16px; text-align: left; }
.announcement-checkbox-label { display: inline-flex; align-items: center; cursor: pointer; user-select: none; }
.announcement-checkbox { position: absolute; opacity: 0; cursor: pointer; }
.announcement-checkbox-custom {
    width: 18px; height: 18px;
    border: 2px solid var(--gold);
    border-radius: 4px; margin-right: 8px;
    display: flex; align-items: center; justify-content: center;
    transition: all .2s; background: #fff; flex-shrink: 0;
}
.announcement-checkbox:checked + .announcement-checkbox-custom {
    background: linear-gradient(135deg, var(--gold), var(--gold-deep));
    border-color: var(--gold-deep);
}
.announcement-checkbox:checked + .announcement-checkbox-custom::after {
    content: ''; width: 5px; height: 9px;
    border: solid #fff; border-width: 0 2px 2px 0;
    transform: rotate(45deg); margin-bottom: 2px;
}
.announcement-checkbox-text { font-size: 14px; color: #6b7280; }

/* 响应式 */
@media (max-width: 720px) {
    .topbar-nav a:not(.topbar-btn) { display: none; }
    .app-header-inner { gap: 16px; }
    .app-icon { width: 84px; height: 84px; border-radius: 18px; }
    .app-name { font-size: 24px; }
    .app-actions { width: 100%; }
    .app-actions .btn { flex: 1; }
    .card { padding: 22px; }
    .review-summary { gap: 24px; }
    .shot { width: 240px; height: 135px; }
    .bottom-download-inner { flex-direction: column; text-align: center; }
}
