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

:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --dark-bg: #0f172a;
    --dark-card: #1e293b;
    --text-primary: #ffffff;
    --text-secondary: #cbd5e1;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* 页面加载动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
    }
    50% {
        box-shadow: 0 0 30px rgba(99, 102, 241, 0.8);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* 滚动动画 */
.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.slide-in-left {
    animation: slideInLeft 0.8s ease-out forwards;
}

.slide-in-right {
    animation: slideInRight 0.8s ease-out forwards;
}

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

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.98);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.navbar.scrolled {
    background: rgba(15, 23, 42, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    padding: 0.8rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s;
    position: relative;
    animation: fadeIn 0.8s ease-out;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s;
}

.logo:hover::after {
    width: 100%;
}

.logo:hover {
    transform: scale(1.05);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transition: all 0.3s;
    transform: translateX(-50%);
}

.nav-menu a:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.nav-menu a:hover::after {
    width: 100%;
}

/* 英雄区域 - 优化banner轮播 */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

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

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.carousel-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    z-index: 3;
    pointer-events: none;
}

.carousel-prev,
.carousel-next {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    pointer-events: all;
    backdrop-filter: blur(10px);
}

.carousel-prev:hover,
.carousel-next:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: white;
    transform: scale(1.1);
}

.carousel-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 3;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background: white;
    width: 30px;
    border-radius: 6px;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 4rem 3rem;
    text-align: center;
    margin: 0 20px;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    line-height: 1.2;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    letter-spacing: -1px;
    animation: fadeInUp 1s ease-out 0.3s both;
    background: linear-gradient(135deg, #ffffff, #e0e7ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-bottom: 3rem;
    line-height: 1.6;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out 0.5s both;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.7s both;
}

.cta-button {
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cta-button:hover::before {
    width: 300px;
    height: 300px;
}

.cta-button.primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.cta-button.secondary {
    background: rgba(255, 255, 255, 0.95);
    color: var(--dark-bg);
    border: 2px solid rgba(255, 255, 255, 0.95);
}

.cta-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.6);
}

.cta-button:active {
    transform: translateY(-2px) scale(1.02);
}

.cta-button.secondary:hover {
    background: white;
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

/* 章节标题 */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
    animation: fadeIn 0.8s ease-out 0.5s both;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.2rem;
}

/* 通用卡片样式 */
.card-base {
    background: rgba(30, 41, 59, 0.8);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}

.card-base:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
}

/* 游戏介绍 */
.about {
    padding: 6rem 0;
    background: var(--dark-card);
}

.about-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.about-description {
    background: rgba(30, 41, 59, 0.8);
    padding: 3rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.about-description h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

.about-description p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    text-align: justify;
}

.about-description p:last-child {
    margin-bottom: 0;
}

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

.info-card {
    background: rgba(30, 41, 59, 0.8);
    padding: 2.5rem 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
}

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

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

.info-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.4);
    background: rgba(30, 41, 59, 0.95);
}

.card-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    transition: all 0.4s;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

.info-card:hover .card-icon {
    transform: scale(1.2) rotate(5deg);
    animation: pulse 1s ease-in-out infinite;
}

.info-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.info-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
    flex-grow: 1;
    font-size: 0.95rem;
}

.about-description {
    background: rgba(30, 41, 59, 0.8);
    padding: 2.5rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.about-description p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.8;
}

.about-description p:last-child {
    margin-bottom: 0;
}

/* 游戏特色 */
.features {
    padding: 6rem 0;
}

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

.feature-card {
    background: rgba(30, 41, 59, 0.8);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.feature-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s;
}

.feature-card:hover::after {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary-color);
    box-shadow: 0 20px 50px rgba(99, 102, 241, 0.4);
    background: rgba(30, 41, 59, 0.95);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-align: center;
    transition: all 0.4s;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

.feature-card:hover .feature-icon {
    transform: scale(1.2) rotate(5deg);
    animation: pulse 1s ease-in-out infinite;
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    text-align: center;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    text-align: left;
}

.feature-list {
    list-style: none;
    text-align: left;
    margin-bottom: 1.5rem;
}

.feature-list li {
    color: var(--text-secondary);
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.95rem;
}

.feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* 游戏截图 */
.screenshots {
    padding: 6rem 0;
    background: var(--dark-bg);
}

.screenshots-section,
.characters-section {
    margin-bottom: 5rem;
}

.screenshots-section:last-child,
.characters-section:last-child {
    margin-bottom: 0;
}

.subsection-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.subsection-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.screenshots-gallery {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
    justify-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.screenshot-card {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    aspect-ratio: 9/16;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: rgba(30, 41, 59, 0.8);
    margin: 0 auto;
    max-width: 300px;
    width: 100%;
}

.screenshot-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.2));
    opacity: 0;
    transition: opacity 0.4s;
    z-index: 1;
}

.screenshot-card:hover::before {
    opacity: 1;
}

.screenshot-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 50px rgba(99, 102, 241, 0.5);
}

.screenshot-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: rgba(15, 23, 42, 0.5);
    transition: transform 0.4s;
    position: relative;
    z-index: 0;
}

.screenshot-card:hover img {
    transform: scale(1.1);
}


/* 角色展示 */
.characters-gallery {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
    justify-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.character-card {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: rgba(30, 41, 59, 0.8);
    margin: 0 auto;
    max-width: 350px;
    width: 100%;
    aspect-ratio: 3/4;
}

.character-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.2));
    opacity: 0;
    transition: opacity 0.4s;
    z-index: 1;
}

.character-card:hover::before {
    opacity: 1;
}

