/* ===================================
   91网 - 主样式文件
   =================================== */

/* CSS Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary: #1a56db;
    --primary-dark: #1341b0;
    --primary-light: #e8f0fe;
    --secondary: #f97316;
    --text-dark: #1a202c;
    --text-mid: #4a5568;
    --text-light: #718096;
    --bg-white: #ffffff;
    --bg-light: #f7f9fc;
    --bg-blue: #1a56db;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --radius: 8px;
    --radius-lg: 16px;
    --transition: 0.3s ease;
    --font: 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', sans-serif;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font);
    color: var(--text-dark);
    background: var(--bg-white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

ul {
    list-style: none;
}

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

.section {
    padding: 80px 0;
}

.bg-light {
    background: var(--bg-light);
}

.bg-blue {
    background: var(--bg-blue);
    color: #fff;
}

/* ===================================
   按钮样式
   =================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    border: 2px solid transparent;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26,86,219,0.3);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

.btn-white {
    background: #fff;
    color: var(--primary);
    border-color: #fff;
    font-weight: 700;
}

.btn-white:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
}

/* ===================================
   Section 头部
   =================================== */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header.light .section-title,
.section-header.light .section-desc {
    color: #fff;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
    line-height: 1.3;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-mid);
    max-width: 600px;
    margin: 0 auto;
}

.section-more {
    text-align: center;
    margin-top: 40px;
}

/* ===================================
   顶部导航
   =================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
}

.logo-icon {
    background: var(--primary);
    color: #fff;
    font-size: 1.3rem;
    font-weight: 900;
    padding: 4px 10px;
    border-radius: 6px;
    letter-spacing: -1px;
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-dark);
}

.main-nav ul {
    display: flex;
    gap: 4px;
}

.main-nav a {
    display: block;
    padding: 6px 12px;
    color: var(--text-mid);
    font-size: 14px;
    border-radius: 6px;
    transition: all var(--transition);
}

.main-nav a:hover {
    color: var(--primary);
    background: var(--primary-light);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: all var(--transition);
}

/* 搜索框 */
.search-bar-wrapper {
    background: var(--bg-light);
    border-top: 1px solid var(--border);
    padding: 10px 0;
}

.search-form {
    display: flex;
    gap: 8px;
    max-width: 700px;
}

.search-input {
    flex: 1;
    padding: 10px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: var(--font);
    outline: none;
    transition: border-color var(--transition);
    background: #fff;
}

.search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26,86,219,0.1);
}

.search-btn {
    padding: 10px 24px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font);
    transition: background var(--transition);
}

.search-btn:hover {
    background: var(--primary-dark);
}

.search-tips {
    margin-top: 8px;
    font-size: 13px;
    color: var(--text-light);
}

.search-tips a {
    color: var(--text-mid);
    margin: 0 6px;
    font-size: 13px;
}

.search-tips a:hover {
    color: var(--primary);
}

/* ===================================
   首屏 Hero
   =================================== */
.hero-section {
    position: relative;
    min-height: 560px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15,30,80,0.82) 0%, rgba(26,86,219,0.65) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    color: #fff;
    max-width: 700px;
    padding: 60px 0;
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    padding: 5px 16px;
    border-radius: 20px;
    font-size: 13px;
    margin-bottom: 18px;
    backdrop-filter: blur(4px);
}

.hero-title {
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 16px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 28px;
    line-height: 1.7;
}

.hero-stats {
    display: flex;
    gap: 32px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-item strong {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
}

.stat-item span {
    font-size: 13px;
    opacity: 0.8;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.hero-domain-tip {
    font-size: 13px;
    opacity: 0.75;
}

/* ===================================
   功能卡片
   =================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
}

.feature-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition), box-shadow var(--transition);
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.feature-img-wrap {
    height: 200px;
    overflow: hidden;
}

.feature-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.feature-card:hover .feature-img-wrap img {
    transform: scale(1.05);
}

.feature-body {
    padding: 24px;
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.feature-body h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.feature-body p {
    font-size: 14px;
    color: var(--text-mid);
    line-height: 1.7;
    margin-bottom: 16px;
}

.feature-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
}

.feature-link:hover {
    color: var(--primary-dark);
}

/* ===================================
   适用场景
   =================================== */
.scenarios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.scenario-card {
    background: #fff;
    padding: 28px 20px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    border: 1px solid var(--border);
}

.scenario-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
    transform: translateY(-4px);
}

.scenario-icon {
    font-size: 2.5rem;
    margin-bottom: 14px;
}

.scenario-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.scenario-card p {
    font-size: 13.5px;
    color: var(--text-mid);
    line-height: 1.6;
}

/* ===================================
   视频卡片
   =================================== */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
}

.video-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition);
}

.video-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.video-thumb-wrap {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #000;
}

.video-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, opacity var(--transition);
}

.video-card:hover .video-thumb {
    transform: scale(1.05);
    opacity: 0.85;
}

.video-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition);
    background: rgba(0,0,0,0.3);
}

.video-card:hover .video-play-overlay {
    opacity: 1;
}

.play-btn-circle {
    width: 64px;
    height: 64px;
    background: rgba(26,86,219,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition);
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.play-btn-circle svg {
    margin-left: 4px;
}

.video-card:hover .play-btn-circle {
    transform: scale(1.1);
}

.video-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.75);
    color: #fff;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 4px;
}

.video-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: 600;
}

.video-info {
    padding: 18px 20px;
}

.video-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-dark);
    line-height: 1.4;
}

.video-desc {
    font-size: 13.5px;
    color: var(--text-mid);
    margin-bottom: 12px;
    line-height: 1.6;
}

