/* 官网框架样式 - AI科技风格 */

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

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    /* 更柔和的浅色背景，减轻视觉压力 */
    background: #f5f7fb;
    min-height: 100vh;
}

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

/* 导航样式已提取到 css/common/navigation.css */

/* ============================================
   2. 顶部分类导航栏
   ============================================ */
.category-nav {
    margin-top: 12px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-radius: 16px;
}

.category-nav-list {
    display: flex;
    align-items: center;
    justify-content: space-between;
    list-style: none;
    padding: 10px 8px;
    overflow-x: auto;
    gap: 4px;
}

.category-nav-item a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 14px;
    color: #555;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.category-nav-item a:hover {
    background: rgba(102, 126, 234, 0.12);
    color: #444;
}

.category-nav-item.active a {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(102, 126, 234, 0.45);
}

/* ============================================
   3. 品牌商家推荐专栏
   ============================================ */
.brand-section {
    padding: 28px 0 24px;
}

.brand-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 6px;
}

.section-subtitle {
    font-size: 0.95rem;
    color: #666;
    max-width: 520px;
}

.brand-title {
    margin-bottom: 6px;
}

.brand-subtitle {
    margin-bottom: 0;
}

.brand-more-link {
    /* 与数据列表中的“查看更多”按钮风格保持一致 */
    font-size: 0.82rem;
    color: #667eea;
    text-decoration: none;
    padding: 4px 12px;
    border-radius: 999px;
    border: 1px solid rgba(102, 126, 234, 0.3);
    background: rgba(102, 126, 234, 0.06);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.brand-more-link:hover {
    background: rgba(102, 126, 234, 0.16);
    border-color: rgba(102, 126, 234, 0.7);
    color: #667eea;
}

.brand-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.brand-card {
    display: flex;
    gap: 14px;
    padding: 16px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    text-decoration: none;
    color: inherit;
}

.brand-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
    border-color: rgba(102, 126, 234, 0.7);
}

.brand-logo {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 20px;
}

.brand-info {
    flex: 1;
}

.brand-name {
    font-size: 1rem;
    font-weight: 600;
    color: #222;
    margin-bottom: 4px;
}

.brand-tags {
    font-size: 0.86rem;
    color: #666;
    margin-bottom: 4px;
}

.brand-meta {
    font-size: 0.8rem;
    color: #999;
}

/* ============================================
   4. 子类目数据橱窗展示区
   ============================================ */
.subcategories-section {
    padding: 8px 0 40px;
}

.subcategory-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 22px;
}

.subcategory-window {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 18px;
    padding: 16px 16px 10px;
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

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

.subcategory-title {
    font-size: 1rem;
    font-weight: 600;
    color: #222;
}

.subcategory-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.subcategory-action-link {
    font-size: 0.82rem;
    color: #667eea;
    text-decoration: none;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(102, 126, 234, 0.3);
    background: rgba(102, 126, 234, 0.06);
    white-space: nowrap;
    transition: all 0.2s ease;
}

.subcategory-action-link:hover {
    background: rgba(102, 126, 234, 0.16);
    border-color: rgba(102, 126, 234, 0.7);
}

.subcategory-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.subcategory-item-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 6px 4px;
    border-radius: 8px;
    text-decoration: none;
    color: #444;
    font-size: 0.86rem;
    transition: background 0.16s ease, color 0.16s ease;
}

.subcategory-item-link:hover {
    background: rgba(102, 126, 234, 0.08);
    color: #222;
}

