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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

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

header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

header h1 {
    font-size: 2rem;
    font-weight: 700;
}

.lang-switch button {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 8px 16px;
    margin-left: 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-switch button:hover {
    background: rgba(255,255,255,0.3);
}

.lang-switch button.active {
    background: white;
    color: #667eea;
}

main {
    padding: 40px 0;
}

.download-section {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    margin-bottom: 40px;
}

.download-section h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #333;
}

#download-form {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

#m3u8-url {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

button[type="submit"] {
    background: #667eea;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease;
}

button[type="submit"]:hover {
    background: #5a6fd8;
}

.status {
    padding: 10px;
    border-radius: 4px;
    margin-top: 10px;
}

.status.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.features {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.features h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #333;
}

.features ul {
    list-style: none;
}

.features li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
}

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

.features li:before {
    content: "✓";
    color: #667eea;
    font-weight: bold;
    margin-right: 10px;
}

footer {
    background: #333;
    color: white;
    padding: 30px 0;
    margin-top: 40px;
}

.footer-links {
    margin-bottom: 20px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    margin-right: 20px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #667eea;
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 10px;
    }

    #download-form {
        flex-direction: column;
    }

    button[type="submit"] {
        width: 100%;
    }
}

/* 广告样式 */
.ad-container {
    margin: 30px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #e0e0e0;
}

.ad-container h3 {
    margin-bottom: 10px;
    color: #666;
}

/* 英雄区域 */
.hero-section {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.hero-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.hero-desc {
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.download-form-container {
    max-width: 800px;
    margin: 0 auto;
}

/* 核心功能 */
.core-features {
    margin-bottom: 60px;
}

.core-features h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
    color: #333;
}

.feature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #333;
}

.feature-card p {
    margin-bottom: 20px;
    color: #666;
}

.feature-list {
    margin-bottom: 20px;
    list-style: none;
}

.feature-list li {
    padding: 8px 0;
    color: #555;
}

.feature-testimonial {
    font-style: italic;
    color: #888;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

/* 为什么选择 clipward */
.why-choose {
    margin-bottom: 60px;
}

.why-choose h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
    color: #333;
}

.comparison-table {
    overflow-x: auto;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    padding: 20px;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.comparison-table th {
    background: #f9f9f9;
    font-weight: 600;
    color: #333;
}

.comparison-table tr:hover {
    background: #f9f9f9;
}

/* 三步使用 */
.usage-steps {
    margin-bottom: 60px;
}

.usage-steps h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
    color: #333;
}

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

.step {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
    position: relative;
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 20px;
}

.step p {
    font-size: 1.1rem;
    color: #555;
}

.usage-note {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-top: 20px;
}

/* 常见问题 */
.faq {
    margin-bottom: 60px;
}

.faq h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
    color: #333;
}

.faq-item {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.faq-item h3 {
    margin-bottom: 15px;
    color: #333;
    font-size: 1.2rem;
}

.faq-item p {
    margin-bottom: 15px;
    color: #666;
}

.faq-item ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.faq-item li {
    margin-bottom: 5px;
    color: #666;
}

/* 分享部分 */
.share-section {
    margin-bottom: 60px;
}

.share-section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
    color: #333;
}

.share-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.share-content h3 {
    margin-bottom: 15px;
    color: #333;
    font-size: 1.2rem;
}

.share-content p {
    margin-bottom: 20px;
    color: #666;
}

.share-link {
    font-weight: bold;
    color: #667eea;
    margin-bottom: 30px;
}

.share-content ul {
    margin-left: 20px;
}

.share-content li {
    margin-bottom: 10px;
    color: #666;
}

/* 页脚 */
.footer-content {
    text-align: center;
    padding: 20px 0;
}

.footer-links {
    margin: 15px 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links a,
.footer-links span {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #667eea;
}

.footer-content p {
    margin: 10px 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-section h2 {
        font-size: 2rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .core-features h2,
    .why-choose h2,
    .usage-steps h2,
    .faq h2,
    .share-section h2 {
        font-size: 1.5rem;
    }
    
    .feature-cards,
    .steps-container {
        grid-template-columns: 1fr;
    }
    
    .comparison-table {
        padding: 10px;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 10px;
        font-size: 0.9rem;
    }
}