.video-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.meta-item {
    font-size: 12px;
    color: var(--text-light);
}

/* ===================================
   使用教程步骤
   =================================== */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 28px;
    position: relative;
}

.step-card {
    background: #fff;
    padding: 32px 24px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    position: relative;
    transition: all var(--transition);
}

.step-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.step-num {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary-light);
    line-height: 1;
    margin-bottom: 16px;
    -webkit-text-stroke: 2px var(--primary);
}

.step-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.step-card p {
    font-size: 14px;
    color: var(--text-mid);
    line-height: 1.7;
}

/* ===================================
   更新日志
   =================================== */
.changelog-list {
    max-width: 800px;
    margin: 0 auto;
}

.changelog-item {
    display: flex;
    gap: 24px;
    padding: 28px 0;
    border-bottom: 1px solid var(--border);
}

.changelog-item:last-child {
    border-bottom: none;
}

.changelog-version {
    flex-shrink: 0;
    background: var(--primary);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    height: fit-content;
    margin-top: 4px;
}

.changelog-date {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.changelog-content h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.changelog-content p {
    font-size: 14px;
    color: var(--text-mid);
    margin-bottom: 10px;
    line-height: 1.7;
}

.changelog-content ul {
    list-style: disc;
    padding-left: 20px;
}

.changelog-content ul li {
    font-size: 13.5px;
    color: var(--text-mid);
    margin-bottom: 4px;
}

/* ===================================
   FAQ
   =================================== */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
    background: #fff;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    font-family: var(--font);
    text-align: left;
    transition: background var(--transition);
}

.faq-question:hover {
    background: var(--primary-light);
}

.faq-item.open .faq-question {
    background: var(--primary-light);
    color: var(--primary);
}

.faq-arrow {
    font-size: 12px;
    color: var(--text-light);
    flex-shrink: 0;
    margin-left: 12px;
    transition: transform var(--transition);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.faq-answer p {
    padding: 0 20px 18px;
    font-size: 14px;
    color: var(--text-mid);
    line-height: 1.8;
}

/* ===================================
   用户评价
   =================================== */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.review-card {
    background: #fff;
    padding: 28px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    transition: transform var(--transition);
}

.review-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.review-stars {
    color: #f59e0b;
    font-size: 1.1rem;
    margin-bottom: 14px;
    letter-spacing: 2px;
}

.review-text {
    font-size: 14px;
    color: var(--text-mid);
    line-height: 1.8;
    margin-bottom: 18px;
    font-style: italic;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.review-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    flex-shrink: 0;
}

.review-info strong {
    display: block;
    font-size: 14px;
    color: var(--text-dark);
}

.review-info span {
    font-size: 12px;
    color: var(--text-light);
}

/* ===================================
   联系我们
   =================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-item h4 {
    font-size: 15px;
    font-weight: 700;
    color: rgba(255,255,255,0.9);
    margin-bottom: 4px;
}

.contact-item p {
    font-size: 14px;
    color: rgba(255,255,255,0.75);
}

.contact-form-wrap {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 1px solid rgba(255,255,255,0.2);
}

.contact-form h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid rgba(255,255,255,0.3);
    border-radius: var(--radius);
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-size: 14px;
    font-family: var(--font);
    margin-bottom: 14px;
    outline: none;
    transition: border-color var(--transition);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255,255,255,0.6);
}

.contact-form select option {
    color: var(--text-dark);
    background: #fff;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: rgba(255,255,255,0.7);
}

.contact-form textarea {
    resize: vertical;
}

/* ===================================
   页脚
   =================================== */
.site-footer {
    background: #0f1b30;
    color: rgba(255,255,255,0.8);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 16px;
}

.footer-logo .logo-icon {
    background: var(--primary);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 900;
    padding: 3px 8px;
    border-radius: 5px;
}

.footer-logo .logo-text {
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
}

.footer-desc {
    font-size: 13.5px;
    line-height: 1.8;
    color: rgba(255,255,255,0.65);
    margin-bottom: 12px;
}

.footer-domain {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}

.domain-text {
    color: rgba(255,255,255,0.8);
}

.footer-col h4 {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a,
.footer-col ul li span {
    font-size: 13.5px;
    color: rgba(255,255,255,0.6);
    transition: color var(--transition);
}

.footer-col ul li a:hover {
    color: #fff;
}

.footer-bottom {
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: rgba(255,255,255,0.45);
}

/* ===================================
   内页通用样式
   =================================== */
.page-hero {
    background: linear-gradient(135deg, #1341b0 0%, #1a56db 100%);
    color: #fff;
    padding: 60px 0;
    text-align: center;
}

.page-hero h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.page-hero p {
    font-size: 1.05rem;
    opacity: 0.85;
    max-width: 600px;
    margin: 0 auto;
}

.breadcrumb {
    background: var(--bg-light);
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.breadcrumb-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    color: var(--text-light);
}

.breadcrumb-inner a {
    color: var(--text-mid);
}

.breadcrumb-inner a:hover {
    color: var(--primary);
}

.breadcrumb-inner span {
    color: var(--text-light);
}

/* ===================================
   响应式
   =================================== */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-stats {
        gap: 20px;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: var(--shadow-md);
        padding: 16px;
        z-index: 999;
    }

    .main-nav.open {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
    }

    .nav-toggle {
        display: flex;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .video-grid {
        grid-template-columns: 1fr;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 280px;
    }

    .changelog-item {
        flex-direction: column;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        min-height: 480px;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .scenarios-grid {
        grid-template-columns: 1fr 1fr;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }
}
