* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* 微信搜索提示栏 */
.wechat-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 0;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.wechat-banner .container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.wechat-tip {
    font-size: 14px;
    font-weight: 500;
}

.wechat-tip strong {
    color: #ffd700;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.wechat-btn {
    background: white;
    color: #667eea;
    padding: 6px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.wechat-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

/* 头部 */
.header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
}

.logo-icon {
    font-size: 28px;
}

.logo-text {
    color: #27ae60;
}

.login-link {
    color: #3498db;
    text-decoration: none;
    font-size: 14px;
}

.login-link:hover {
    text-decoration: underline;
}

/* 导航栏 */
.nav {
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.nav .container {
    display: flex;
    gap: 0;
    padding: 0;
}

.nav-item {
    padding: 12px 30px;
    text-decoration: none;
    color: #495057;
    font-size: 16px;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
    display: inline-block;
}

.nav-item:hover,
.nav-item.active {
    color: #3498db;
    border-bottom-color: #3498db;
    background: white;
}

.subtitle {
    background: #f8f9fa;
    padding: 10px 0;
    font-size: 13px;
    color: #6c757d;
    border-top: 1px solid #e9ecef;
}

/* 主内容区 */
.main-content {
    padding: 30px 0 50px;
    flex: 1;
}

.content-wrapper {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
}

/* 侧边栏 */
.sidebar {
    width: 200px;
    background: linear-gradient(180deg, #3498db 0%, #2980b9 100%);
    border-radius: 8px;
    padding: 20px 15px;
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.platform-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.platform-item {
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s;
}

.platform-item:hover {
    background: rgba(255,255,255,0.2);
}

/* 主内容区域 */
.main-section {
    flex: 1;
    max-width: 900px;
    width: 100%;
    background: white;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    margin: 0 auto;
}

.section-title {
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 18px;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

.info-section {
    margin-bottom: 35px;
}

.info-section:last-of-type {
    margin-bottom: 0;
}

.info-list {
    padding-left: 22px;
    color: #555;
    line-height: 1.9;
    margin-top: 5px;
}

.info-list li {
    margin-bottom: 12px;
    padding-left: 5px;
}

/* 解析区域 */
.parse-section {
    margin: 35px 0;
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 10px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.input-group {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
    align-items: stretch;
}

.video-input {
    flex: 1;
    padding: 14px 18px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s;
    background: white;
}

.video-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52,152,219,0.1);
}

.video-input::placeholder {
    color: #adb5bd;
}

.parse-btn {
    padding: 14px 35px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(52,152,219,0.3);
    min-width: 120px;
}

.parse-btn:hover {
    background: linear-gradient(135deg, #2980b9 0%, #21618c 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52,152,219,0.4);
}

.parse-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(52,152,219,0.3);
}

.parse-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.personal-parse {
    text-align: center;
    padding-top: 8px;
}

.personal-link {
    display: inline-block;
    color: #6c757d;
    text-decoration: none;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.personal-link:hover {
    color: #3498db;
    background: rgba(52,152,219,0.05);
    border-color: rgba(52,152,219,0.2);
    text-decoration: none;
}

/* 结果区域 */
.result-section {
    margin: 35px 0;
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 10px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.result-success {
    background: white;
    padding: 25px;
    border-radius: 10px;
    border-left: 4px solid #27ae60;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.result-error {
    background: #fff3cd;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #ffc107;
    color: #856404;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.result-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.result-header h3 {
    color: #27ae60;
    margin-bottom: 8px;
    font-size: 20px;
    font-weight: 600;
}

.result-tips {
    color: #6c757d;
    font-size: 14px;
    line-height: 1.6;
}

.result-info {
    margin: 12px 0;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: flex-start;
}

.result-info:last-child {
    border-bottom: none;
}

.result-info strong {
    color: #2c3e50;
    margin-right: 12px;
    min-width: 60px;
    font-weight: 600;
}

.result-cover {
    margin: 25px 0;
    text-align: center;
}

.result-cover img {
    max-width: 100%;
    max-height: 400px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    object-fit: contain;
}

.result-video {
    margin: 25px 0;
    text-align: center;
}

.result-video video {
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    max-width: 100%;
    height: auto;
}

.result-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
    flex-wrap: wrap;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.download-btn,
.view-btn {
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s;
    display: inline-block;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    min-width: 140px;
    text-align: center;
}

.download-btn {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    color: white;
}

.download-btn:hover {
    background: linear-gradient(135deg, #229954 0%, #1e8449 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(39,174,96,0.4);
    color: white;
}

.view-btn {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
}

.view-btn:hover {
    background: linear-gradient(135deg, #2980b9 0%, #21618c 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52,152,219,0.4);
    color: white;
}

.result-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.result-image-item {
    text-align: center;
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

.result-image-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.result-image-item img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    object-fit: cover;
    max-height: 300px;
}

/* FAQ区域 */
.faq-section {
    margin-top: 45px;
    padding-top: 35px;
    border-top: 2px solid #e9ecef;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 20px;
}

.faq-item {
    background: #f8f9fa;
    padding: 22px 25px;
    border-radius: 10px;
    border-left: 4px solid #3498db;
    transition: all 0.3s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.faq-item:hover {
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: translateX(3px);
}

.faq-question {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 12px;
    font-size: 16px;
    line-height: 1.5;
}

.faq-answer {
    color: #555;
    line-height: 1.9;
    font-size: 14px;
}

.faq-answer a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: all 0.3s;
}

.faq-answer a:hover {
    color: #2980b9;
    border-bottom-color: #2980b9;
}

/* 页脚 */
.footer {
    background: #2c3e50;
    color: white;
    padding: 35px 0;
    text-align: center;
    margin-top: 50px;
    border-top: 3px solid #34495e;
}

.footer p {
    margin: 8px 0;
    font-size: 13px;
    color: #bdc3c7;
    line-height: 1.8;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .content-wrapper {
        flex-direction: column;
    }
    
    .main-section {
        padding: 25px 20px;
    }
    
    .parse-section {
        padding: 20px;
    }
    
    .result-section {
        padding: 20px;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .parse-btn {
        width: 100%;
    }
    
    .nav .container {
        overflow-x: auto;
        flex-wrap: nowrap;
    }
    
    .nav-item {
        white-space: nowrap;
        padding: 12px 20px;
    }
    
    .result-actions {
        flex-direction: column;
    }
    
    .download-btn,
    .view-btn {
        width: 100%;
        text-align: center;
    }
    
    .section-title {
        font-size: 18px;
    }
    
    .info-section {
        margin-bottom: 28px;
    }
}

@media (max-width: 480px) {
    .main-section {
        padding: 20px 15px;
        border-radius: 8px;
    }
    
    .parse-section {
        padding: 18px;
        margin: 25px 0;
    }
    
    .result-section {
        padding: 18px;
        margin: 25px 0;
    }
    
    .wechat-banner .container {
        flex-direction: column;
        gap: 10px;
    }
    
    .wechat-btn {
        width: 100%;
        text-align: center;
    }
    
    .section-title {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .info-list {
        padding-left: 18px;
    }
    
    .faq-item {
        padding: 18px 20px;
    }
    
    .result-success,
    .result-error {
        padding: 18px;
    }
}
