/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 基础样式 */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 50%, #0f0f1a 100%);
    color: #e0e0e0;
    transition: background 0.3s, color 0.3s;
    min-height: 100vh;
}

body.light {
    background: linear-gradient(135deg, #f5f5fa 0%, #e8e8f0 50%, #f5f5fa 100%);
    color: #1a1a2e;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部 */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(15, 15, 26, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
    transition: background 0.3s, border-color 0.3s;
}

body.light header {
    background: rgba(245, 245, 250, 0.85);
    border-bottom: 1px solid rgba(26, 26, 46, 0.1);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo svg {
    width: 40px;
    height: 40px;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.3));
}

.logo span {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

nav a {
    font-size: 14px;
    font-weight: 500;
    color: #ccc;
    transition: color 0.3s;
    position: relative;
    padding: 5px 0;
}

body.light nav a {
    color: #333;
}

nav a:hover,
nav a.active {
    color: #ffd700;
}

nav a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #ffd700, #ffaa00);
    border-radius: 2px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.search-btn,
.dark-toggle,
.menu-toggle {
    background: none;
    border: none;
    color: #ccc;
    font-size: 18px;
    cursor: pointer;
    transition: color 0.3s, transform 0.3s;
    padding: 5px;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.light .search-btn,
body.light .dark-toggle,
body.light .menu-toggle {
    color: #333;
}

.search-btn:hover,
.dark-toggle:hover,
.menu-toggle:hover {
    color: #ffd700;
    transform: scale(1.1);
}

.menu-toggle {
    display: none;
}

/* 搜索覆盖层 */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.search-overlay.active {
    display: flex;
}

.search-box {
    background: linear-gradient(145deg, #1a1a2e, #2a2a3e);
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 215, 0, 0.1);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

body.light .search-box {
    background: linear-gradient(145deg, #ffffff, #f0f0f5);
}

.search-box input {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 16px;
    outline: none;
    transition: background 0.3s;
}

body.light .search-box input {
    background: rgba(0, 0, 0, 0.05);
    color: #333;
}

.search-box input:focus {
    background: rgba(255, 215, 0, 0.1);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.1);
}

.search-box input::placeholder {
    color: #888;
}

.search-box .close-search {
    margin-top: 15px;
    text-align: right;
    color: #ffd700;
    cursor: pointer;
    font-weight: 500;
    transition: opacity 0.3s;
}

.search-box .close-search:hover {
    opacity: 0.8;
}

/* 横幅 */
.banner {
    margin-top: 80px;
    position: relative;
    overflow: hidden;
    height: 70vh;
    min-height: 400px;
    background: linear-gradient(135deg, #0f0f1a, #1a1a2e);
}

body.light .banner {
    background: linear-gradient(135deg, #f5f5fa, #e8e8f0);
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(255, 215, 0, 0.1), transparent 50%),
                radial-gradient(circle at 80% 50%, rgba(255, 170, 0, 0.1), transparent 50%);
    pointer-events: none;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    padding: 40px;
}

.banner-slide.active {
    opacity: 1;
}

.banner-slide h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.3));
    }
    to {
        filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.6));
    }
}

.banner-slide p {
    font-size: 18px;
    max-width: 600px;
    color: #ccc;
    line-height: 1.8;
}

body.light .banner-slide p {
    color: #555;
}

.banner-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.banner-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 215, 0, 0.3);
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.banner-dots span:hover {
    transform: scale(1.2);
}

.banner-dots span.active {
    background: #ffd700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* 通用区块 */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 50px;
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #ffd700, #ffaa00);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* 网格 */
.grid-2,
.grid-3,
.grid-4 {
    display: grid;
    gap: 30px;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* 卡片 */
.card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 215, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.05), transparent);
    transition: left 0.5s;
}

.card:hover::before {
    left: 100%;
}

body.light .card {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(26, 26, 46, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(255, 215, 0, 0.15);
}

.card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #ffd700;
}

.card p {
    font-size: 14px;
    line-height: 1.8;
    color: #bbb;
}

body.light .card p {
    color: #555;
}

.card svg {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.2));
}

/* 按钮 */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    color: #1a1a2e;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
}

/* 时间线 */
.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #ffd700, #ffaa00);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-item .content {
    width: 45%;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 215, 0, 0.05);
    transition: transform 0.3s;
}

.timeline-item .content:hover {
    transform: translateY(-5px);
}

body.light .timeline-item .content {
    background: rgba(255, 255, 255, 0.9);
}

.timeline-item .year {
    width: 10%;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

/* 团队卡片 */
.team-card {
    text-align: center;
}

.team-card svg {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 15px;
    transition: transform 0.3s;
}

.team-card:hover svg {
    transform: scale(1.1);
}

.team-card h4 {
    font-size: 18px;
    color: #ffd700;
}

.team-card p {
    font-size: 13px;
    color: #aaa;
}

body.light .team-card p {
    color: #666;
}

/* 合作伙伴 */
.partner-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
}

.partner-logos svg {
    width: 120px;
    height: 60px;
    opacity: 0.5;
    transition: opacity 0.3s, transform 0.3s;
}

