:root {
    --bg-dark: #11091c;
    --bg-header-footer: #150b23;
    --gold: #c9a84c;
    --gold-light: #e2c068;
    --gold-bright: #f0d478;
    --gold-dark: #a6842c;
    --gold-pale: rgba(201, 168, 76, 0.6);
    --gold-border: rgba(201, 168, 76, 0.25);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

/* 允许文字选中保持金色风格 */
::selection {
    background: rgba(201, 168, 76, 0.35);
    color: #f0d478;
}
::-moz-selection {
    background: rgba(201, 168, 76, 0.35);
    color: #f0d478;
}

/* 禁止链接点击时的蓝色色块 */
a, a:focus, a:active, a:visited,
.btn-enter, .btn-enter:focus, .btn-enter:active,
.hamburger-btn {
    outline: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

body {
    background-color: var(--bg-dark);
    font-family: 'STSong', 'Songti SC', 'Noto Serif SC', 'SimSun', 'KaiTi', '楷体', 'Georgia', 'Times New Roman', serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* ============ 浮动粒子容器 ============ */
#particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    will-change: transform, opacity;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

/* 5种浮动动画（完整） */
@keyframes floatParticle1 {
    0%, 100% { transform: translateY(0px) translateX(0px) scale(1); opacity: 0.35; }
    15% { transform: translateY(-18px) translateX(8px) scale(1.3); opacity: 0.55; }
    30% { transform: translateY(-30px) translateX(16px) scale(1.1); opacity: 0.4; }
    50% { transform: translateY(-10px) translateX(4px) scale(0.85); opacity: 0.25; }
    65% { transform: translateY(8px) translateX(-10px) scale(1.2); opacity: 0.5; }
    80% { transform: translateY(20px) translateX(-18px) scale(0.9); opacity: 0.3; }
    100% { transform: translateY(0px) translateX(0px) scale(1); opacity: 0.35; }
}
@keyframes floatParticle2 {
    0%, 100% { transform: translateY(0px) translateX(0px) scale(1); opacity: 0.28; }
    20% { transform: translateY(25px) translateX(-12px) scale(1.4); opacity: 0.5; }
    40% { transform: translateY(12px) translateX(-22px) scale(0.8); opacity: 0.22; }
    60% { transform: translateY(-20px) translateX(-8px) scale(1.25); opacity: 0.48; }
    80% { transform: translateY(-32px) translateX(14px) scale(0.95); opacity: 0.32; }
    100% { transform: translateY(0px) translateX(0px) scale(1); opacity: 0.28; }
}
@keyframes floatParticle3 {
    0%, 100% { transform: translateY(0px) translateX(0px) scale(1); opacity: 0.32; }
    18% { transform: translateY(-22px) translateX(-15px) scale(1.15); opacity: 0.52; }
    36% { transform: translateY(-8px) translateX(-28px) scale(1.35); opacity: 0.38; }
    54% { transform: translateY(18px) translateX(-10px) scale(0.75); opacity: 0.2; }
    72% { transform: translateY(28px) translateX(12px) scale(1.2); opacity: 0.5; }
    90% { transform: translateY(6px) translateX(20px) scale(0.9); opacity: 0.3; }
    100% { transform: translateY(0px) translateX(0px) scale(1); opacity: 0.32; }
}
@keyframes floatParticle4 {
    0%, 100% { transform: translateY(0px) translateX(0px) scale(1); opacity: 0.25; }
    25% { transform: translateY(15px) translateX(20px) scale(1.5); opacity: 0.55; }
    50% { transform: translateY(-15px) translateX(10px) scale(0.7); opacity: 0.18; }
    75% { transform: translateY(-25px) translateX(-15px) scale(1.3); opacity: 0.45; }
    100% { transform: translateY(0px) translateX(0px) scale(1); opacity: 0.25; }
}
@keyframes floatParticle5 {
    0%, 100% { transform: translateY(0px) translateX(0px) scale(1); opacity: 0.3; }
    22% { transform: translateY(-28px) translateX(-6px) scale(1.2); opacity: 0.5; }
    44% { transform: translateY(-14px) translateX(18px) scale(1.4); opacity: 0.35; }
    66% { transform: translateY(22px) translateX(8px) scale(0.8); opacity: 0.22; }
    88% { transform: translateY(10px) translateX(-20px) scale(1.1); opacity: 0.48; }
    100% { transform: translateY(0px) translateX(0px) scale(1); opacity: 0.3; }
}

/* ============ 页头 ============ */
.site-header {
    position: relative;
    z-index: 60;
    width: 100%;
    background: linear-gradient(180deg, #1a0f2a 0%, #150b23 70%, rgba(21, 11, 35, 0.85) 100%);
    border-bottom: 1px solid var(--gold-border);
    padding: 14px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 30px rgba(0,0,0,0.5), 0 0 40px rgba(201,168,76,0.06);
}
.site-header .logo-area img {
    max-width: 210px;
    height: auto;
    display: block;
    filter: drop-shadow(0 0 22px rgba(201,168,76,0.4));
    transition: filter 0.6s ease, transform 0.5s ease;
}
.site-header .logo-area img:hover {
    filter: drop-shadow(0 0 38px rgba(201,168,76,0.7));
    transform: scale(1.05);
}

/* ============ 汉堡按钮 ============ */
.hamburger-btn {
    width: 44px;
    height: 44px;
    background: transparent;
    border: 1.5px solid var(--gold-pale);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px;
    transition: all 0.35s ease;
    z-index: 220;
}
.hamburger-btn:hover {
    border-color: var(--gold-bright);
    box-shadow: 0 0 22px rgba(201,168,76,0.35);
    background: rgba(201,168,76,0.08);
}
.hamburger-btn .bar {
    width: 22px;
    height: 2px;
    background: var(--gold);
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.25,0.8,0.25,1.2);
}
.hamburger-btn.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.hamburger-btn.active .bar:nth-child(2) {
    opacity: 0;
}
.hamburger-btn.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ============ 透明遮罩（无背景） ============ */
.menu-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: transparent;          /* 完全透明，不可见 */
    z-index: 180;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.menu-overlay.show {
    opacity: 1;
    pointer-events: auto;            /* 显示时可点击关闭菜单 */
}

/* ============ 弹出菜单卡片 ============ */
.menu-popup {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 210;
    background: linear-gradient(145deg, #1e1030, #150b23);
    border: 1px solid var(--gold-border);
    border-radius: 18px;
    padding: 20px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 170px;
    max-width: 220px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.6), 0 0 30px rgba(201,168,76,0.1);
    transform: translateY(-10px) scale(0.95);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.2,0.9,0.3,1);
}
.menu-popup.open {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
}
.menu-popup a {
    color: var(--gold);
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 0.06em;
    padding: 10px 14px;
    border-radius: 25px;
    transition: all 0.25s ease;
    white-space: nowrap;
    display: block;
}
.menu-popup a:hover {
    background: rgba(201,168,76,0.12);
    color: var(--gold-bright);
    text-shadow: 0 0 10px rgba(201,168,76,0.5);
    transform: translateY(-2px);      /* 轻微跃动 */
}

/* ============ 主内容 ============ */
.page-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 900px;
    padding: 40px 20px 30px;
    flex: 1;
    justify-content: center;
    gap: 28px;
    background-color: transparent;
}
.main-image-area {
    text-align: center;
    width: 100%;
}
.rounded-main-image {
    max-width: 85%;                /* 恢复原比例 */
    width: auto;
    max-height: 65vh;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 16px;           /* 圆角保留 */
    box-shadow: 0 0 45px rgba(201,168,76,0.2), 0 0 90px rgba(201,168,76,0.08), 0 10px 36px rgba(0,0,0,0.55);
    transition: box-shadow 0.6s ease, transform 0.5s ease;
}
.rounded-main-image:hover {
    box-shadow: 0 0 60px rgba(201,168,76,0.35), 0 0 110px rgba(201,168,76,0.14), 0 14px 44px rgba(0,0,0,0.65);
    transform: scale(1.018);
}

/* ============ 按钮 ============ */
.btn-enter {
    display: inline-block;
    background: linear-gradient(145deg, #d4a843, #b8922f);
    color: #11091c;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 15px 48px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    font-family: inherit;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(201,168,76,0.35), 0 0 40px rgba(201,168,76,0.12), inset 0 1px 0 rgba(255,255,255,0.2);
    transition: all 0.4s cubic-bezier(0.25,0.8,0.25,1.2);
    z-index: 1;
}
.btn-enter::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transition: left 0.6s ease;
    z-index: 2;
    pointer-events: none;
}
.btn-enter:hover {
    background: linear-gradient(145deg, #e8be56, #c9a43a);
    box-shadow: 0 6px 28px rgba(201,168,76,0.55), 0 0 65px rgba(201,168,76,0.22), 0 0 100px rgba(240,212,120,0.15), inset 0 1px 0 rgba(255,255,255,0.3);
    transform: translateY(-3px) scale(1.03);
    color: #0a0412;
}
.btn-enter:hover::before { left: 100%; }
.btn-enter:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 2px 10px rgba(201,168,76,0.4), 0 0 30px rgba(201,168,76,0.15);
    transition: all 0.15s ease;
    background: linear-gradient(145deg, #c49a38, #a67e28);
}

/* ============ 页脚 ============ */
.site-footer {
    position: relative;
    z-index: 60;
    width: 100%;
    background: linear-gradient(0deg, #1a0f2a 0%, #150b23 60%, rgba(21,11,35,0.85) 100%);
    border-top: 1px solid var(--gold-border);
    padding: 22px 20px 26px;
    text-align: center;
    box-shadow: 0 -2px 30px rgba(0,0,0,0.5), 0 0 40px rgba(201,168,76,0.05);
}
.footer-maintain {
    color: var(--gold-pale);
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    opacity: 0.75;
    margin-bottom: 10px;
}
.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px 20px;
    margin-bottom: 14px;
}
.footer-links a {
    color: var(--gold);
    font-size: 0.75rem;
    text-decoration: none;
    letter-spacing: 0.04em;
    padding: 4px 2px;
    position: relative;
    transition: color 0.35s, text-shadow 0.35s;
}
/* 下划线动画 */
.footer-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 1px;
    background: var(--gold-light);
    border-radius: 2px;
    transition: width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.footer-links a:hover {
    color: var(--gold-bright);
    text-shadow: 0 0 14px rgba(201,168,76,0.5), 0 0 28px rgba(201,168,76,0.25);
}
.footer-links a:hover::after {
    width: 100%;
}
.link-divider {
    color: var(--gold-pale);
    font-size: 0.7rem;
    user-select: none;
    opacity: 0.4;
}

/* 页脚帝国logo */
.footer-logo {
    margin-top: 6px;
    display: flex;
    justify-content: center;
}
.footer-logo img {
    max-width: 100px;
    height: auto;
    opacity: 0.75;
    filter: drop-shadow(0 0 10px rgba(201,168,76,0.3));
    transition: opacity 0.3s;
}
.footer-logo img:hover {
    opacity: 1;
}

/* ============ 响应式 ============ */
@media (max-width: 768px) {
    .site-header { padding: 10px 16px; }
    .site-header .logo-area img { max-width: 150px; }
    .hamburger-btn { width: 38px; height: 38px; }
    .hamburger-btn .bar { width: 19px; }
    .hamburger-btn.active .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .hamburger-btn.active .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .menu-popup { top: 70px; right: 10px; min-width: 150px; padding: 16px; }
    .page-content { padding: 28px 14px 22px; gap: 20px; }
    .rounded-main-image { max-width: 90%; max-height: 45vh; }
    .btn-enter { font-size: 1rem; padding: 13px 36px; }
    .site-footer { padding: 16px 14px 20px; }
}
@media (max-width: 400px) {
    .site-header { padding: 8px 10px; }
    .site-header .logo-area img { max-width: 110px; }
    .hamburger-btn { width: 34px; height: 34px; }
    .menu-popup { top: 60px; right: 6px; min-width: 140px; font-size: 0.8rem; }
    .rounded-main-image { max-width: 95%; max-height: 36vh; }
    .btn-enter { font-size: 0.9rem; padding: 11px 28px; }
}