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

/* 基础样式 */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

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

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e5e7eb;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo {
    width: 32px;
    height: 32px;
}

.nav-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    text-decoration: none;
    color: #6b7280;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #3b82f6;
}

.download-btn {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white !important;
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

/* 英雄区域 */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    overflow: hidden;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    animation: fadeInUp 0.8s ease-out;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #3b82f6;
    margin-bottom: 16px;
    font-weight: 600;
}

.hero-description {
    font-size: 1.125rem;
    color: #6b7280;
    margin-bottom: 40px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background: white;
    color: #3b82f6;
    border: 2px solid #3b82f6;
}

.btn-secondary:hover {
    background: #3b82f6;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.2);
}

/* 英雄区域模拟图 */
.hero-image {
    animation: fadeInRight 0.8s ease-out 0.2s both;
}

/* Hero Mockup - 手机界面样式 */
.hero-mockup {
    position: relative;
    max-width: 350px;
    margin: 0 auto;
}

.mockup-phone {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 25px;
    padding: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transform: perspective(1000px) rotateY(-15deg) rotateX(10deg);
    transition: transform 0.3s ease;
}

.mockup-phone:hover {
    transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
}

.phone-header {
    background: #667eea;
    color: white;
    padding: 12px 16px 8px;
    border-radius: 20px 20px 0 0;
    position: relative;
}

.phone-notch {
    position: absolute;
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 20px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 10px;
}

.phone-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    font-size: 0.9rem;
    font-weight: 600;
}

.status-icons svg {
    color: white;
}

.refresh-btn {
    background: rgba(253, 203, 110, 1);
    color: #1f2937;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 8px;
    display: inline-block;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.phone-content {
    background: #f8fafc;
    padding: 20px 16px;
    border-radius: 0 0 17px 17px;
    min-height: 400px;
}

.stats-section {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    text-align: center;
}

.stat-item {
    flex: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
}

.action-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.btn-download-all {
    flex: 1;
    background: #10b981;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

.btn-clear {
    flex: 1;
    background: transparent;
    color: #6b7280;
    border: 1px solid #d1d5db;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

.image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.image-item {
    background: white;
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cat-image {
    width: 100%;
    height: 120px;
    border-radius: 8px;
    margin-bottom: 8px;
    background-size: cover;
    background-position: center;
}

.cat-1 {
    background: linear-gradient(135deg, #8B4513 0%, #D2691E 50%, #F4A460 100%);
    position: relative;
}

.cat-1::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 20%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle at 30% 30%, #654321 20%, #8B4513 40%, #A0522D 60%);
    border-radius: 50% 50% 60% 40%;
}

.cat-1::after {
    content: '📷';
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 1.2rem;
}

.cat-2 {
    background: linear-gradient(135deg, #DEB887 0%, #F5DEB3 50%, #FFEFD5 100%);
    position: relative;
}

.cat-2::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 20%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle at 30% 30%, #CD853F 20%, #DEB887 40%, #F5DEB3 60%);
    border-radius: 50% 50% 60% 40%;
}

.cat-2::after {
    content: '📷';
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 1.2rem;
}

.image-size {
    font-size: 0.75rem;
    color: #6b7280;
    text-align: center;
}

/* 功能特色 */
.features {
    padding: 100px 0;
    background: white;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    color: #1f2937;
    margin-bottom: 60px;
}

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

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 16px;
}

.feature-card p {
    color: #6b7280;
    line-height: 1.6;
}

/* 使用说明 */
.usage {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.usage-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.step-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 12px;
}

.step-content p {
    color: #6b7280;
    line-height: 1.6;
}

/* 需求墙 */
.feature-wall {
    padding: 100px 0;
    background: white;
}

.section-subtitle {
    text-align: center;
    color: #6b7280;
    font-size: 1.125rem;
    margin-bottom: 60px;
}

.submit-request {
    background: #f8fafc;
    padding: 40px;
    border-radius: 16px;
    margin-bottom: 60px;
}

.submit-request h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 24px;
    text-align: center;
}

.request-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.requests-list h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 24px;
}

.requests-filter {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
}

.filter-btn {
    padding: 8px 16px;
    border: 2px solid #e5e7eb;
    background: white;
    color: #6b7280;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn.active,
.filter-btn:hover {
    border-color: #3b82f6;
    color: #3b82f6;
    background: #eff6ff;
}

.requests-container {
    display: grid;
    gap: 20px;
}

.request-item {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
}

.request-item:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.request-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.request-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}

.request-meta {
    font-size: 0.875rem;
    color: #6b7280;
}

.request-votes {
    display: flex;
    align-items: center;
    gap: 8px;
}

.vote-btn {
    background: #f3f4f6;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.vote-btn:hover {
    background: #3b82f6;
    color: white;
}

.vote-btn.voted {
    background: #3b82f6;
    color: white;
}

.request-description {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 12px;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #6b7280;
}

/* 下载区域 */
.download {
    padding: 100px 0;
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    color: white;
}

.download .section-title {
    color: white;
}

.download .section-subtitle {
    color: #d1d5db;
}

.download-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.download-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.download-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.browser-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.download-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.download-card p {
    color: #d1d5db;
    margin-bottom: 24px;
}

.download-card .download-btn {
    display: inline-block;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.download-card:hover .download-btn {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

/* 离线下载卡片特殊样式 */
.download-card.offline {
    cursor: pointer;
    position: relative;
}

.download-card.offline .file-info {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.download-card.offline .file-info small {
    display: block;
    color: #9ca3af;
    font-size: 0.875rem;
    margin-bottom: 4px;
}

.download-card.offline:hover .file-info small {
    color: #d1d5db;
}

/* 下载状态样式 */
.download-card.offline.downloading .download-btn {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    cursor: not-allowed;
}

.download-card.offline.downloading .browser-icon {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 页脚 */
.footer {
    background: #1f2937;
    color: white;
    padding: 60px 0 30px;
}

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

.footer-section h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-section p {
    color: #d1d5db;
    line-height: 1.6;
}

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

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

.footer-section ul li a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #3b82f6;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 30px;
    text-align: center;
    color: #9ca3af;
}

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

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

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .usage-steps {
        grid-template-columns: 1fr;
    }
    
    .download-buttons {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .requests-filter {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .submit-request {
        padding: 24px;
    }
    
    .request-item {
        padding: 20px;
    }
}