/* 导入Inter字体 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.7;
    color: #1a1a1a;
    background: #fafafa;
    min-height: 100vh;
    letter-spacing: -0.01em;
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

/* 工具类 */
.hidden {
    display: none !important;
}

/* 头部样式 */
.header {
    position: relative;
    text-align: center;
    padding: 80px 0 60px;
    color: #1a1a1a;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
}

.logo-icon {
    font-size: 3.2rem;
    opacity: 0.9;
}

.header h1 {
    font-size: 4rem;
    font-weight: 600;
    margin: 0;
    letter-spacing: -0.02em;
}

.subtitle {
    font-size: 1.25rem;
    margin-bottom: 16px;
    opacity: 0.7;
    font-weight: 400;
}

.description {
    font-size: 1.1rem;
    opacity: 0.6;
    max-width: 520px;
    margin: 0 auto 48px;
    font-weight: 400;
}

/* 作者徽章 */
.author-badge {
    position: absolute;
    top: 24px;
    right: 24px;
    z-index: 100;
}

.author-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(26, 26, 26, 0.05);
    border: 1px solid rgba(26, 26, 26, 0.1);
    border-radius: 24px;
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.author-link:hover {
    background: rgba(26, 26, 26, 0.1);
    border-color: rgba(26, 26, 26, 0.2);
    transform: translateY(-1px);
}

.author-icon {
    font-size: 1.1rem;
    opacity: 0.8;
}


/* 主内容区域 */
.main {
    background: white;
    border-radius: 24px;
    padding: 48px;
    margin-bottom: 80px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03), 0 4px 12px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* 生成器部分 */
.generator-section {
    margin-bottom: 30px;
}

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

.input-label {
    display: block;
    margin-bottom: 10px;
}

.label-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    display: block;
}

.label-hint {
    font-size: 0.9rem;
    color: #666;
    margin-top: 5px;
    display: block;
}

.input-container {
    display: flex;
    gap: 15px;
    align-items: stretch;
}

.url-input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.url-input:focus {
    outline: none;
    border-color: #1a1a1a;
    background: white;
    box-shadow: 0 0 0 1px #1a1a1a;
}

.generate-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 28px;
    background: #1a1a1a;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.generate-btn:hover {
    background: #2a2a2a;
    transform: translateY(-1px);
}

.generate-btn:active {
    transform: translateY(0);
}

.generate-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* 选项组 */
.options-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.checkbox {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 1.5px solid #d1d5db;
    border-radius: 4px;
    position: relative;
    transition: all 0.2s ease;
}

.checkmark::after {
    content: '✓';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0);
    color: white;
    font-weight: bold;
    font-size: 0.8rem;
    transition: all 0.2s ease;
}

.checkbox:checked + .checkmark {
    background: #1a1a1a;
    border-color: #1a1a1a;
}

.checkbox:checked + .checkmark::after {
    transform: translate(-50%, -50%) scale(1);
}

/* 加载状态 */
.loading-section {
    text-align: center;
    padding: 80px 0;
}

.loading-spinner {
    width: 32px;
    height: 32px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #1a1a1a;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 24px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    font-size: 1.1rem;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.loading-hint {
    color: #6b7280;
    font-size: 0.95rem;
}

/* 结果部分 */
.result-section {
    border-top: 2px solid #f0f0f0;
    padding-top: 30px;
}

.result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.result-title {
    color: #2d7d32;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.result-title::before {
    content: '✅';
}

