/* 全局样式 */
:root {
    --primary-color: #24292e;
    --secondary-color: #2ea44f;
    --accent-color: #f6f8fa;
    --border-color: #e1e4e8;
    --text-color: #24292e;
    --text-secondary: #586069;
    --background-color: #ffffff;
    --card-background: #fafbfc;
    --danger-color: #d73a49;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --transition: all 0.3s cubic-bezier(.25,.8,.25,1);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

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

/* 导航栏 */
.navbar {
    background-color: var(--primary-color);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

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

.logo h1 {
    font-size: 24px;
    font-weight: 600;
}

.logo a {
    color: #ffffff;
    text-decoration: none;
}

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

nav ul li {
    margin-left: 24px;
}

nav ul li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

nav ul li a i {
    margin-right: 6px;
}

nav ul li a:hover {
    color: #f6f8fa;
    text-decoration: underline;
}

/* 英雄区域 */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #17141d 100%);
    color: #ffffff;
    padding: 100px 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 64px;
    font-weight: 700;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content h1 i {
    margin-right: 16px;
}

.hero-content p {
    font-size: 20px;
    max-width: 700px;
    margin: 0 auto 32px;
    color: #e1e4e8;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.primary-btn:hover {
    background-color: #22863a;
    border-color: #22863a;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.secondary-btn {
    background-color: transparent;
    color: #ffffff;
    border: 1px solid #e1e4e8;
}

.secondary-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn i {
    margin-right: 8px;
}

/* 部分通用样式 */
section {
    padding: 80px 0;
}

section h2 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 16px;
}

section h2 i {
    margin-right: 12px;
    color: var(--primary-color);
}

/* 项目介绍 */
.overview-section {
    background-color: var(--accent-color);
}

.card {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 32px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card p {
    margin-bottom: 24px;
    font-size: 16px;
    line-height: 1.7;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.feature {
    background-color: var(--card-background);
    padding: 24px;
    border-radius: 6px;
    text-align: center;
    transition: var(--transition);
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature i {
    font-size: 36px;
    margin-bottom: 16px;
    color: var(--secondary-color);
}

.feature h3 {
    font-size: 18px;
    margin-bottom: 12px;
}

.feature p {
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* 文件列表 */
.files-section {
    background-color: #ffffff;
}

.file-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100%, 1fr));
    gap: 24px;
}

.file-card {
    background-color: var(--card-background);
    border-radius: 6px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition);
}

.file-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.file-header {
    display: flex;
    align-items: center;
    padding: 20px;
    gap: 16px;
}

.file-icon {
    font-size: 32px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.file-info {
    flex-grow: 1;
}

.file-info h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.file-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: var(--text-secondary);
}

.file-meta i {
    margin-right: 6px;
}

.file-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.download-btn {
    background-color: var(--secondary-color);
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    text-decoration: none;
}

.download-btn:hover {
    background-color: #22863a;
}

.sha256-btn {
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.sha256-btn:hover {
    background-color: var(--accent-color);
}

.file-actions i {
    margin-right: 6px;
}

.sha256-container {
    background-color: var(--accent-color);
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
}

.copy-btn {
    background-color: transparent;
    border: 1px solid var(--border-color);
    padding: 4px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition);
}

.copy-btn:hover {
    background-color: #ffffff;
}

.no-files {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
    font-size: 16px;
    background-color: var(--accent-color);
    border-radius: 6px;
}

/* 页脚 */
.footer {
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 60px 0 30px;
}

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

.footer-logo h2 {
    font-size: 24px;
    margin-bottom: 12px;
    border: none;
    padding: 0;
    display: block;
}

.footer-logo p {
    color: #e1e4e8;
    font-size: 14px;
}

.footer-links h3 {
    font-size: 16px;
    margin-bottom: 16px;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 8px;
}

.footer-links ul li a {
    color: #e1e4e8;
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-info h3 {
    font-size: 16px;
    margin-bottom: 16px;
}

.footer-info p {
    color: #e1e4e8;
    font-size: 14px;
    line-height: 1.6;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    color: #e1e4e8;
}

/* 通知弹出框 */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 16px 24px;
    border-radius: 6px;
    box-shadow: var(--shadow-lg);
    z-index: 1001;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
}

.notification.show {
    opacity: 1;
    transform: translateY(0);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        align-items: flex-start;
    }

    nav ul {
        margin-top: 16px;
        flex-wrap: wrap;
    }

    nav ul li {
        margin-left: 0;
        margin-right: 16px;
        margin-bottom: 8px;
    }

    .hero-content h1 {
        font-size: 48px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 200px;
    }

    .file-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .file-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .sha256-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .copy-btn {
        align-self: flex-end;
    }
}

@media (max-width: 480px) {
    section {
        padding: 60px 0;
    }

    .hero-content h1 {
        font-size: 36px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .card {
        padding: 24px;
    }

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

    .file-header {
        padding: 16px;
    }

    .sha256-container {
        padding: 12px 16px;
    }
}

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

.file-card,
.feature,
.card {
    animation: fadeIn 0.5s ease-out;
}

.file-card:nth-child(2) {
    animation-delay: 0.1s;
}

.file-card:nth-child(3) {
    animation-delay: 0.2s;
}

/* 开发者名单样式 */
.developers-section {
    background-color: var(--accent-color);
    padding: 80px 0;
}

.developers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 32px;
}

.developer-card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    text-align: center;
}

.developer-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.developer-photo {
    padding: 20px;
    background-color: var(--card-background);
    display: flex;
    justify-content: center;
    align-items: center;
}

.developer-photo img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #ffffff;
    box-shadow: var(--shadow-sm);
}

.developer-info {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.developer-info h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.developer-role {
    font-size: 14px;
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.developer-role i {
    margin-right: 6px;
}

.developer-info p:last-child {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 0;
}

/* 开发者名单响应式设计 */
@media (max-width: 768px) {
    .developers-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 24px;
    }
    
    .developer-photo img {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 480px) {
    .developers-section {
        padding: 60px 0;
    }
    
    .developers-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .developer-info {
        padding: 20px;
    }
}

/* 开发者卡片动画 */
.developer-card {
    animation: fadeIn 0.5s ease-out;
}

.developer-card:nth-child(1) {
    animation-delay: 0.1s;
}

.developer-card:nth-child(2) {
    animation-delay: 0.2s;
}

.developer-card:nth-child(3) {
    animation-delay: 0.3s;
}

.developer-card:nth-child(4) {
    animation-delay: 0.4s;
}