* { margin: 0; padding: 0; box-sizing: border-box; user-select: none; }
body {
    font-family: 'Noto Serif SC', '宋体', serif;
    background: #FDF8E6 url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 100" opacity="0.06"><path fill="none" stroke="%238B6B4A" stroke-width="0.4" d="M20 30 Q 60 10, 100 25 T 180 20 M10 70 Q 50 50, 90 65 T 170 60"/></svg>');
    background-repeat: repeat;
    color: #3A3226;
    line-height: 1.5;
    overflow-x: hidden;
    min-height: 100vh;
}
.container { max-width: 1400px; margin: 0 auto; padding: 0 28px; position: relative; z-index: 5; }

.site-header, .site-footer {
    background: #1A1612;
    backdrop-filter: blur(8px);
    position: relative;
    z-index: 100;
}
.site-header {
    border-bottom: 1px solid rgba(217, 180, 139, 0.3);
}
.site-footer {
    border-top: 1px solid rgba(217, 180, 139, 0.3);
    padding: 30px 0;
    margin-top: 60px;
}
.site-header::before, .site-footer::before {
    content: '';
    position: absolute;
    left: 0; right: 0;
    height: 3px;
    background: linear-gradient(to right, transparent, #8B1E2D, transparent);
}
.site-header::before { top: 0; }
.site-footer::before { top: -3px; }
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    max-width: 1400px;
    margin: 0 auto;
}
.logo a {
    font-size: 26px;
    font-weight: 700;
    color: #F0E2C5;
    letter-spacing: 2px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    text-decoration: none;
}
.main-nav { position: absolute; left: 50%; transform: translateX(-50%); }
.nav-list { display: flex; list-style: none; gap: 42px; }
.nav-link {
    font-size: 18px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #E8DDD0;
    padding: 6px 0;
    position: relative;
    text-decoration: none;
}
.nav-link i { font-size: 16px; color: #D9B48B; transition: color 0.2s; }
.nav-link:hover i { color: #F0E2C5; }
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 2px;
    background: #C77A5A;
    transition: width 0.25s;
}
.nav-link:hover::after { width: 100%; }
.nav-link:hover { color: #F0E2C5; }
.menu-toggle { display: none; flex-direction: column; cursor: pointer; z-index: 10; }
.menu-toggle span { width: 26px; height: 2px; background: #ECE3D8; margin: 5px 0; transition: 0.3s; }

.sky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}
.lantern {
    position: absolute;
    width: 18px;
    height: 25px;
    background: rgba(255, 190, 80, 0.45);
    border-radius: 9px;
    box-shadow: 0 0 14px rgba(255, 180, 60, 0.65);
    animation: float 22s infinite linear;
    opacity: 0.85;
}
.lantern.yours {
    background: rgba(255, 225, 80, 0.85);
    box-shadow: 0 0 22px rgba(255, 210, 80, 1);
    transform: scale(1.18);
}
.lantern::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 7px;
    background: rgba(255, 180, 60, 0.6);
}
@keyframes float {
    0% { transform: translateY(100vh) translateX(0); opacity: 0; }
    10% { opacity: 0.85; }
    90% { opacity: 0.7; }
    100% { transform: translateY(-120px) translateX(calc(-25px + var(--rx))); opacity: 0; }
}

.ripple {
    position: absolute;
    width: 60px;
    height: 60px;
    border: 2px solid rgba(139, 30, 45, 0.3);
    border-radius: 50%;
    animation: rp 1.2s ease-out forwards;
    pointer-events: none;
    z-index: 99;
}
@keyframes rp {
    to { transform: scale(2.6); opacity: 0; }
}

.stele-float {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 110px;
    color: rgba(139,30,45,0.5);
    font-size: 14px;
    white-space: nowrap;
    animation: stele 3.5s forwards;
    z-index: 2;
    pointer-events: none;
    font-style: italic;
    opacity: 0;
}
@keyframes stele {
    0% { opacity:0; bottom:90px; }
    20% { opacity:1; bottom:110px; }
    80% { opacity:1; bottom:130px; }
    100% { opacity:0; bottom:150px; }
}

.matrix {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 140px;
    display: grid;
    grid-template-columns: repeat(40, 1fr);
    gap: 2px;
    opacity: 0.12;
    z-index: 1;
    pointer-events: none;
}
.dot {
    width: 4px;
    height: 4px;
    background: #ccc;
    border-radius: 50%;
    transition: 0.8s;
}
.dot.on {
    background: #f5b342;
    box-shadow: 0 0 8px #f5b342;
    opacity: 0.9;
}

.counter {
    position: fixed;
    right: 30px;
    bottom: 30px;
    font-size: 14px;
    font-weight: 500;
    color: #8B1E2D;
    background: rgba(255, 250, 240, 0.75);
    backdrop-filter: blur(8px);
    padding: 8px 18px;
    border-radius: 40px;
    border: 1px solid rgba(139, 30, 45, 0.12);
    z-index: 10;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.04);
}