.site-info {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.site-type {
    background: #e3f2fd;
    color: #1976d2;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.article-count {
    background: #f3e5f5;
    color: #7b1fa2;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* RSS输出 */
.rss-output {
    margin-bottom: 30px;
}

.output-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.output-label {
    font-weight: 600;
    color: #333;
}

.copy-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.copy-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.output-container {
    position: relative;
}

.rss-url {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    background: #f8f9fa;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.9rem;
    color: #495057;
}

/* 操作按钮 */
.actions {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.action-btn.primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.action-btn.secondary {
    background: #f8f9fa;
    color: #495057;
    border: 2px solid #e9ecef;
}

.action-btn:hover {
    transform: translateY(-2px);
}

.action-btn.primary:hover {
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.action-btn.secondary:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

/* 一键订阅按钮 */
.subscribe-actions {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 2px solid #f0f0f0;
}

.subscribe-title {
    margin-bottom: 20px;
    color: #333;
    font-size: 1.1rem;
    text-align: center;
}

.subscribe-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.subscribe-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: white;
    position: relative;
    overflow: hidden;
}

.subscribe-btn.folo {
    background: linear-gradient(135deg, #667eea, #764ba2);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.subscribe-btn.reeder {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    box-shadow: 0 4px 15px rgba(238, 90, 82, 0.3);
}

.subscribe-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.subscribe-btn.folo:hover {
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.subscribe-btn.reeder:hover {
    box-shadow: 0 8px 25px rgba(238, 90, 82, 0.4);
}

.subscribe-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.subscribe-btn:hover::before {
    left: 100%;
}

/* 使用指南 */
.usage-guide {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    border-left: 4px solid #667eea;
}

.guide-title {
    margin-bottom: 25px;
    color: #333;
    font-size: 1.3rem;
}

.guide-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.guide-section {
    background: white;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.guide-subtitle {
    margin-bottom: 15px;
    color: #495057;
    font-size: 1rem;
    font-weight: 600;
}

/* 推荐应用区域 */
.recommended-apps {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.app-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.app-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.app-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.app-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.app-info strong {
    color: #333;
    font-size: 1rem;
}

.app-desc {
    color: #666;
    font-size: 0.85rem;
}

/* 手动步骤区域 */
.guide-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.guide-step {
    display: flex;
    align-items: center;
    gap: 15px;
}

.step-number {
    width: 32px;
    height: 32px;
    background: #667eea;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.step-text {
    color: #555;
    font-size: 0.95rem;
}

/* 其他应用标签 */
.other-apps {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.app-tag {
    padding: 6px 12px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.app-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* 错误部分 */
.error-section {
    text-align: center;
    padding: 40px 0;
    border-top: 2px solid #f0f0f0;
}

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

.error-title {
    color: #d32f2f;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.error-message {
    color: #666;
    margin-bottom: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.error-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.retry-btn, .report-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.retry-btn {
    background: #667eea;
    color: white;
}

.report-btn {
    background: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
}

.retry-btn:hover, .report-btn:hover {
    transform: translateY(-2px);
}


/* 使用示例 */
.examples {
    margin-bottom: 60px;
    padding: 60px 40px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.examples-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 50px;
    color: #333;
}

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

.example-card {
    padding: 30px;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.example-card:hover {
    border-color: #667eea;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(102, 126, 234, 0.1);
}

.example-type {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #667eea;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.example-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #333;
}

.example-url {
    color: #667eea;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.example-desc {
    color: #666;
    line-height: 1.6;
}

/* 页脚 */
.footer {
    background: white;
    border-radius: 24px 24px 0 0;
    padding: 48px 48px 32px;
    margin-top: 80px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: none;
}

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

.footer-section h4 {
    font-size: 1.1rem;
    margin-bottom: 16px;
    color: #1a1a1a;
    font-weight: 600;
}

.footer-section p {
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.6;
    font-size: 0.95rem;
}

.social-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.social-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.social-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}



.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    color: #6b7280;
    font-size: 0.9rem;
}

/* Toast通知 */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #323232;
    color: white;
    padding: 16px 24px;
    border-radius: 8px;
    z-index: 1000;
    transform: translateX(100%);
    transition: all 0.3s ease;
    max-width: 300px;
}

.toast.show {
    transform: translateX(0);
}

.toast-message {
    font-size: 0.9rem;
    line-height: 1.4;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .header {
        padding: 40px 0 30px;
    }
    
    .header h1 {
        font-size: 2.5rem;
    }
    
    .author-badge {
        position: static;
        display: flex;
        justify-content: center;
        margin-bottom: 20px;
    }
    
    .author-link {
        font-size: 0.85rem;
    }
    
    
    .main, .footer {
        padding: 32px 24px;
    }
    
    .input-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .generate-btn {
        justify-content: center;
    }
    
    .result-header {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    
    .actions {
        flex-direction: column;
    }
    
    .action-btn {
        justify-content: center;
    }
    
    .subscribe-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .subscribe-btn {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
    
    .guide-content {
        gap: 20px;
    }
    
    .guide-section {
        padding: 15px;
    }
    
    .recommended-apps {
        gap: 10px;
    }
    
    .app-item {
        padding: 10px;
    }
    
    .other-apps {
        justify-content: center;
    }
    
    .examples-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .error-actions, .actions {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 2rem;
    }
    
    .logo-icon {
        font-size: 2.5rem;
    }
    
    .main {
        padding: 24px 20px;
    }
    
    .example-card {
        padding: 24px;
    }
    
    
    .author-link {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}
