/* =============== Reset =============== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    background: #0c0c1d;
    color: #e0e0e0;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; transition: all .3s; }
img { max-width: 100%; display: block; }

/* =============== Header =============== */
.site-header {
    background: linear-gradient(180deg, #12122a 0%, #0c0c1d 100%);
    padding: 20px 16px 12px;
    text-align: center;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    max-width: 640px;
    margin: 0 auto;
}
.site-logo {
    width: 52px; height: 52px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid rgba(212,175,55,.5);
    box-shadow: 0 0 12px rgba(212,175,55,.2);
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #1a1a3a, #2a2a5a);
}
.site-logo img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.logo-fallback {
    font-size: 20px;
    font-weight: 800;
    color: #d4af37;
    letter-spacing: 1px;
}
.site-title {
    font-size: 22px;
    font-weight: 800;
    background: linear-gradient(135deg, #d4af37, #f0d060, #d4af37);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
}

/* =============== Banner =============== */
.banner-wrap {
    position: relative;
    max-width: 640px;
    margin: 0 auto;
    overflow: hidden;
    padding: 10px 12px 0;
}
.banner-slider {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #111128;
    /* 16:9 宽高比容器 */
    aspect-ratio: 16 / 8;
}
.banner-slide {
    display: none;
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0;
    transition: opacity .5s ease;
}
.banner-slide.active {
    display: block;
    opacity: 1;
}
.banner-slide a {
    display: block;
    width: 100%; height: 100%;
}
.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}
/* 纯色占位（无图片时） */
.banner-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a3e, #2a1b5e);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.3);
    font-size: 14px;
    border-radius: 12px;
}
.banner-dots {
    text-align: center;
    padding: 10px 0;
    display: flex;
    justify-content: center;
    gap: 6px;
    background: #0c0c1d;
}
.b-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,.2);
    cursor: pointer;
    transition: all .3s;
}
.b-dot.active {
    background: #d4af37;
    box-shadow: 0 0 6px rgba(212,175,55,.4);
}

/* =============== 跑马灯 =============== */
.marquee-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 640px;
    margin: 0 auto;
    padding: 10px 16px;
    background: #111128;
    border-top: 1px solid rgba(255,255,255,.04);
    border-bottom: 1px solid rgba(255,255,255,.04);
}
.marquee-icon {
    color: #d4af37;
    font-size: 16px;
    flex-shrink: 0;
}
.marquee-track {
    flex: 1;
    overflow: hidden;
}
.marquee-text {
    white-space: nowrap;
    display: inline-block;
    animation: marquee 20s linear infinite;
    color: rgba(255,255,255,.7);
    font-size: 14px;
    letter-spacing: 1px;
}
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* =============== 标语区 =============== */
.slogan-section {
    text-align: center;
    padding: 28px 16px;
    max-width: 640px;
    margin: 0 auto;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.slogan-cn {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 3px;
    margin-bottom: 6px;
}
.slogan-en {
    font-size: 11px;
    color: rgba(255,255,255,.3);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* =============== 平台卡片列表 =============== */
.platform-list {
    max-width: 640px;
    margin: 0 auto;
    padding: 16px 16px 8px;
}

.plat-card {
    background: linear-gradient(160deg, #16162e 0%, #1c1c3a 50%, #141430 100%);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 14px;
    padding: 18px 16px;
    margin-bottom: 14px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    transition: all .3s;
    box-shadow: 0 2px 12px rgba(0,0,0,.3);
    position: relative;
    overflow: hidden;
}
/* 卡片顶部微光 */
.plat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212,175,55,.15), transparent);
}
.plat-card:hover {
    border-color: rgba(212,175,55,.15);
    box-shadow: 0 4px 20px rgba(0,0,0,.4);
}