.character-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 50px rgba(99, 102, 241, 0.5);
}

.character-card img {
    transition: transform 0.4s;
}

.character-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: rgba(15, 23, 42, 0.5);
    transition: transform 0.4s;
    position: relative;
    z-index: 0;
}

.character-card:hover img {
    transform: scale(1.1);
}


@media (max-width: 1200px) {
    .screenshots-gallery {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .characters-gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .about-content-wrapper {
        gap: 2rem;
    }
    
    .about-description {
        padding: 2rem;
    }
    
    .about-description h3 {
        font-size: 1.5rem;
    }
    
    .about-description p {
        font-size: 1rem;
    }
    
    .about-cards {
        grid-template-columns: 1fr;
    }
    
    .screenshots-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .characters-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .subsection-title {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }
}

/* 游戏数据 */
.stats-section {
    padding: 5rem 0;
    background: var(--dark-card);
}

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

.stat-card {
    text-align: center;
    padding: 2.5rem 2rem;
    background: rgba(30, 41, 59, 0.8);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    opacity: 0;
    transition: opacity 0.4s;
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card:hover {
    transform: translateY(-10px) scale(1.05);
    border-color: var(--primary-color);
    box-shadow: 0 20px 50px rgba(99, 102, 241, 0.4);
    background: rgba(30, 41, 59, 0.95);
}

.stat-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    transition: all 0.4s;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

.stat-card:hover .stat-icon {
    transform: scale(1.2) rotate(5deg);
    animation: pulse 1s ease-in-out infinite;
}

.stat-value {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* 联系我们 */
.contact {
    padding: 6rem 0;
    background: var(--dark-bg);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-card {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(30, 41, 59, 0.8);
    border-radius: 15px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    transition: width 0.4s;
}

.contact-card:hover {
    transform: translateX(8px);
    border-left-width: 6px;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
    background: rgba(30, 41, 59, 0.95);
}

.contact-card:hover::before {
    width: 100%;
    opacity: 0.1;
}

.contact-icon {
    font-size: 2rem;
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.2));
    border-radius: 12px;
    border: 2px solid rgba(99, 102, 241, 0.3);
    transition: all 0.4s;
    position: relative;
    z-index: 1;
}

.contact-card:hover .contact-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-color: var(--primary-color);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 5px 20px rgba(99, 102, 241, 0.5);
}

.contact-card strong {
    display: block;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    transition: color 0.3s;
    position: relative;
    z-index: 1;
}

.contact-card:hover strong {
    color: var(--text-primary);
}

.contact-card p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    position: relative;
    z-index: 1;
    transition: color 0.3s;
}

.contact-card:hover p {
    color: var(--text-primary);
}

.contact-card a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-card a:hover {
    color: var(--primary-color);
}

.contact-form-card {
    background: rgba(30, 41, 59, 0.8);
    padding: 2.5rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-form-card h3 {
    margin-bottom: 2rem;
    color: var(--text-primary);
    font-size: 1.5rem;
}

.contact-form-card input,
.contact-form-card textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.contact-form-card input:focus,
.contact-form-card textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4);
}

/* 底部协议 */
.footer {
    background: #0a0e1a;
    padding: 2.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
    padding: 0.5rem 0;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    color: #cbd5e1;
    font-size: 0.9rem;
}

/* 图片模态框 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 10px;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: background 0.3s;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    transition: all 0.3s;
}

.back-to-top.visible {
    display: flex;
}

.back-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(15, 23, 42, 0.98);
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        transform: translateX(-100%);
        transition: transform 0.3s;
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-menu li {
        width: 100%;
        padding: 0.75rem 2rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-content {
        padding: 3rem 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .about-cards {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .screenshots-gallery {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1.5rem;
    }

    .screenshot-card {
        max-width: 100%;
    }

    .carousel-controls {
        padding: 0 1rem;
    }

    .carousel-prev,
    .carousel-next {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

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

    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

html {
    scroll-behavior: smooth;
}

/* 协议页面样式 */
.agreement-page {
    min-height: 100vh;
    padding: 100px 0 4rem;
    background: var(--dark-bg);
}

.agreement-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.agreement-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid rgba(99, 102, 241, 0.3);
}

.agreement-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.agreement-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.agreement-content {
    background: rgba(30, 41, 59, 0.8);
    padding: 3rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    line-height: 1.8;
}

.agreement-section {
    margin-bottom: 3rem;
}

.agreement-section:last-child {
    margin-bottom: 0;
}

.agreement-section h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.agreement-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.agreement-section h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
}

.agreement-section p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 1rem;
    text-align: justify;
}

.agreement-section ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.agreement-section li {
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
    line-height: 1.8;
}

.agreement-section strong {
    color: var(--primary-color);
    font-weight: 600;
}

.back-link {
    display: inline-block;
    margin-top: 3rem;
    padding: 0.8rem 2rem;
    background: rgba(99, 102, 241, 0.2);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 25px;
    border: 2px solid var(--primary-color);
    transition: all 0.3s;
    font-weight: 600;
}

.back-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(-5px);
    box-shadow: 0 5px 20px rgba(99, 102, 241, 0.4);
}

@media (max-width: 768px) {
    .agreement-page {
        padding: 80px 0 2rem;
    }
    
    .agreement-content {
        padding: 2rem 1.5rem;
    }
    
    .agreement-header h1 {
        font-size: 2rem;
    }
    
    .agreement-section h2 {
        font-size: 1.5rem;
    }
    
    .agreement-section h3 {
        font-size: 1.3rem;
    }
    
    .agreement-section h4 {
        font-size: 1.1rem;
    }
}
