/* 全局基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

:root {
    /* 七彩渐变配色 */
    --color-red: #ff0000;
    --color-orange: #ff7f00;
    --color-yellow: #ffff00;
    --color-green: #00ff00;
    --color-cyan: #00ffff;
    --color-blue: #0000ff;
    --color-purple: #8b00ff;
    
    /* 背景配色 */
    --black-bg: #000000;
    --dark-gray: #1a1a1a;
    --mid-gray: #333333;
    
    /* 渐变定义 */
    --rainbow-gradient: linear-gradient(90deg, 
        var(--color-red), var(--color-orange), var(--color-yellow),
        var(--color-green), var(--color-cyan), var(--color-blue), var(--color-purple));
    
    --neon-gradient: linear-gradient(90deg, 
        var(--color-red) 0%, var(--color-orange) 14%, var(--color-yellow) 28%,
        var(--color-green) 42%, var(--color-cyan) 56%, var(--color-blue) 70%, var(--color-purple) 84%);
    
    /* 通用过渡 */
    --default-transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 全局黑色背景 */
body {
    color: #ffffff;
    background: var(--black-bg);
    line-height: 1.8;
    padding-top: 80px;
    overflow-x: hidden;
    font-size: 16px;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* 核心特效样式 */
.gradient-text, .neon-text {
    background: var(--rainbow-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 400% 400%;
    animation: gradient-shift 5s ease infinite;
    font-weight: 700;
}

.neon-text {
    text-shadow: 0 0 3px rgba(255,255,255,0.9);
    font-weight: 800;
}

.text-glow {
    text-shadow: 0 0 8px rgba(255,255,255,0.8);
    font-weight: 700;
}

.neon-icon {
    background: var(--rainbow-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 400% 400%;
    animation: gradient-shift 5s ease infinite;
    text-shadow: 0 0 2px rgba(255,255,255,0.8);
    font-size: 18px;
    width: 24px;
}

.hover-scale {
    transition: var(--default-transition);
}
.hover-scale:hover {
    transform: scale(1.02);
}

.hover-lift {
    transition: var(--default-transition);
}
.hover-lift:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 20px 30px rgba(0,0,0,0.5);
}

.hover-glow:hover {
    box-shadow: 0 0 10px rgba(255,255,255,0.8);
}

.glow-border {
    position: relative;
    border-radius: 12px;
}
.glow-border::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--neon-gradient);
    border-radius: 14px;
    z-index: -1;
    animation: gradient-shift 5s ease infinite;
    background-size: 400% 400%;
}

.glow-btn {
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.glow-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: -1;
}
.glow-btn:hover::after {
    width: 300px;
    height: 300px;
}

.pulse-btn {
    animation: pulse 3s ease infinite;
}

.text-fade {
    animation: fade-in 1.5s ease forwards;
    opacity: 0;
}
.text-fade-in {
    animation: fade-in-up 1.5s ease forwards;
    opacity: 0;
}

.animate-title {
    animation: slide-in 1s ease forwards;
    transform: translateY(20px);
    opacity: 0;
}

.hover-zoom {
    transition: var(--default-transition);
}
.hover-zoom:hover {
    transform: scale(1.05);
}

.glow-effect {
    box-shadow: 0 0 15px rgba(255,255,255,0.3);
}

/* 动画关键帧 */
@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes pulse {
    0% { box-shadow: 0 0 10px rgba(255,255,255,0.5); }
    50% { box-shadow: 0 0 20px rgba(255,255,255,0.8), 0 0 30px var(--neon-gradient); }
    100% { box-shadow: 0 0 10px rgba(255,255,255,0.5); }
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slide-in {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 800;
    text-decoration: none;
    transition: var(--default-transition);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.primary-btn {
    background: var(--rainbow-gradient);
    color: #ffffff;
    background-size: 400% 400%;
    animation: gradient-shift 5s ease infinite;
    border: 2px solid rgba(255,255,255,0.8);
}

.primary-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5), 0 0 30px rgba(255,255,255,0.8);
}

/* 区块标题 */
.section-title {
    font-size: 40px;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    font-weight: 900;
    letter-spacing: 2px;
    line-height: 1.2;
}

.section-title::after {
    content: '';
    display: block;
    width: 120px;
    height: 4px;
    background: var(--neon-gradient);
    border-radius: 2px;
    margin: 20px auto 0;
    animation: gradient-shift 5s ease infinite;
    background-size: 400% 400%;
    box-shadow: 0 0 5px rgba(255,255,255,0.8);
}

/* 导航栏（适配新增链接样式） */
.navbar {
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 80px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: 900;
    background: var(--rainbow-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 400% 400%;
    animation: gradient-shift 5s ease infinite;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px; /* 调整间距适配更多链接 */
}

.nav-links a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 700;
    font-size: 17px;
    position: relative;
    padding: 5px 0;
    text-shadow: 0 0 2px rgba(255,255,255,0.8);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--neon-gradient);
    transition: width 0.3s ease;
    animation: gradient-shift 5s ease infinite;
    background-size: 400% 400%;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    color: #ffffff;
    text-shadow: 0 0 5px rgba(255,255,255,0.8);
    cursor: pointer;
}