/* Logo */
.plat-logo {
    width: 72px; height: 72px;
    border-radius: 14px;
    overflow: hidden;
    flex-shrink: 0;
    background: #1a1a3a;
    border: 1px solid rgba(255,255,255,.06);
    box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.plat-logo img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.plat-logo-text {
    width: 100%; height: 100%;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    background: linear-gradient(135deg, #2a1b5e, #1a1a3a);
    color: #d4af37;
}
.plat-logo-letter {
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
}
.plat-logo-name {
    font-size: 9px;
    margin-top: 3px;
    opacity: .7;
}

/* 信息区 */
.plat-info {
    flex: 1;
    min-width: 0;
}
.plat-name {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
}
.plat-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: rgba(255,255,255,.5);
    margin-bottom: 3px;
}
.plat-stars {
    color: #d4af37;
    font-size: 12px;
    letter-spacing: 1px;
}
.plat-score {
    color: #d4af37;
    font-weight: 700;
    font-size: 14px;
}
.plat-users {
    font-size: 12px;
    color: rgba(255,255,255,.4);
    margin-bottom: 4px;
}
.plat-promo {
    font-size: 12px;
    color: rgba(255,255,255,.5);
    line-height: 1.5;
}

/* 立即前往按钮 */
.plat-go {
    position: absolute;
    right: 16px;
    top: 18px;
    padding: 7px 16px;
    background: linear-gradient(135deg, rgba(212,175,55,.15), rgba(212,175,55,.05));
    border: 1px solid rgba(212,175,55,.3);
    border-radius: 6px;
    color: #d4af37;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all .25s;
    white-space: nowrap;
}
.plat-go:hover {
    background: linear-gradient(135deg, rgba(212,175,55,.25), rgba(212,175,55,.1));
    border-color: rgba(212,175,55,.5);
    box-shadow: 0 2px 10px rgba(212,175,55,.15);
}

/* =============== Footer =============== */
.site-footer {
    text-align: center;
    padding: 24px 16px 40px;
    max-width: 640px;
    margin: 0 auto;
    border-top: 1px solid rgba(255,255,255,.04);
}
.footer-text {
    font-size: 12px;
    color: rgba(255,255,255,.2);
}

/* =============== 语言选择器 =============== */
.lang-switcher {
    position: fixed;
    top: 14px; right: 14px;
    display: flex; align-items: center; gap: 6px;
    padding: 7px 14px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 8px;
    color: rgba(255,255,255,.7);
    font-size: 12px;
    cursor: pointer;
    z-index: 1000;
    transition: all .25s;
    backdrop-filter: blur(8px);
}
.lang-switcher:hover {
    background: rgba(255,255,255,.12);
    color: #fff;
    border-color: rgba(212,175,55,.3);
}
.lang-switcher .fa-globe { color: #d4af37; font-size: 13px; }
.lang-switcher .fa-caret-down { font-size: 10px; opacity: .5; }

.lang-dropdown {
    position: fixed;
    top: 48px; right: 14px;
    background: #1c1c3a;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,.5);
    z-index: 1001;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all .25s;
    min-width: 160px;
}
.lang-dropdown.open {
    max-height: 500px;
    opacity: 1;
    padding: 6px 0;
}
.lang-option {
    padding: 9px 18px;
    font-size: 13px;
    color: rgba(255,255,255,.7);
    cursor: pointer;
    transition: all .2s;
}
.lang-option:hover {
    background: rgba(212,175,55,.1);
    color: #d4af37;
}

/* =============== 后台入口 =============== */
.admin-entry {
    position: fixed;
    left: 6px; bottom: 6px;
    width: 26px; height: 26px;
    background: rgba(255,255,255,.03);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,.06);
    font-size: 11px;
    transition: all .3s;
    z-index: 999;
}
.admin-entry:hover {
    background: rgba(212,175,55,.6);
    color: #fff;
}

/* =============== 域名导航 =============== */
.domain-section {
    max-width: 640px;
    margin: 0 auto;
    padding: 20px 16px 10px;
}
.domain-title {
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    color: rgba(255,255,255,.5);
    margin-bottom: 14px;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.domain-title::before,
.domain-title::after {
    content: '';
    height: 1px;
    width: 40px;
    background: linear-gradient(90deg, transparent, rgba(212,175,55,.25), transparent);
}
.domain-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.domain-card {
    background: linear-gradient(160deg, #16162e 0%, #1c1c3a 50%, #141430 100%);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 10px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all .3s;
    box-shadow: 0 2px 8px rgba(0,0,0,.25);
    position: relative;
    overflow: hidden;
}
.domain-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212,175,55,.12), transparent);
}
.domain-card:hover {
    border-color: rgba(212,175,55,.2);
    box-shadow: 0 4px 16px rgba(0,0,0,.35);
    transform: translateY(-2px);
}
.domain-label {
    font-size: 12px;
    color: rgba(255,255,255,.35);
    letter-spacing: 1px;
    flex-shrink: 0;
}
.domain-url {
    font-size: 15px;
    font-weight: 700;
    color: #d4af37;
    letter-spacing: .5px;
    flex: 1;
    text-align: center;
    transition: color .3s;
}
.domain-card:hover .domain-url {
    color: #f0d060;
    text-shadow: 0 0 8px rgba(212,175,55,.3);
}
.domain-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    align-items: center;
}
.domain-copy {
    display: inline-block;
    padding: 5px 14px;
    font-size: 11px;
    color: rgba(212,175,55,.7);
    background: rgba(212,175,55,.08);
    border: 1px solid rgba(212,175,55,.15);
    border-radius: 5px;
    cursor: pointer;
    transition: all .25s;
}
.domain-copy:hover {
    background: rgba(212,175,55,.18);
    color: #d4af37;
}
.domain-copy.copied {
    color: #10b981;
    border-color: rgba(16,185,129,.3);
    background: rgba(16,185,129,.08);
}
.domain-go {
    display: inline-block;
    padding: 5px 14px;
    font-size: 11px;
    font-weight: 600;
    color: #d4af37;
    background: linear-gradient(135deg, rgba(212,175,55,.15), rgba(212,175,55,.05));
    border: 1px solid rgba(212,175,55,.3);
    border-radius: 5px;
    cursor: pointer;
    transition: all .25s;
    white-space: nowrap;
}
.domain-go:hover {
    background: linear-gradient(135deg, rgba(212,175,55,.25), rgba(212,175,55,.1));
    border-color: rgba(212,175,55,.5);
    box-shadow: 0 2px 10px rgba(212,175,55,.15);
}

/* =============== 响应式 =============== */
@media (min-width: 641px) {
    body { display: flex; flex-direction: column; align-items: center; }
    .site-header, .banner-wrap, .marquee-bar, .slogan-section, .platform-list, .domain-section, .site-footer {
        width: 100%;
    }
}

/* 小屏幕优化 */
@media (max-width: 480px) {
    .banner-wrap { padding: 8px 10px 0; }
    .banner-slider { aspect-ratio: 16 / 9; border-radius: 10px; }
    .banner-slide img { border-radius: 10px; }
    .site-title { font-size: 18px; }
    .header-inner { gap: 10px; }
    .site-logo { width: 44px; height: 44px; }
    .plat-card { padding: 14px 12px; }
    .plat-logo { width: 60px; height: 60px; }
    .domain-card { padding: 12px 14px; flex-wrap: wrap; gap: 8px; }
    .domain-url { font-size: 14px; }
}
