/* 甜心选择2 Honey Select 2 - 3D风格响应式样式文件 */

/* CSS Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 3D科技风主色调 */
    --primary-color: #4a90e2;
    --secondary-color: #357abd;
    --accent-color: #6fa8dc;
    --background-color: #f8fafc;
    --dark-bg: #1a202c;
    --text-primary: #2d3748;
    --text-secondary: #4a5568;
    --text-light: #718096;
    --white: #ffffff;
    --shadow: rgba(74, 144, 226, 0.1);
    --shadow-hover: rgba(74, 144, 226, 0.2);
    --shadow-dark: rgba(0, 0, 0, 0.1);

    /* 渐变色 - 3D科技感 */
    --gradient-primary: linear-gradient(135deg, #4a90e2, #357abd);
    --gradient-secondary: linear-gradient(135deg, #6fa8dc, #4a90e2);
    --gradient-background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    --gradient-dark: linear-gradient(135deg, #1a202c, #2d3748);

    /* 字体 */
    --font-primary: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Segoe UI", Arial, sans-serif;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-bold: 700;

    /* 边距和尺寸 */
    --border-radius: 12px;
    --border-radius-small: 6px;
    --border-radius-large: 20px;
    --container-max-width: 1200px;
    --navbar-height: 70px;

    /* 动画 */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* 3D效果参数 */
    --shadow-3d: 0 4px 15px rgba(74, 144, 226, 0.2), 0 1px 6px rgba(0, 0, 0, 0.1);
    --shadow-3d-hover: 0 8px 25px rgba(74, 144, 226, 0.3), 0 3px 10px rgba(0, 0, 0, 0.15);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    font-weight: var(--font-weight-normal);
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--gradient-background);
    overflow-x: hidden;
}

/* 容器样式 */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* 加载屏幕 */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity var(--transition-slow);
}

.loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-content {
    text-align: center;
    color: var(--white);
}

.loading-logo img {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    animation: float3d 2s ease-in-out infinite;
}

.loading-text {
    font-size: 18px;
    font-weight: var(--font-weight-medium);
}

@keyframes float3d {

    0%,
    100% {
        transform: translateY(0) rotateY(0deg);
    }

    50% {
        transform: translateY(-10px) rotateY(180deg);
    }
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--navbar-height);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(74, 144, 226, 0.1);
    z-index: 1000;
    transition: all var(--transition-normal);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-3d);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: var(--font-weight-bold);
    color: var(--primary-color);
    text-decoration: none;
}

.nav-logo img {
    width: 40px;
    height: 40px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
    padding: 5px 0;
    position: relative;
    transition: color var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-normal);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* 移动端汉堡菜单 */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: all var(--transition-normal);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* 英雄区域 */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    z-index: -2;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.15) 2px, transparent 2px),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 80px 80px, 60px 60px, 100px 100px;
    animation: float3dParticles 25s ease-in-out infinite;
    z-index: -1;
}

@keyframes float3dParticles {

    0%,
    100% {
        transform: translateY(0px) rotateX(0deg);
    }

    33% {
        transform: translateY(-20px) rotateX(5deg);
    }

    66% {
        transform: translateY(-10px) rotateX(-5deg);
    }
}

.hero-content {
    color: var(--white);
    max-width: 800px;
    padding: 0 20px;
    animation: fadeInUp3d 1s ease-out;
}

@keyframes fadeInUp3d {
    from {
        opacity: 0;
        transform: translateY(50px) rotateX(10deg);
    }

    to {
        opacity: 1;
        transform: translateY(0) rotateX(0deg);
    }
}

.hero-title {
    font-size: 4rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    background: linear-gradient(45deg, #ffffff, #e2e8f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.8rem;
    font-weight: var(--font-weight-medium);
    margin-bottom: 15px;
    opacity: 0.9;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.8;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 60px;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
    font-size: 1.1rem;
    transition: all var(--transition-normal);
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--white);
    color: var(--primary-color);
    box-shadow: var(--shadow-3d);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-3d-hover);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.download-icon,
.arrow-up {
    width: 16px;
    height: 16px;
    background: currentColor;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z'/%3E%3C/svg%3E") no-repeat center;
    mask-size: contain;
}

.arrow-up {
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z'/%3E%3C/svg%3E") no-repeat center;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.stat-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* 章节样式 */
section {
    padding: 80px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin-bottom: 15px;
    position: relative;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

/* 关于游戏区域 */
.about {
    background: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.game-info {
    margin-top: 30px;
    background: var(--background-color);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-dark);
}

.info-item {
    padding: 10px 0;
    border-bottom: 1px solid #e2e8f0;
    font-size: 1rem;
    color: var(--text-secondary);
}

.info-item:last-child {
    border-bottom: none;
}

.info-item strong {
    color: var(--text-primary);
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-3d);
    transition: transform var(--transition-normal);
}

.about-image img:hover {
    transform: scale(1.02) rotateY(5deg);
}

/* 游戏特色 */
.features {
    background: var(--background-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--border-radius-large);
    text-align: center;
    box-shadow: var(--shadow-3d);
    transition: all var(--transition-normal);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(74, 144, 226, 0.1), transparent);
    transition: left 0.6s;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-8px) rotateX(5deg);
    box-shadow: var(--shadow-3d-hover);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.feature-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: var(--font-weight-bold);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* 游戏截图 */
