/* ===== CSS 重置和基础变量 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary: #ff0080;
    --secondary: #00ffcc;
    --dark: #121212;
    --darker: #0a0a0a;
    --light: #f0f0f0;
    --gray: #333;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: transparent;
    color: var(--light);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ===== 通用组件样式 ===== */
/* 按钮样式 */
.cta-button, .btn {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: var(--darker);
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    cursor: pointer;
    font-size: 14px;
    display: inline-block;
}

.cta-button:hover, .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 0, 128, 0.4);
}

.btn-small {
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    padding: 8px 15px;
    font-size: 12px;
}

.btn-small:hover {
    background: #545b62;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: var(--darker);
}

.btn-secondary {
    border: 2px solid var(--primary);
    color: var(--light);
    background: transparent;
}

/* 消息和指示器样式 */
.form-message {
    padding: 12px;
    margin: 10px 0;
    border-radius: 5px;
    text-align: center;
    display: none;
    font-size: 14px;
}

.form-message.info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.email-instructions {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    border-left: 4px solid #ff0080;
}

.email-instructions h4 {
    margin: 0 0 10px 0;
    color: #ff00ae;
}

.email-instructions ul {
    margin: 0;
    padding-left: 20px;
}

.email-instructions li {
    margin: 5px 0;
}

/* 图标样式 */
.icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    stroke-width: 0;
    stroke: currentColor;
    fill: currentColor;
}

.icon-bars { width: 1.2em; height: 1.2em; }
.icon-envelope, .icon-phone { width: 1.1em; height: 1.1em; }
.icon-copy, .icon-play { width: 1em; height: 1em; }
.icon-paper-plane, .icon-step-backward,
.icon-step-forward, .icon-volume-up { width: 1.1em; height: 1.1em; }
.icon-spotify, .icon-soundcloud,
.icon-instagram, .icon-youtube, .icon-qq { width: 1.2em; height: 1.2em; }

/* ===== 布局和背景 ===== */
.page-section {
    min-height: 100vh;
    padding: 80px 20px 20px;
    position: relative;
    z-index: 1;
}

.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
    background-color: var(--darker); /* 添加备用背景色 */
}

.background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 160%;
    background-image: url('https://furrymiaomiao.oss-cn-beijing.aliyuncs.com/olegalexei/img/background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    will-change: transform;
    min-height: 100vh; /* 确保最小高度覆盖视口 */
    filter: blur(0px);
    transition: filter 0.3s ease;
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.7);
    z-index: -1;
}

/* ===== 导航栏 ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background-color: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 0, 128, 0.3);
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--light);
    text-decoration: none;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-links a:hover {
    color: var(--secondary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a.active {
    color: #ff0066;
    border-bottom: 2px solid #ff0066;
}

.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* ===== 英雄区域 ===== */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 5%;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(255, 0, 128, 0.2), transparent 50%),
    radial-gradient(circle at 70% 20%, rgba(0, 255, 204, 0.15), transparent 50%);
    z-index: -1;
}

.hero-content {
    max-width: 600px;
    z-index: 2;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero h1 span {
    color: var(--secondary);
    text-shadow: 0 0 10px rgba(0, 255, 204, 0.5);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #ccc;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

/* ===== 音乐播放器 ===== */
.music-player {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(18, 18, 18, 0.95);
    padding: 15px 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 0, 128, 0.3);
    z-index: 1000;
}

.track-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.track-cover {
    width: 50px;
    height: 50px;
    border-radius: 5px;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    background-size: cover;
    transition: all 0.3s ease;
}

.track-details h4 {
    font-size: 16px;
    margin-bottom: 5px;
}

.track-details p {
    font-size: 14px;
    color: #aaa;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.control-btn {
    background: none;
    border: none;
    color: var(--light);
    font-size: 18px;
    cursor: pointer;
    transition: color 0.3s;
}

.control-btn:hover {
    color: var(--secondary);
}

.play-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-btn.playing .icon-play {
    display: none;
}

.play-btn:not(.playing) .icon-pause {
    display: none;
}

.time-display {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-grow: 1;
    max-width: 400px;
    margin: 0 20px;
}

.time-display span {
    font-size: 12px;
    color: #aaa;
    min-width: 40px;
    text-align: center;
}

.progress-container {
    flex-grow: 1;
}

.progress-bar {
    height: 5px;
    background: var(--gray);
    border-radius: 5px;
    position: relative;
    cursor: pointer;
}

.progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    border-radius: 5px;
    transition: width 0.1s;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.volume-slider-container {
    width: 80px;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.volume-slider-container:hover {
    opacity: 1;
}

.volume-slider {
    width: 100%;
    height: 5px;
    background: var(--gray);
    border-radius: 5px;
    outline: none;
    -webkit-appearance: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--light);
    cursor: pointer;
}

.volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--light);
    cursor: pointer;
    border: none;
}

/* ===== 内容区域通用样式 ===== */
section {
    padding: 100px 5%;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-title p {
    color: #aaa;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== 曲目网格 ===== */
.tracks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 300px)); /* 限制最大宽度 */
    gap: 30px;
    justify-content: center; /* 使整个网格居中 */
    max-width: 1200px;
    margin: 0 auto;
}

