/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 基础样式 */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8fafc;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
.navbar {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.nav-brand h1 {
    color: #2563eb;
    font-size: 1.5rem;
    font-weight: 600;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #64748b;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #2563eb;
}

/* 主内容 */
.main-content {
    margin-top: 60px;
}

/* 解析区域 */
.parse-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.parse-card {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.parse-card h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* 平台选择器 */
.platform-selector {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.platform-btn {
    padding: 0.5rem 1rem;
    border: 2px solid rgba(255,255,255,0.3);
    background: transparent;
    color: white;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.platform-btn.active {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.5);
}

.platform-btn:hover {
    border-color: rgba(255,255,255,0.5);
}

/* 输入组 */
.input-group {
    display: flex;
    gap: 0.5rem;
    max-width: 500px;
    margin: 0 auto;
}

.link-input {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    background: rgba(255,255,255,0.95);
}

.link-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.3);
}

.parse-button {
    padding: 1rem 2rem;
    background: #10b981;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: background 0.3s;
}

.parse-button:hover {
    background: #059669;
}

/* 结果区域 */
.result-section {
    padding: 2rem 0;
    background: #fff;
}

.result-card {
    max-width: 500px;
    margin: 0 auto;
    padding: 2rem;
    background: #f8fafc;
    border-radius: 12px;
    text-align: center;
}

.result-card h3 {
    margin-bottom: 1.5rem;
    color: #1e293b;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
}

.file-icon {
    font-size: 2rem;
}

.file-details h4 {
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.file-details p {
    color: #64748b;
    font-size: 0.9rem;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.action-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.action-btn.primary {
    background: #2563eb;
    color: white;
}

.action-btn.primary:hover {
    background: #1d4ed8;
}

.action-btn.secondary {
    background: #e2e8f0;
    color: #475569;
}

.action-btn.secondary:hover {
    background: #cbd5e1;
}

/* 资源区域 */
.resources-section {
    padding: 4rem 0;
    background: #fff;
}

.resources-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #1e293b;
    font-size: 2rem;
}

.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.filter-group, .sort-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-group span, .sort-group span {
    color: #64748b;
    font-weight: 500;
}

.filter-btn, .sort-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #e2e8f0;
    background: white;
    color: #64748b;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.filter-btn.active, .sort-btn.active {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

.filter-btn:hover, .sort-btn:hover {
    border-color: #cbd5e1;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.resource-card {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 12px;
    transition: transform 0.3s;
    cursor: pointer;
}

.resource-card:hover {
    transform: translateY(-2px);
}

.resource-card h4 {
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.resource-card p {
    color: #64748b;
    font-size: 0.9rem;
}

/* 常见问题 */
.faq-section {
    padding: 4rem 0;
    background: #f8fafc;
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #1e293b;
    font-size: 2rem;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
}

.faq-toggle {
    font-size: 1.2rem;
    transition: transform 0.3s;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    color: #64748b;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

/* 客服区域 */
.contact-section {
    padding: 4rem 0;
    background: #fff;
}

.contact-card {
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.contact-card h2 {
    margin-bottom: 1rem;
    color: #1e293b;
}

.contact-card p {
    margin-bottom: 2rem;
    color: #64748b;
}

.contact-button {
    padding: 1rem 2rem;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.contact-button:hover {
    background: #1d4ed8;
}

/* 底部 */
.footer {
    background: #1e293b;
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.footer p {
    margin-bottom: 0.5rem;
}

.footer-link {
    color: #94a3b8;
    text-decoration: none;
}

.footer-link:hover {
    color: white;
}

/* ICP备案信息 */
.icp-info {
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.icp-link {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s;
}

.icp-link:hover {
    color: #60a5fa;
    text-decoration: underline;
}

/* ICP备案信息 */
.icp-info {
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.icp-link {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s;
}

.icp-link:hover {
    color: #60a5fa;
    text-decoration: underline;
}

/* 弹窗 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-content {
    background: white;
    border-radius: 12px;
    max-width: 400px;
    width: 90%;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: #1e293b;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #64748b;
}

.modal-body {
    padding: 1.5rem;
}

.modal-body p {
    margin-bottom: 1rem;
    color: #475569;
}

/* 工具类 */
.hidden {
    display: none !important;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        gap: 1rem;
    }
    
    .parse-card h2 {
        font-size: 2rem;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .filter-bar {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .resources-grid {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
    }
}