.gallery {
    background: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-3d);
    transition: transform var(--transition-normal);
}

.gallery-item:hover {
    transform: scale(1.05) rotateY(5deg);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* 系统要求 */
.system-requirements {
    background: var(--gradient-background);
}

.requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.requirement-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-3d);
    position: relative;
    transition: transform var(--transition-normal);
}

.requirement-card:hover {
    transform: translateY(-5px);
}

.requirement-card.recommended {
    background: var(--gradient-secondary);
    color: var(--white);
    transform: scale(1.02);
}

.requirement-card.recommended::before {
    content: "推荐";
    position: absolute;
    top: -10px;
    right: 20px;
    background: var(--primary-color);
    color: var(--white);
    padding: 5px 15px;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    font-weight: var(--font-weight-medium);
    box-shadow: var(--shadow-3d);
}

.requirement-card h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: var(--primary-color);
}

.requirement-card.recommended h3 {
    color: var(--white);
}

.requirement-card ul {
    list-style: none;
}

.requirement-card li {
    padding: 10px 0;
    border-bottom: 1px solid #e2e8f0;
    font-size: 1rem;
}

.requirement-card.recommended li {
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.requirement-card li:last-child {
    border-bottom: none;
}

/* 更新日志 */
.update-log {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-3d);
    margin-top: 40px;
}

.update-log h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
}

.log-item {
    margin-bottom: 30px;
    padding: 25px;
    background: var(--background-color);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

.log-item h4 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.log-item ul {
    list-style: none;
    padding-left: 0;
}

.log-item li {
    padding: 5px 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 20px;
}

.log-item li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 0.8rem;
}

/* 下载区域 */
.download {
    background: var(--gradient-primary);
    color: var(--white);
    text-align: center;
}

.download-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: var(--font-weight-bold);
}

.download-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.download-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.download-stats {
    display: flex;
    gap: 60px;
}

.download-stats .stat {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.download-stats .stat-number {
    display: block;
    font-size: 2rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: 5px;
}

.download-stats .stat-label {
    font-size: 1rem;
    opacity: 0.8;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: var(--white);
    color: var(--primary-color);
    padding: 20px 40px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: var(--font-weight-bold);
    box-shadow: var(--shadow-3d);
    transition: all var(--transition-normal);
}

.download-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-3d-hover);
}

.download-note {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-top: 20px;
}

/* 页脚 */
.footer {
    background: var(--dark-bg);
    color: var(--white);
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 40px;
    align-items: center;
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: var(--font-weight-bold);
}

.footer-logo img {
    width: 30px;
    height: 30px;
}

.footer-info {
    font-size: 0.9rem;
    opacity: 0.8;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.8;
    transition: opacity var(--transition-fast);
}

.footer-links a:hover {
    opacity: 1;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-3d);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-2px) scale(1.1);
    box-shadow: var(--shadow-3d-hover);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .requirements-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    :root {
        --navbar-height: 60px;
    }

    .nav-menu {
        position: fixed;
        top: var(--navbar-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--navbar-height));
        background: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 50px;
        transition: left var(--transition-normal);
        box-shadow: var(--shadow-3d);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 20px 0;
    }

    .nav-link {
        font-size: 1.2rem;
    }

    .hamburger {
        display: flex;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.4rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .requirements-grid {
        grid-template-columns: 1fr;
    }

    .download-stats {
        flex-direction: column;
        gap: 20px;
    }

    .download-info {
        gap: 30px;
    }

    .footer-links {
        flex-direction: column;
        gap: 10px;
    }

    .container {
        padding: 0 15px;
    }

    section {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .btn-primary,
    .btn-secondary {
        padding: 12px 25px;
        font-size: 1rem;
    }

    .feature-card {
        padding: 30px 20px;
    }

    .requirement-card {
        padding: 30px 20px;
    }

    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
}

/* 辅助功能 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* 打印样式 */
@media print {

    .navbar,
    .back-to-top,
    .download {
        display: none;
    }

    body {
        background: white;
    }

    section {
        page-break-inside: avoid;
        padding: 20px 0;
    }
}

/* 高对比度模式 */
@media (prefers-contrast: high) {
    :root {
        --shadow: rgba(0, 0, 0, 0.3);
        --shadow-hover: rgba(0, 0, 0, 0.4);
        --shadow-3d: 0 4px 15px rgba(0, 0, 0, 0.3), 0 1px 6px rgba(0, 0, 0, 0.2);
        --shadow-3d-hover: 0 8px 25px rgba(0, 0, 0, 0.4), 0 3px 10px rgba(0, 0, 0, 0.25);
    }

    .feature-card,
    .requirement-card,
    .gallery-item {
        border: 2px solid var(--text-primary);
    }
}