.track-card {
    background: var(--dark);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.track-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.track-card.playing .track-overlay {
    opacity: 1;
    background: rgba(255, 0, 128, 0.3);
}

.track-card.playing .track-image {
    box-shadow: 0 0 15px rgba(255, 0, 128, 0.5);
}

.track-image {
    height: 200px;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.track-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.track-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.track-card:hover .track-overlay {
    opacity: 1;
}

.play-track {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    cursor: pointer;
}

.track-info-card {
    padding: 20px;
}

.track-info-card h3 {
    margin-bottom: 10px;
    font-size: 18px;
}

.track-info-card p {
    color: #aaa;
    font-size: 14px;
}

/* ===== 活动部分 ===== */
.events-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.event-card {
    background: var(--dark);
    border-radius: 10px;
    overflow: hidden;
}

.event-image {
    height: 200px;
    background: linear-gradient(45deg, #ff6b6b, #feca57);
}

.event-details {
    padding: 20px;
}

.event-date {
    display: inline-block;
    background: var(--primary);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    margin-bottom: 15px;
}

.event-details h3 {
    margin-bottom: 10px;
    font-size: 20px;
}

.event-details p {
    color: #aaa;
    margin-bottom: 15px;
}

/* ===== 联系表单 ===== */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info h3 {
    margin-bottom: 20px;
    font-size: 24px;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    background: var(--dark);
    border: 1px solid var(--gray);
    border-radius: 5px;
    color: var(--light);
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

/* ===== 页脚 ===== */
footer {
    background: var(--darker);
    padding: 50px 5% 20px;
    border-top: 1px solid var(--gray);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--secondary);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    text-decoration: none;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-5px);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--gray);
    color: #aaa;
    font-size: 14px;
}

.bilibili {
    height: 25px;
    width: 25px;
}

/* ===== 动画和特效 ===== */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pulse {
    animation: pulse 2s infinite;
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.floating-element {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
}

.element-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    right: 10%;
    animation: float 20s infinite linear;
}

.element-2 {
    width: 200px;
    height: 200px;
    bottom: 20%;
    left: 5%;
    animation: float 15s infinite linear reverse;
}

.element-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    right: 20%;
    animation: float 25s infinite linear;
}

@keyframes float {
    0% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(50px, 50px) rotate(90deg); }
    50% { transform: translate(0, 100px) rotate(180deg); }
    75% { transform: translate(-50px, 50px) rotate(270deg); }
    100% { transform: translate(0, 0) rotate(360deg); }
}

/* 状态类 */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.error {
    background-color: rgba(255, 0, 0, 0.1) !important;
    border: 1px solid rgba(255, 0, 0, 0.3) !important;
}

/* 背景图片加载状态 */
.background-image.loading {
    filter: blur(10px);
}

/* ===== 响应式设计 ===== */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 3rem;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--darker);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        gap: 0;
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.5s;
    }

    .nav-links.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }

    .nav-links a {
        padding: 15px 0;
        width: 100%;
        text-align: center;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .music-player {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
        flex-wrap: wrap;
    }

    .time-display {
        order: 3;
        width: 100%;
        margin: 10px 0;
        max-width: 100%;
    }

    .volume-control {
        order: 2;
    }

    .progress-bar {
        max-width: 100%;
        margin: 10px 0;
    }

    .track-cover {
        width: 40px;
        height: 40px;
    }

    .track-details h4 {
        font-size: 14px;
    }

    .track-details p {
        font-size: 12px;
    }

    /* 移动设备背景图片优化 */
    .background-image {
        height: 200%; /* 增加高度百分比确保覆盖 */
        background-size: cover;
        background-position: center center;
        background-attachment: fixed; /* 固定背景避免滚动问题 */
    }
}

/* 针对小屏幕设备的进一步优化 */
@media (max-width: 480px) {
    .background-image {
        height: 250%; /* 在小屏幕上进一步增加高度 */
    }

    .hero h1 {
        font-size: 2rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }
}

/* ===== 字体设置 ===== */
@font-face {
    font-family: 'SweiFistLegCJKtc';
    src: url('./fonts/SweiFistLegCJKtc-Black-2.ttf') format('truetype');
    font-weight: 900; /* Black 字重对应 900 */
    font-style: normal;
    font-display: swap;
}

/* ===== 简化版字体设置 ===== */
@font-face {
    font-family: 'SweiFistLegCJKtc';
    src: url('./fonts/SweiFistLegCJKtc-Black-2.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --heading-font: 'SweiFistLegCJKtc', 'Microsoft JhengHei', '微軟正黑體', sans-serif;
    --body-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft JhengHei', '微軟正黑體', Tahoma, sans-serif;
}

body {
    font-family: var(--body-font), serif;
}

h1, h2, h3, h4, h5, h6,
.logo,
.hero h1,
.section-title h2,
.track-info-card h3,
.contact-info h3,
.footer-column h3 {
    font-family: var(--heading-font), serif;
    font-weight: 900;
}