.subcategory-item-title {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.subcategory-item-paid-label {
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 500;
    white-space: nowrap;
    margin: 0 4px;
}

.subcategory-item-paid-label--paid {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.subcategory-item-paid-label--free {
    color: #27ae60;
    background: rgba(39, 174, 96, 0.1);
    border: 1px solid rgba(39, 174, 96, 0.3);
}

.subcategory-item-date {
    font-size: 0.78rem;
    color: #999;
    white-space: nowrap;
}

/* 广告 Banner */
.ad-banner {
    margin: 4px 0 22px;
    border-radius: 18px;
    /* 更浅、更柔和的背景，便于深色文字阅读 */
    background: linear-gradient(120deg, #f4f6ff, #e7ebff);
    border: 1px solid rgba(153, 167, 221, 0.4);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.ad-banner-content {
    padding: 16px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.ad-banner-content h3 {
    font-size: 1.08rem;
    font-weight: 600;
    color: #222;
    margin-bottom: 4px;
}

.ad-banner-content p {
    font-size: 0.9rem;
    color: #555;
    margin: 0;
}

.ad-banner-btn {
    padding: 8px 16px;
    border-radius: 999px;
    background: #fff;
    color: #667eea;
    font-size: 0.9rem;
    text-decoration: none;
    font-weight: 500;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
    white-space: nowrap;
    transition: all 0.2s ease;
}

.ad-banner-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}


/* ============================================
   4. 客户反馈区
   ============================================ */
.testimonials-section {
    padding: 80px 0;
    background: rgba(255, 255, 255, 0.05);
}

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

.testimonial-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.testimonial-content {
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

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

.author-info h4 {
    color: white;
    font-weight: 600;
    margin-bottom: 5px;
}

.author-info p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* ============================================
   5. 底部客户支持区
   ============================================ */
.site-footer {
    /* 更接近企业官网风格的浅灰底部区域 */
    background: #f0f1f5;
    padding: 56px 0 28px;
    border-top: 1px solid #e0e2ea;
}

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

.footer-section h3 {
    color: #333;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 14px;
}

.footer-section p,
.footer-section a {
    color: #666;
    text-decoration: none;
    line-height: 1.6;
    font-size: 0.88rem;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #333;
}

.footer-link {
    color: #667eea !important;
    font-weight: 500;
    text-decoration: underline;
}

.footer-link:hover {
    color: #764ba2 !important;
}

.footer-bottom {
    text-align: center;
    padding-top: 26px;
    border-top: 1px solid #e0e2ea;
    color: #999;
    font-size: 0.85rem;
}

.footer-bottom a {
    color: inherit;
    text-decoration: none;
}

.footer-bottom a:hover {
    color: inherit;
    text-decoration: underline;
}

/* ============================================
   文档中心页面样式
   ============================================ */
.docs-main {
    padding: 120px 0 80px;
    min-height: 100vh;
}

.docs-header {
    text-align: center;
    margin-bottom: 60px;
}

.docs-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
}

.docs-header p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto;
}

.docs-content {
    max-width: 1000px;
    margin: 0 auto;
}

.docs-section {
    margin-bottom: 60px;
}

.docs-section h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: white;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.docs-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.docs-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
}

.docs-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: white;
    margin-bottom: 15px;
}

.docs-card p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* ============================================
   登录和注册页面样式
   ============================================ */
.login-main,
.register-main {
    padding: 120px 0 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.login-container,
.register-container {
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
}

.login-card,
.register-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.login-header,
.register-header {
    text-align: center;
    margin-bottom: 40px;
}

/* ===== Register page sizing tweaks ===== */
.register-main { padding-top: 40px; }
.register-container { max-width: 560px; }
.register-card { padding: 18px 28px; }
.register-header { margin-bottom: 18px; }

/* 注册页消息提示在卡片正上方、居中显示 */
/* 采用绝对定位悬浮在卡片上方，不占据文档流高度 */
.register-container { position: relative; }
.register-main .login-message-area {
    position: absolute;
    top: -56px; /* 悬浮在卡片上方 */
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 560px;
    padding: 0;
    margin: 0;
    z-index: 10;
}

.login-header h1,
.register-header h1 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-header p,
.register-header p {
    color: #666;
    font-size: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

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

.form-group label {
    display: block;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group input::placeholder {
    color: #999;
}

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

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    color: #666;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #e1e5e9;
    border-radius: 4px;
    margin-right: 8px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: #667eea;
    border-color: #667eea;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.forgot-password,
.terms-link,
.privacy-link {
    color: #667eea;
    text-decoration: none;
    font-size: 0.9rem;
}

.forgot-password:hover,
.terms-link:hover,
.privacy-link:hover {
    text-decoration: underline;
}

.login-btn,
.register-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.login-btn:hover,
.register-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.login-divider,
.register-divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.login-divider::before,
.register-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e1e5e9;
}

.login-divider span,
.register-divider span {
    background: white;
    padding: 0 15px;
    color: #999;
    font-size: 0.9rem;
}

.social-login,
.social-register {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.social-btn {
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #333;
}

.social-btn:hover {
    border-color: #667eea;
    background: #f8f9ff;
}

.social-wechat:hover {
    border-color: #1aad19;
    background: #f0f9f0;
}

.social-qq:hover {
    border-color: #12b7f5;
    background: #f0f9ff;
}

.login-footer,
.register-footer {
    text-align: center;
    margin-top: 8px;
}

.login-footer p,
.register-footer p {
    color: #666;
    font-size: 0.9rem;
}

.login-footer a,
.register-footer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.login-footer a:hover,
.register-footer a:hover {
    text-decoration: underline;
}

/* ============================================
   响应式设计
   ============================================ */
@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .product-card,
    .testimonial-card {
        padding: 25px 20px;
    }
}
