* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #e94560;
    --dark-bg: #0f0f1a;
    --darker-bg: #0a0a12;
    --card-bg: #16213e;
    --text-main: #e0e0e0;
    --text-sub: #888;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-main);
    line-height: 1.8;
    overflow-x: hidden;
    position: relative;
}

/* 粒子画布（全局背景） */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* ========== 密码解锁屏 ========== */
#password-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 18, 0.85);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 1.2s ease, visibility 1.2s ease;
}

#password-screen.unlocked {
    opacity: 0;
    visibility: hidden;
}

.password-box {
    text-align: center;
    animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

.password-title {
    font-size: 48px;
    letter-spacing: 15px;
    color: var(--primary);
    margin-bottom: 10px;
    text-shadow: 0 0 30px rgba(233, 69, 96, 0.6);
    animation: titlePulse 3s ease-in-out infinite;
}

@keyframes titlePulse {
    0%, 100% { text-shadow: 0 0 20px rgba(233, 69, 96, 0.4); }
    50% { text-shadow: 0 0 40px rgba(233, 69, 96, 0.8); }
}

.password-sub {
    color: #aaa;
    margin-bottom: 40px;
    letter-spacing: 3px;
    font-size: 16px;
}

#password-input {
    display: block;
    margin: 0 auto;
    width: 320px;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(233, 69, 96, 0.3);
    border-radius: 6px;
    color: #fff;
    font-size: 16px;
    letter-spacing: 2px;
    text-align: center;
    outline: none;
    transition: all 0.3s ease;
}

#password-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(233, 69, 96, 0.4);
    background: rgba(233, 69, 96, 0.05);
}

#password-input.shake {
    animation: shake 0.5s ease;
    border-color: #ff4444;
    box-shadow: 0 0 20px rgba(255, 68, 68, 0.4);
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-10px); }
    40%, 80% { transform: translateX(10px); }
}

.password-btn {
    display: block;
    margin: 20px auto 0 auto;
    width: 320px;
    padding: 12px 0;
    background: transparent;
    border: 1px solid rgba(233, 69, 96, 0.5);
    border-radius: 6px;
    color: #e94560;
    font-size: 16px;
    letter-spacing: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.password-btn:hover {
    background: rgba(233, 69, 96, 0.15);
    box-shadow: 0 0 20px rgba(233, 69, 96, 0.4);
    border-color: #e94560;
}

.password-btn:active {
    transform: scale(0.98);
}

.password-tip {
    margin-top: 20px;
    color: #555;
    font-size: 13px;
    letter-spacing: 1px;
}

/* ========== 主内容（解锁前隐藏） ========== */
.main-content {
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.2s ease 0.3s, visibility 1.2s ease 0.3s;
}

.main-content.show {
    opacity: 1;
    visibility: visible;
}

/* ========== 导航栏 ========== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 15, 26, 0.3);
    backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid rgba(233, 69, 96, 0);
    transition: all 0.4s ease;
}

.navbar.scrolled {
    background: rgba(15, 15, 26, 0.95);
    border-bottom: 1px solid rgba(233, 69, 96, 0.2);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary);
    text-shadow: 0 0 15px rgba(233, 69, 96, 0.5);
    letter-spacing: 2px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 35px;
}

.nav-link {
    color: var(--text-main);
    text-decoration: none;
    position: relative;
    transition: color 0.3s;
    font-size: 15px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    box-shadow: 0 0 10px var(--primary);
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link:hover::after {
    width: 100%;
}

/* ========== 首页Banner ========== */
.banner {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at center, rgba(15, 15, 26, 0.3) 0%, rgba(10, 10, 18, 0.9) 100%),
        url('../images/banner.jpg') center/cover no-repeat;
    filter: brightness(0.6);
    animation: zoomSlow 20s ease-in-out infinite alternate;
}

@keyframes zoomSlow {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.banner-content {
    position: relative;
    z-index: 2;
}

.main-title {
    margin-bottom: 30px;
}

.title-line {
    font-size: 72px;
    letter-spacing: 15px;
    color: transparent;
    background: linear-gradient(135deg, #fff 0%, var(--primary) 50%, #fff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    animation: shine 3s linear infinite;
    text-shadow: 0 0 40px rgba(233, 69, 96, 0.3);
    display: inline-block;
}

@keyframes shine {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.banner-sub {
    font-size: 20px;
    color: #aaa;
    margin-bottom: 50px;
    letter-spacing: 5px;
}

.glow-btn {
    display: inline-block;
    padding: 15px 50px;
    border: 1px solid var(--primary);
    color: var(--primary);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    letter-spacing: 3px;
    transition: all 0.4s ease;
}

.glow-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(233, 69, 96, 0.4), transparent);
    transition: left 0.5s ease;
}

.glow-btn:hover {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 0 30px rgba(233, 69, 96, 0.6), 0 0 60px rgba(233, 69, 96, 0.3);
}

.glow-btn:hover::before {
    left: 100%;
}

.scroll-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: #666;
    font-size: 13px;
    letter-spacing: 2px;
    z-index: 2;
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 1px solid var(--primary);
    border-bottom: 1px solid var(--primary);
    transform: rotate(45deg);
    margin: 10px auto 0;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* ========== 通用区块 ========== */
.section {
    padding: 100px 0;
    position: relative;
}

.section-dark {
    background-color: rgba(26, 26, 46, 0.5);
}

.section-title {
    text-align: center;
    font-size: 34px;
    margin-bottom: 60px;
    color: #fff;
    position: relative;
}

.section-title span {
    display: inline-block;
    letter-spacing: 5px;
}

.title-line {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    margin: 20px auto 0;
    box-shadow: 0 0 15px rgba(233, 69, 96, 0.5);
}

/* 滚动渐显 */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ========== 3D卡片通用效果 ========== */
.card-3d {
    perspective: 1000px;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s ease, box-shadow 0.3s ease;
    transform-style: preserve-3d;
}

.card-3d:hover .card-inner {
    transform: translateY(-10px) rotateX(5deg);
}

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    box-shadow: 0 0 0 rgba(233, 69, 96, 0);
    transition: box-shadow 0.4s ease;
    pointer-events: none;
    z-index: -1;
}