.hero {
    padding: 60px 20px 30px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}
.hero h1 {
    font-size: 3.2rem;
    color: #8B1E2D;
    margin-bottom: 10px;
    letter-spacing: 8px;
    font-weight: 700;
}
.hero p {
    font-size: 16px;
    color: #5A4A3A;
    line-height: 1.8;
}
.hero-tip {
    margin-top: 8px;
    font-size: 14px;
    color: rgba(139,30,45,0.45);
}

.container-frame {
    display: flex;
    max-width: 1400px;
    margin: 0 auto 40px;
    background: rgba(255, 253, 248, 0.5);
    border: 1px solid rgba(139,30,45,0.12);
    border-radius: 32px;
    overflow: hidden;
    position: relative;
    z-index: 2;
}
.left {
    flex: 0 0 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    border-right: 1px solid rgba(139,30,45,0.12);
}
.plate {
    position: relative;
    width: 380px;
    height: 380px;
}
.ring {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(139, 30, 45, 0.16);
    border-radius: 50%;
}
.r1 { width: 380px; height: 380px; }
.r2 { width: 285px; height: 285px; border-style: dashed; }
.r3 { width: 190px; height: 190px; }
.center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 95px;
    height: 95px;
    background: #8B1E2D;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FDF8E6;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 3px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05), 0 6px 12px rgba(139,30,45,0.12);
    border: 2px solid #D9B48B;
}
.icon {
    position: absolute;
    width: 95px;
    text-align: center;
    cursor: pointer;
    transition: 0.3s;
    opacity: 0.55;
}
.icon.active {
    opacity: 1;
    transform: scale(1.12);
}
.icon i {
    font-size: 26px;
    color: #8B1E2D;
    margin-bottom: 6px;
}
.icon h3 {
    font-size: 15px;
    color: #8B1E2D;
    font-weight: 600;
}
.icon1 { top: 5px; left: 50%; transform: translateX(-50%); }
.icon2 { top: 50%; right: -5px; transform: translateY(-50%); }
.icon3 { bottom: 5px; left: 50%; transform: translateX(-50%); }
.icon4 { top: 50%; left: -5px; transform: translateY(-50%); }

.text-box {
    margin-top: 30px;
    padding-top: 20px;
    width: 340px;
    text-align: center;
    border-top: 1px dashed rgba(139,30,45,0.15);
}
.text { display: none; }
.text.active { display: block; animation: fade 0.5s forwards; }
.text h2 {
    font-size: 22px;
    color: #8B1E2D;
    margin-bottom: 8px;
}
.text p {
    font-size: 15px;
    color: #5A4A3A;
    line-height: 1.6;
}