/* Hero区域 */
.hero {
    height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    background: var(--black-bg);
}

.hero-content {
    text-align: center;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 60px;
    margin-bottom: 30px;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: 3px;
    text-shadow: 0 0 8px rgba(255,255,255,0.9);
    color: #ffffff;
}

.hero-desc {
    font-size: 20px;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: #ffffff;
    font-weight: 600;
    text-shadow: 0 0 3px rgba(255,255,255,0.8);
}

/* 二维码区域（适配本地图片） */
.qr-section {
    padding: 120px 0;
    background-color: var(--dark-gray);
    margin: 50px 0;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.2);
}

.qr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 60px;
    max-width: 900px;
    margin: 0 auto;
}

.qr-card {
    text-align: center;
    padding: 30px;
    border-radius: 20px;
    background-color: var(--mid-gray);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: var(--default-transition);
}

.qr-img-container {
    margin-bottom: 20px;
    padding: 20px;
    background-color: var(--black-bg);
    border-radius: 15px;
    display: inline-block;
    position: relative;
}

/* 适配本地二维码图片尺寸，保持比例 */
.qr-img-container img {
    width: auto;
    height: auto;
    max-width: 250px;
    max-height: 250px;
    border-radius: 10px;
    border: 2px solid rgba(255,255,255,0.8);
}

.qr-title {
    font-size: 24px;
    margin-bottom: 10px;
    font-weight: 800;
}

.qr-desc {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    text-shadow: 0 0 2px rgba(255,255,255,0.8);
}

/* 赞助记录区域 */
.sponsor-list-section {
    background: var(--black-bg);
    padding: 120px 0;
    margin: 50px 0;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.2);
}

.sponsor-count-tip {
    text-align: center;
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 700;
}

.sponsor-table-wrapper {
    max-height: 450px;
    overflow-y: auto;
    border-radius: 20px;
    background-color: var(--dark-gray);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    scrollbar-width: thin;
    scrollbar-color: var(--mid-gray) var(--dark-gray);
}

/* 自定义滚动条 */
.sponsor-table-wrapper::-webkit-scrollbar {
    width: 10px;
}
.sponsor-table-wrapper::-webkit-scrollbar-track {
    background: var(--dark-gray);
    border-radius: 10px;
    margin: 10px;
}
.sponsor-table-wrapper::-webkit-scrollbar-thumb {
    background: var(--neon-gradient);
    border-radius: 10px;
    background-size: 400% 400%;
    animation: gradient-shift 5s ease infinite;
    border: 1px solid rgba(255,255,255,0.2);
}

.sponsor-table-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 2fr;
    background: var(--neon-gradient);
    background-size: 400% 400%;
    animation: gradient-shift 5s ease infinite;
    color: #ffffff;
    font-weight: 800;
    padding: 20px;
    font-size: 18px;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    text-shadow: 0 0 2px rgba(0,0,0,0.5);
}

.sponsor-table-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 2fr;
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 17px;
    font-weight: 600;
    transition: var(--default-transition);
}

.sponsor-table-row.even {
    background-color: var(--mid-gray);
}

.sponsor-table-row.odd {
    background-color: var(--dark-gray);
}

.sponsor-col {
    display: flex;
    align-items: center;
    gap: 10px;
}

.empty-tip {
    text-align: center;
    padding: 60px;
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    text-shadow: 0 0 2px rgba(255,255,255,0.8);
}

/* 页脚 */
.footer {
    padding: 60px 0;
    background-color: var(--dark-gray);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255,255,255,0.2);
    margin-top: 50px;
}

.footer-text {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-shadow: 0 0 1px rgba(255,255,255,0.9);
    letter-spacing: 0.5px;
    line-height: 1.5;
}

/* 响应式适配（适配新增导航） */
@media (max-width: 992px) {
    .nav-links {
        gap: 20px; /* 中等屏幕缩小导航间距 */
    }
    .nav-links a {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        flex-direction: column;
        background-color: rgba(0, 0, 0, 0.98);
        backdrop-filter: blur(10px);
        width: 100%;
        height: calc(100vh - 80px);
        padding: 40px;
        transition: left 0.5s ease;
        border-right: 1px solid rgba(255,255,255,0.2);
        gap: 30px; /* 移动端恢复间距 */
    }
    .nav-links.active {
        left: 0;
    }
    .nav-toggle {
        display: block;
    }
    .hero h1 {
        font-size: 40px;
    }
    .section-title {
        font-size: 32px;
    }
    .sponsor-table-header,
    .sponsor-table-row {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        font-size: 16px;
    }
    .payment-col,
    .datetime-col {
        grid-column: span 2;
    }
    .sponsor-table-wrapper {
        max-height: 400px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 32px;
    }
    .qr-img-container img {
        max-width: 200px;
        max-height: 200px;
    }
    .sponsor-table-wrapper {
        max-height: 350px;
    }
    .hero-desc {
        font-size: 18px;
    }
    .footer-text {
        font-size: 14px;
    }
}