/* 苹果风格 CSS */
:root {
    --primary-color: #0071e3;
    --secondary-color: #86868b;
    --background-color: #f5f5f7;
    --surface-color: #ffffff;
    --text-primary: #1d1d1f;
    --text-secondary: #515154;
    --border-radius: 12px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro Icons', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: var(--background-color);
    color: var(--text-primary);
    line-height: 1.47059;
    font-weight: 400;
    letter-spacing: -0.022em;
    -webkit-font-smoothing: antialiased;
}

/* 导航栏 - 苹果风格 */
header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 20px;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 44px;
}

.logo {
    font-size: 21px;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 32px;
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 17px;
    font-weight: 400;
    transition: var(--transition);
    position: relative;
}

nav a:hover {
    color: var(--primary-color);
}

nav a.active {
    color: var(--primary-color);
}

nav a.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
    border-radius: 1px;
}

/* 主要内容区域 */
main {
    margin-top: 44px;
    min-height: calc(100vh - 44px);
}

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

/* 英雄区域 */
.hero {
    text-align: center;
    padding: 120px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    margin-bottom: 80px;
}

.hero h1 {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.07143;
    letter-spacing: -0.005em;
    margin-bottom: 16px;
}

.hero p {
    font-size: 28px;
    line-height: 1.14286;
    font-weight: 400;
    letter-spacing: 0.007em;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* 卡片组件 */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin: 40px 0;
}

.card {
    background: var(--surface-color);
    border-radius: var(--border-radius);
    padding: 32px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.card h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.card p {
    color: var(--text-secondary);
    font-size: 17px;
    line-height: 1.47059;
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 980px;
    font-size: 17px;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    min-width: 120px;
}

.btn:hover {
    background: #0077ed;
    transform: scale(1.04);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-secondary:hover {
    background: rgba(0, 113, 227, 0.1);
}

/* 页脚 */
footer {
    background: var(--surface-color);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding: 40px 20px;
    text-align: center;
    color: var(--text-secondary);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

/* Giscus 评论区域 */
.giscus {
    background: var(--surface-color);
    border-radius: var(--border-radius);
    padding: 32px;
    margin: 40px 0;
    box-shadow: var(--shadow);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        height: auto;
        padding: 16px 0;
    }
    
    nav ul {
        gap: 20px;
        margin-top: 16px;
    }
    
    .hero h1 {
        font-size: 40px;
    }
    
    .hero p {
        font-size: 21px;
    }
    
    .container {
        padding: 40px 20px;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* 游戏信息页特定样式 */
.game-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.game-screenshot {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.info-list {
    list-style: none;
}

.info-list li {
    padding: 16px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
}

.info-list li:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: var(--text-primary);
}

.info-value {
    color: var(--text-secondary);
}

/* 下载页样式 */
.download-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin: 40px 0;
}

.download-card {
    background: var(--surface-color);
    border-radius: var(--border-radius);
    padding: 32px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.download-card:hover {
    transform: translateY(-4px);
}

.download-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

/* 交流平台样式 */
.platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin: 40px 0;
}

.platform-card {
    background: var(--surface-color);
    border-radius: var(--border-radius);
    padding: 32px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.platform-card:hover {
    transform: translateY(-4px);
}

/* 攻略页样式 */
.strategy-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.strategy-item {
    background: var(--surface-color);
    border-radius: var(--border-radius);
    padding: 24px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
}

.strategy-item:hover {
    transform: translateX(8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.strategy-meta {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 8px;
}