.card-3d:hover .card-glow {
    box-shadow: 0 0 30px rgba(233, 69, 96, 0.3);
}

/* ========== 角色图鉴 ========== */
.roles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 35px;
}

.role-card {
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
}

.highlight-card .card-inner {
    border: 1px solid rgba(233, 69, 96, 0.3);
}

.role-img {
    position: relative;
    overflow: hidden;
}

.role-img img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.role-card:hover .role-img img {
    transform: scale(1.08);
}

.role-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 60%, rgba(233, 69, 96, 0.2) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.role-card:hover .role-overlay {
    opacity: 1;
}

.overlay-border {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border: 1px solid rgba(233, 69, 96, 0.6);
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.4s ease;
}

.role-card:hover .overlay-border {
    opacity: 1;
    transform: scale(1);
}

.role-info {
    padding: 25px;
    background: var(--card-bg);
}

.role-info h3 {
    font-size: 22px;
    color: #fff;
    margin-bottom: 8px;
}

.role-tag {
    color: var(--primary);
    font-size: 14px;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.role-info p {
    color: #aaa;
    font-size: 14px;
    line-height: 1.7;
}

/* ========== 影音专区 ========== */
.media-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.media-box {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
}

.media-box h3 {
    margin-bottom: 20px;
    color: #fff;
    font-size: 20px;
}

.wave-icon {
    color: var(--primary);
    display: inline-block;
    animation: wave 2s ease-in-out infinite;
}

@keyframes wave {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* ========== 资料下载 ========== */
.files-list {
    max-width: 800px;
    margin: 0 auto;
}

.file-item {
    margin-bottom: 15px;
    border-radius: 8px;
    background: var(--card-bg);
}

.file-item .card-inner {
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-small {
    color: var(--primary);
    text-decoration: none;
    border: 1px solid var(--primary);
    padding: 6px 18px;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-small:hover {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 0 15px rgba(233, 69, 96, 0.4);
}

.tip {
    text-align: center;
    margin-top: 30px;
    color: #666;
    font-size: 14px;
}

.tip a {
    color: var(--primary);
    text-decoration: none;
}

/* ========== 关于小咬 ========== */
.about-wrap {
    display: flex;
    gap: 60px;
    align-items: center;
    flex-wrap: wrap;
}

.photo-wall {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    min-width: 300px;
}

.photo-item {
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.photo-item img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.photo-item:hover img {
    transform: scale(1.1);
}

.photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px 15px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: #fff;
    font-size: 14px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
    text-align: center;
    letter-spacing: 2px;
}

.photo-item:hover .photo-overlay {
    opacity: 1;
    transform: translateY(0);
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.flicker-text {
    font-size: 30px;
    color: var(--primary);
    margin-bottom: 25px;
    letter-spacing: 3px;
    text-shadow: 0 0 20px rgba(233, 69, 96, 0.5);
    animation: flicker 3s infinite alternate;
}

@keyframes flicker {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
        opacity: 1;
        text-shadow: 0 0 20px rgba(233, 69, 96, 0.5);
    }
    20%, 24%, 55% {
        opacity: 0.8;
        text-shadow: none;
    }
}

.about-text p {
    margin-bottom: 18px;
    color: #bbb;
    font-size: 16px;
}

.signature {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(233, 69, 96, 0.2);
    color: var(--primary);
    font-style: italic;
    letter-spacing: 2px;
    text-align: center;
}

/* ========== 页脚 ========== */
.footer {
    text-align: center;
    padding: 40px 0;
    background: var(--darker-bg);
    color: #555;
    font-size: 14px;
    border-top: 1px solid rgba(233, 69, 96, 0.1);
    position: relative;
    z-index: 1;
}

/* ========== 移动端适配 ========== */
@media (max-width: 768px) {
    .nav-menu {
        gap: 15px;
        font-size: 14px;
    }
    
    .title-line {
        font-size: 42px;
        letter-spacing: 8px;
    }
    
    .password-title {
        font-size: 32px;
        letter-spacing: 8px;
    }
    
    #password-input {
        width: 260px;
    }
    
    .password-btn {
        width: 260px;
    }
    
    .media-grid {
        grid-template-columns: 1fr;
    }
    
    .photo-wall {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .banner-sub {
        font-size: 16px;
    }
}
