* { 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;
    position: relative;
}
.cursor-glow {
    position: fixed; width: 400px; height: 400px; border-radius: 50%;
    background: radial-gradient(circle, rgba(194,160,96,0.03) 0%, transparent 70%);
    pointer-events: none; z-index: 50; transform: translate(-50%, -50%);
    transition: opacity 0.2s; opacity: 0;
}
.container { max-width: 1200px; 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; }

.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; }

.summary-section { margin: 30px 0; }
.summary-card {
    background: rgba(255, 253, 248, 0.7); backdrop-filter: blur(4px);
    border-radius: 32px; border: 1px solid rgba(139,30,45,0.12);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04); overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s;
}
.summary-card:hover { transform: translateY(-4px); box-shadow: 0 20px 30px -8px rgba(139,30,45,0.12); }
.summary-header {
    padding: 20px 28px 0; font-size: 1.3rem; font-weight: 600;
    display: flex; align-items: center; gap: 8px; color: #8B1E2D; margin-bottom: 16px;
}
.summary-header i { color: #8B1E2D; }
.summary-content {
    display: flex; flex-wrap: wrap; justify-content: space-around; text-align: center;
    padding: 0 28px 28px; gap: 16px;
}
.summary-item { flex: 1; min-width: 120px; }
.summary-number { font-size: 2.2rem; font-weight: 700; color: #8B1E2D; line-height: 1.2; }
.summary-label { font-size: 0.8rem; color: #6B5A4A; letter-spacing: 2px; text-transform: uppercase; }

.row-split { display: flex; flex-wrap: wrap; gap: 30px; margin: 30px 0; }
.col-wide { flex: 2; min-width: 300px; }
.col-narrow { flex: 1.2; min-width: 260px; }

.card {
    background: rgba(255, 253, 248, 0.7); backdrop-filter: blur(4px);
    border-radius: 32px; padding: 28px 24px; border: 1px solid rgba(139,30,45,0.12);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05); height: 100%;
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 20px 30px -8px rgba(139,30,45,0.1); }
.card-title {
    font-weight: 600; margin-bottom: 16px; display: flex; align-items: center;
    gap: 8px; color: #8B1E2D; font-size: 1.3rem;
}

.portrait-card { text-align: center; }
.silhouette-container {
    position: relative; width: 300px; height: 320px; margin: 10px auto 20px;
}
.wuxia-silhouette {
    width: 100%; height: 100%; position: relative; display: flex; align-items: center; justify-content: center;
}
.wuxia-silhouette i {
    font-size: 160px; color: #2C1E12; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.12));
}
.tag-cloud {
    position: absolute; top: -15px; left: -15px;
    width: calc(100% + 30px); height: calc(100% + 30px); pointer-events: none;
}
.portrait-tag {
    position: absolute; background: rgba(255, 250, 240, 0.95); backdrop-filter: blur(4px);
    border: 1px solid #C2A060; border-radius: 40px; padding: 6px 16px;
    font-size: 0.85rem; color: #3A2C1F; box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    white-space: nowrap; pointer-events: auto; transition: all 0.2s ease;
    animation: floatTag 4s infinite alternate ease-in-out;
}
.portrait-tag:hover { transform: scale(1.05); background: #F0E2C5; animation-play-state: paused; }
@keyframes floatTag {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-6px); }
}
.portrait-tag:nth-child(1) { animation-delay: 0s; }
.portrait-tag:nth-child(2) { animation-delay: 0.5s; }
.portrait-tag:nth-child(3) { animation-delay: 1s; }
.portrait-tag:nth-child(4) { animation-delay: 0.3s; }
.portrait-tag:nth-child(5) { animation-delay: 0.8s; }
.portrait-tag:nth-child(6) { animation-delay: 1.2s; }
.portrait-tag:nth-child(7) { animation-delay: 0.2s; }
.portrait-tag:nth-child(8) { animation-delay: 0.9s; }

.quote-card { display: flex; flex-direction: column; position: relative; padding: 36px 32px; }
.quote-card::before {
    content: "“"; font-size: 5rem; color: #C2A060; opacity: 0.15;
    position: absolute; top: 10px; left: 20px; font-family: serif;
}
.quote-text {
    font-size: 1.15rem; line-height: 1.9; color: #3A2C1F;
    font-family: 'Noto Serif SC', serif; margin-bottom: 20px; flex: 1; padding-left: 12px;
    transition: opacity 0.2s;
}
.quote-author {
    text-align: right; color: #8B1E2D; font-weight: 500; margin-bottom: 20px;
    border-bottom: 1px dashed #d4c5a0; padding-bottom: 12px;
}
.quote-nav { display: flex; justify-content: center; gap: 24px; margin-top: 8px; }
.quote-dot {
    width: 8px; height: 8px; border-radius: 50%; background: #d4c5a0;
    cursor: pointer; transition: all 0.2s ease;
}
.quote-dot.active { background: #8B1E2D; width: 24px; border-radius: 10px; }

.ecg-container {
    position: relative; height: 140px; margin: 20px 0;
    background: rgba(139, 30, 45, 0.02); border-radius: 16px;
    border: 1px solid rgba(139,30,45,0.12);
}
#ecgCanvas { width: 100%; height: 100%; display: block; }
.wordcloud { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: center; margin-top: 20px; }
.word-item {
    color: #3A2C1F; opacity: 0.8; transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: default; display: inline-block;
}
.word-item:hover { opacity: 1; color: #8B1E2D; transform: scale(1.2); }
.word-1 { font-size: 2.2rem; font-weight: 500; }
.word-2 { font-size: 1.7rem; }
.word-3 { font-size: 1.3rem; }
.word-4 { font-size: 1rem; }

.tabs-container { margin: 40px 0; }
.tab-buttons { display: flex; gap: 4px; border-bottom: 2px solid rgba(139,30,45,0.2); }
.tab-btn {
    background: none; border: none; padding: 12px 24px; cursor: pointer;
    font-family: inherit; font-size: 1rem; color: #6B5A4A;
    border-radius: 12px 12px 0 0; transition: all 0.2s ease;
}
.tab-btn.active { background: rgba(255, 253, 248, 0.8); color: #8B1E2D; font-weight: 500; }
.tab-panel {
    background: rgba(255, 253, 248, 0.6); backdrop-filter: blur(4px);
    border-radius: 0 0 24px 24px; padding: 28px;
    border: 1px solid rgba(139,30,45,0.12); border-top: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}
.survey-question { margin-bottom: 28px; }
.survey-options { display: flex; gap: 24px; flex-wrap: wrap; margin: 12px 0; }
.survey-options label { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.survey-submit {
    background: #6B3A2A; color: #F0E2C5; border: none; padding: 10px 28px;
    border-radius: 40px; cursor: pointer; font-family: inherit; margin-top: 10px;
    transition: all 0.2s ease; text-decoration: none; display: inline-block;
}
.survey-submit:hover { background: #8B1E2D; transform: translateY(-2px); box-shadow: 0 8px 16px rgba(139,30,45,0.2); }
.survey-note { margin-top: 16px; font-size: 0.9rem; color: #5A4A3A; }

.bottom-btn {
    text-align: center;
    margin: 60px 0 70px;
}
.light-guide {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 8px 16px 8px 28px;
    background: rgba(194, 160, 96, 0.04);
    border-radius: 60px;
    border: 1px solid rgba(194, 160, 96, 0.15);
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1);
    backdrop-filter: blur(4px);
}
.light-guide span {
    font-size: 1.1rem;
    font-weight: 300;
    color: #8A7E6E;
    letter-spacing: 10px;
    transition: all 0.3s;
}
.light-guide .arrow-dot {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(194, 160, 96, 0.08);
    border: 1px solid rgba(194, 160, 96, 0.25);
    color: #C2A060;
    font-size: 15px;
    transition: all 0.3s ease;
}
.light-guide:hover {
    background: rgba(139, 30, 45, 0.04);
    border-color: rgba(139, 30, 45, 0.25);
    gap: 30px;
}
.light-guide:hover span {
    color: #5A4A3A;
}
.light-guide:hover .arrow-dot {
    background: rgba(139, 30, 45, 0.1);
    border-color: #8B1E2D;
    color: #8B1E2D;
    transform: scale(1.08);
    box-shadow: 0 0 15px rgba(139, 30, 45, 0.12);
}

.footer-copyright { text-align: center; font-size: 13px; color: #8A7E6E; line-height: 1.5; }

@media (max-width: 1024px) {
    .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: 900px) {
    .col-wide, .col-narrow { flex: 1 1 100%; }
}
@media (max-width: 700px) {
    .silhouette-container { width: 260px; height: 280px; }
    .quote-text { font-size: 1rem; }
    .light-guide {
        padding: 6px 12px 6px 20px;
        gap: 16px;
    }
    .light-guide span {
        font-size: 1rem;
        letter-spacing: 6px;
    }
    .light-guide .arrow-dot {
        width: 34px;
        height: 34px;
        font-size: 13px;
    }
}