.partner-logos svg:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* FAQ */
.faq-item {
    margin-bottom: 15px;
}

.faq-question {
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: 500;
    transition: background 0.3s;
    border: 1px solid rgba(255, 215, 0, 0.05);
}

body.light .faq-question {
    background: rgba(255, 255, 255, 0.9);
}

.faq-question:hover {
    background: rgba(255, 215, 0, 0.1);
}

.faq-answer {
    padding: 0 20px 20px;
    font-size: 14px;
    line-height: 1.8;
    color: #bbb;
    display: none;
}

body.light .faq-answer {
    color: #555;
}

.faq-item.open .faq-answer {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-item.open .faq-question::after {
    transform: rotate(180deg);
}

.faq-question::after {
    content: '▼';
    font-size: 12px;
    transition: transform 0.3s;
}

/* HowTo */
.howto-steps {
    counter-reset: step;
}

.howto-step {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    align-items: flex-start;
}

.howto-step::before {
    counter-increment: step;
    content: counter(step);
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    color: #1a1a2e;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.howto-step h4 {
    color: #ffd700;
    margin-bottom: 5px;
}

.howto-step p {
    font-size: 14px;
    line-height: 1.8;
    color: #bbb;
}

body.light .howto-step p {
    color: #555;
}

/* 联系信息 */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.contact-info div {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.3s;
}

.contact-info div:hover {
    transform: translateY(-5px);
}

.contact-info svg {
    width: 40px;
    height: 40px;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.2));
}

.contact-info h4 {
    color: #ffd700;
    margin-bottom: 5px;
}

.contact-info p {
    font-size: 14px;
    color: #bbb;
}

body.light .contact-info p {
    color: #555;
}

/* 页脚 */
footer {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 60px 0 30px;
    border-top: 1px solid rgba(255, 215, 0, 0.1);
}

body.light footer {
    background: rgba(255, 255, 255, 0.5);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.footer-grid h4 {
    color: #ffd700;
    margin-bottom: 20px;
    font-size: 16px;
}

.footer-grid a {
    display: block;
    font-size: 13px;
    color: #aaa;
    margin-bottom: 10px;
    transition: color 0.3s, padding-left 0.3s;
}

body.light .footer-grid a {
    color: #555;
}

.footer-grid a:hover {
    color: #ffd700;
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 215, 0, 0.1);
    margin-top: 30px;
    font-size: 13px;
    color: #888;
    line-height: 2;
}

body.light .footer-bottom {
    color: #666;
}

/* 回到顶部 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    color: #1a1a2e;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
    z-index: 999;
}

.back-to-top.show {
    display: flex;
    animation: bounceIn 0.5s ease;
}

@keyframes bounceIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.back-to-top:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.5);
}

/* 滚动动画 */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 面包屑 */
.breadcrumb {
    padding: 20px 0;
    font-size: 13px;
    color: #888;
}

.breadcrumb a {
    color: #ffd700;
    transition: opacity 0.3s;
}

.breadcrumb a:hover {
    opacity: 0.8;
}

.breadcrumb span {
    color: #aaa;
}

/* 响应式 */
@media (max-width: 768px) {
    nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(15, 15, 26, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 20px;
        gap: 15px;
        border-bottom: 1px solid rgba(255, 215, 0, 0.1);
    }

    body.light nav {
        background: rgba(245, 245, 250, 0.95);
    }

    nav.open {
        display: flex;
        animation: slideDown 0.3s ease;
    }

    .menu-toggle {
        display: block;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .banner-slide h1 {
        font-size: 28px;
    }

    .section-title {
        font-size: 28px;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        flex-direction: column !important;
        align-items: flex-start;
        padding-left: 40px;
    }

    .timeline-item .content {
        width: 100%;
    }

    .timeline-item .year {
        width: auto;
        margin-bottom: 10px;
    }

    .header-inner {
        padding: 10px 0;
    }

    .banner {
        height: 60vh;
    }
}

@media (max-width: 480px) {
    .banner {
        height: 50vh;
        min-height: 300px;
    }

    .banner-slide h1 {
        font-size: 24px;
    }

    .banner-slide p {
        font-size: 14px;
    }

    section {
        padding: 50px 0;
    }

    .card {
        padding: 20px;
    }
}

/* 暗色模式覆盖 */
body.light .card h3 {
    color: #1a1a2e;
}

body.light .team-card h4 {
    color: #1a1a2e;
}

body.light .faq-question {
    color: #1a1a2e;
}

body.light .howto-step h4 {
    color: #1a1a2e;
}

body.light .contact-info h4 {
    color: #1a1a2e;
}

body.light .footer-grid h4 {
    color: #1a1a2e;
}

body.light .breadcrumb a {
    color: #1a1a2e;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ffd700, #ffaa00);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #ffaa00, #ffd700);
}

/* 选择文本样式 */
::selection {
    background: rgba(255, 215, 0, 0.3);
    color: #fff;
}

body.light ::selection {
    background: rgba(255, 215, 0, 0.5);
    color: #1a1a2e;
}