* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #fef9f2;
    color: #2c2418;
    line-height: 1.5;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ========== 导航栏 ========== */
nav {
    position: sticky;
    top: 0;
    background: rgba(254, 249, 242, 0.95);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    padding: 1rem 0;
    border-bottom: 1px solid #f0e2d4;
    z-index: 100;
}

.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    font-size: 1.6rem;
    font-weight: 700;
    background: linear-gradient(135deg, #9b6a42, #c27e4a);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.nav-links a {
    text-decoration: none;
    color: #5a3f2a;
    font-weight: 500;
    transition: color 0.2s;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.nav-links a:hover {
    color: #c2774a;
}

.lang-switch {
    border: 1px solid #dbb48c;
    border-radius: 24px;
    padding: 0.2rem 0.8rem;
}

/* ========== 按钮 ========== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    border-radius: 40px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-primary {
    background: #c27e4a;
    color: white;
}

.btn-primary:hover {
    background: #a56436;
    transform: translateY(-2px);
}

.btn-outline {
    border: 1.5px solid #dbb48c;
    color: #a56838;
}

.btn-outline:hover {
    background: #f5ede5;
}

.btn-group {
    margin-top: 1.8rem;
}

/* ========== 通用区块 ========== */
section {
    padding: 4rem 0;
}

.alt-bg {
    background: #faf3ea;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    letter-spacing: -0.3px;
    border-left: 4px solid #c27e4a;
    padding-left: 1rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

/* ========== 卡片 ========== */
.card {
    background: white;
    border-radius: 1.5rem;
    padding: 1.8rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid #f0e2d6;
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-4px);
}

.card i {
    font-size: 2rem;
    color: #c27e4a;
    margin-bottom: 1rem;
}

.card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

.card p {
    color: #5e4b38;
    line-height: 1.6;
}

/* ========== Hero 区域 ========== */
.hero {
    background: linear-gradient(135deg, #fff5ea 0%, #fcecdd 100%);
    padding: 3rem 0 4rem;
}

.hero-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 3rem;
    justify-content: space-between;
}

.hero-text {
    flex: 1;
}

.badge {
    background: #e7cfbb;
    display: inline-block;
    padding: 0.2rem 1rem;
    border-radius: 40px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #9b5e32;
    margin-bottom: 1rem;
}

.hero-text h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #3a2a1e;
}

.hero-text p {
    font-size: 1.1rem;
    color: #6a503a;
    margin-bottom: 1.5rem;
}

.debut-banner {
    margin-top: 1rem;
    background: #c27e4a20;
    display: inline-block;
    padding: 0.5rem 1.2rem;
    border-radius: 40px;
    border-left: 3px solid #c27e4a;
}

#countdownText {
    margin-left: 0.75rem;
    font-weight: bold;
}

.hero-right {
    flex: 0.5;
    text-align: center;
}

.avatar-circle {
    width: 200px;
    height: 200px;
    background: #ffede0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border: 3px solid white;
    box-shadow: 0 15px 25px -10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.avatar-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-name {
    margin-top: 1rem;
    font-weight: 500;
}

.avatar-location {
    font-size: 0.8rem;
    color: #a77a54;
}

/* ========== 语言标签 ========== */
.lang-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1rem;
}

.lang-tag {
    background: #f3e9e0;
    padding: 0.4rem 1rem;
    border-radius: 40px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* ========== 弹幕模拟 ========== */
.danmaku-card {
    background: white;
    border-radius: 1.5rem;
    padding: 2rem;
    border: 1px solid #f0e2d6;
}

.danmaku-card p {
    margin-bottom: 1rem;
    color: #5e4b38;
}

.danmaku-input-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

#danmakuInput {
    flex: 2;
    padding: 12px 18px;
    border-radius: 60px;
    border: 1px solid #e2cfbe;
    background: white;
    font-family: inherit;
}

.danmaku-response {
    background: #2c241a;
    color: #f2e0cf;
    border-radius: 1.2rem;
    padding: 1.2rem;
}

.danmaku-hint {
    margin-top: 12px;
    font-size: 0.8rem;
    color: #9b7a5c;
}

/* ========== 社交媒体 ========== */
.social-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.social-card {
    text-align: center;
    padding: 1.2rem 1.8rem;
    background: white;
    border-radius: 1.2rem;
    min-width: 130px;
    transition: all 0.2s;
    text-decoration: none;
    color: inherit;
    border: 1px solid #f0e2d6;
}

.social-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -8px rgba(0, 0, 0, 0.1);
}

.social-card i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.social-card span {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
}

.social-card svg {
    margin-bottom: 8px;
    width: 32px;
    height: 32px;
}