.right {
    flex: 1;
    padding: 40px;
}
.right h2 {
    font-size: 28px;
    color: #8B1E2D;
    margin-bottom: 8px;
    font-weight: 700;
}
.right .tip {
    font-size: 14px;
    color: #7A6A5A;
    margin-bottom: 20px;
}
.tab-btns {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.tab-btn {
    padding: 8px 20px;
    border: 1.5px solid #8B1E2D;
    background: transparent;
    color: #8B1E2D;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s;
}
.tab-btn:hover {
    background: rgba(139, 30, 45, 0.04);
}
.tab-btn.active {
    background: #8B1E2D;
    color: #FDF8E6;
}
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fade 0.5s forwards; }
.tab-card {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(4px);
    padding: 24px 26px;
    border-radius: 20px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.05);
    border: none;
}
.tab-card h3 {
    color: #8B1E2D;
    font-size: 20px;
    margin-bottom: 10px;
}
.tab-card p, .tab-card li {
    line-height: 1.7;
    font-size: 15px;
    color: #4A3A2A;
}
.tab-card ul {
    padding-left: 24px;
    margin: 10px 0;
    list-style: none;
}
.tab-card li {
    margin-bottom: 6px;
    position: relative;
}
.tab-card li::before {
    content: "·";
    color: #8B1E2D;
    font-weight: bold;
    font-size: 18px;
    position: absolute;
    left: -18px;
    top: -2px;
}
.tags {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}
.tags span {
    font-size: 12px;
    padding: 4px 12px;
    background: rgba(139,30,45,0.06);
    color: #8B1E2D;
    border-radius: 30px;
}
.quote {
    background: transparent;
    padding: 18px 0 0 22px;
    margin: 24px 0 0;
    border-left: 3px solid #8B1E2D;
    font-style: italic;
    color: #5A4A3A;
    font-size: 15px;
}

.idea {
    max-width: 720px;
    margin: 0 auto 40px;
    padding: 24px 20px 0;
    text-align: center;
    position: relative;
    z-index: 2;
    border-top: 1px solid rgba(139,30,45,0.1);
}
.idea p {
    font-size: 15px;
    color: #5A4A3A;
    line-height: 1.8;
}

.bottom-btn {
    text-align: center;
    margin: 0 auto 40px;
}
.next-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,253,248,0.85);
    border: 1.5px solid rgba(139,30,45,0.2);
    color: #8B1E2D;
    font-size: 18px;
    cursor: pointer;
    transition: all .3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.next-btn:hover {
    background: #8B1E2D;
    color: #fff;
    transform: scale(1.1);
}

@keyframes fade {
    from { opacity:0; transform:translateY(10px); }
    to { opacity:1; transform:translateY(0); }
}

.footer-copyright {
    text-align: center;
    font-size: 13px;
    color: #8A7E6E;
    line-height: 1.5;
}

@media (max-width: 1024px) {
    .container-frame { flex-direction: column; margin: 0 20px 30px; }
    .left { border-right: none; border-bottom: 1px solid rgba(139,30,45,0.12); padding-bottom: 30px; }
    .main-nav { position: static; transform: none; }
    .nav-list {
        position: fixed; top: 70px; left: -100%;
        width: 75%; height: calc(100vh - 70px);
        background: #2A241E;
        flex-direction: column;
        align-items: center;
        padding-top: 50px;
        transition: left 0.3s;
        gap: 28px;
        box-shadow: 4px 0 20px rgba(0,0,0,0.5);
        z-index: 99;
        border-left: 3px solid #8B1E2D;
    }
    .nav-list.show { left: 0; }
    .menu-toggle { display: flex; }
    .header-container { justify-content: space-between; }
}
@media (max-width: 768px) {
    .plate { width: 320px; height: 320px; }
    .r1 { width: 320px; height: 320px; }
    .r2 { width: 240px; height: 240px; }
    .hero { padding: 40px 20px 20px; }
    .hero h1 { font-size: 32px; letter-spacing: 6px; }
    .counter { right: 20px; bottom: 20px; padding: 6px 14px; font-size: 12px; }
    .next-btn { width: 40px; height: 40px; font-size: 16px; }
}