/* 社交媒体图标颜色 */
.social-card .fa-youtube { color: #c4302b; }
.social-card .fa-twitch { color: #9146ff; }
.social-card .fa-twitter { color: #1DA1F2; }
.social-card .fa-discord { color: #5865F2; }
.social-card .fa-facebook { color: #1877F2; }

/* ========== 页脚 ========== */
footer {
    background: #2c241a;
    color: #cfbeaa;
    text-align: center;
    padding: 2rem 0;
    margin-top: 2rem;
}

.footer-note {
    font-size: 0.75rem;
    margin-top: 0.5rem;
}

/* ========== 响应式 ========== */
@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 2rem;
    }
    .section-title {
        font-size: 1.6rem;
    }
    .avatar-circle {
        width: 140px;
        height: 140px;
    }
}

/* 许可证折叠按钮 */
.license-collapse {
    margin-top: 2rem;
    text-align: center;
}

.license-btn {
    background: none;
    border: 1px solid #a77a54;
    color: #cfbeaa;
    padding: 0.5rem 1.2rem;
    border-radius: 40px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.license-btn:hover {
    background: #a77a54;
    color: #2c241a;
}

/* 许可证内容区域 */
.license-content {
    display: none;
    margin-top: 1rem;
    padding: 1rem;
    background: #3a2a1a;
    border-radius: 12px;
    text-align: left;
    font-size: 0.7rem;
    color: #cfbeaa;
}

.license-pre {
    white-space: pre-wrap;
    word-break: break-word;
    font-family: monospace;
    margin: 0;
}

/* ========== 深色模式（完整修复） ========== */
body.dark-mode {
    background: #1a1410;
    color: #e6d5c0;
}

/* 导航栏深色 */
body.dark-mode nav {
    background: rgba(26, 20, 16, 0.95);
    border-bottom-color: #3a2a1a;
}
body.dark-mode .nav-links a,
body.dark-mode .logo {
    color: #e6d5c0;
}
body.dark-mode .lang-switch {
    border-color: #a77a54;
    color: #e6d5c0;
}

/* 英雄区深色（关键修复） */
body.dark-mode .hero {
    background: linear-gradient(135deg, #2a1e16 0%, #1a1410 100%);
}
body.dark-mode .hero-text h1 {
    color: #f2e0cf;
}
body.dark-mode .hero-text p {
    color: #cfbeaa;
}
body.dark-mode .badge {
    background: #4a3628;
    color: #f2e0cf;
}
body.dark-mode .debut-banner {
    background: #c27e4a30;
    border-left-color: #c27e4a;
    color: #e6d5c0;
}
body.dark-mode .avatar-circle {
    background: #3a2a1a;
    border-color: #4a3628;
}
body.dark-mode .avatar-location {
    color: #cfbeaa;
}

/* 卡片深色 */
body.dark-mode .card,
body.dark-mode .social-card,
body.dark-mode .danmaku-card {
    background: #2c2418;
    border-color: #4a3628;
}
body.dark-mode .card p,
body.dark-mode .danmaku-card p {
    color: #cfbeaa;
}
body.dark-mode .card h3 {
    color: #f2e0cf;
}

/* 标签深色 */
body.dark-mode .lang-tag,
body.dark-mode .skill-tag {
    background: #3a2a1a;
    color: #e6d5c0;
}

/* 备用背景深色 */
body.dark-mode .alt-bg {
    background: #241e16;
}

/* 弹幕回复深色 */
body.dark-mode .danmaku-response {
    background: #1a1410;
}
body.dark-mode .danmaku-hint {
    color: #a77a54;
}

/* 页脚深色 */
body.dark-mode footer {
    background: #1a1410;
}
body.dark-mode .license-btn {
    border-color: #a77a54;
    color: #cfbeaa;
}
body.dark-mode .license-btn:hover {
    background: #a77a54;
    color: #1a1410;
}
body.dark-mode .license-content {
    background: #2c2418;
}

/* 社交媒体图标深色（保持原色） */
body.dark-mode .social-card .fa-youtube { color: #c4302b; }
body.dark-mode .social-card .fa-twitch { color: #9146ff; }
body.dark-mode .social-card .fa-twitter { color: #1DA1F2; }
body.dark-mode .social-card .fa-discord { color: #5865F2; }
body.dark-mode .social-card .fa-facebook { color: #1877F2; }

/* 深色模式切换按钮 */
.dark-mode-btn {
    background: none;
    border: 1px solid #dbb48c;
    border-radius: 24px;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.2rem 0.6rem;
    transition: all 0.2s;
}
.dark-mode-btn:hover {
    background: #dbb48c20;
    transform: scale(1.05);
}
body.dark-mode .dark-mode-btn {
    border-color: #a77a54;
    color: #e6d5c0;
}