/* ========== 通用基础样式 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", Arial, sans-serif;
    background: #fff;
    min-height: 100vh;
}

/* ========== 顶部导航栏 ========== */
.site-nav {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: #ffffff80;
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #e5e7eb;
    z-index: 1000;
    height: 3.5rem;
}

.site-nav-inner {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.site-nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.site-nav-links a {
    color: #374151;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.site-nav-links a:hover {
    color: #9333ea;
}

.site-nav-links a.active {
    color: #9333ea;
    font-weight: 500;
}

@media (max-width: 768px) {
    .site-nav-links {
        display: none;
    }
    .site-nav {
        height: 3rem;
    }
    .site-nav-inner {
        padding: 0 1rem;
    }
    .site-nav img {
        height: 1.5rem !important;
        margin-top: 5px;
    }
}

/* ========== 页面布局覆盖 ========== */
.main-wrapper {
    display: block;
}
.sidebar {
    display: none;
}
.main-content {
    margin-left: 0;
    min-height: auto;
    width: 100%;
    max-width: 100%;
}

/* ========== Footer 手机端响应式 ========== */
@media (max-width: 768px) {
    .footer-links {
        grid-template-columns: 1fr 1fr !important;
        gap: 1.5rem !important;
    }
}

/* ========== 渐变文字效果 ========== */
.gradient-text {
    display: inline-block;
    background-image: linear-gradient(90deg, #ff3b30 0%, #ff3b30 30%, #b83bff 65%, #5677fc 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    position: relative;
    z-index: 1;
}

/* ========== Hero 顶部区域 ========== */
.home-hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #ffffff;
    padding: 60px 20px 10px;
}

.home-hero-bg-image {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    pointer-events: none;
    z-index: 10;
    margin-top: -4px;
}

.home-hero-bg-image img {
    width: auto;
    object-fit: contain;
    object-position: right top;
    display: block;
}

.home-hero-bg-image img[src=""],
.home-hero-bg-image img:not([src]) {
    display: none;
}

.home-hero-content {
    position: relative;
    z-index: 20;
    max-width: 1280px;
    width: 100%;
    margin: 75px auto 0;
    padding: 0 16px;
}

.home-hero-inner {
    max-width: 768px;
}

.home-hero h1 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #111827;
    margin-bottom: 24px;
    line-height: 1.3;
}

.home-hero-title-small {
    font-size: 3.4rem;
}

.home-hero p {
    font-size: 1.25rem;
    color: #374151;
    margin-bottom: 40px;
}

.home-hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.home-hero-btn {
    display: inline-block;
    padding: 16px 32px;
    font-size: 1.125rem;
    font-weight: 500;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s;
    text-align: center;
    border: 2px solid transparent;
}

.home-hero-btn-primary {
    background-color: #2c3e50;
    color: white;
    border-color: #2c3e50;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.home-hero-btn-primary:hover {
    background-color: #34495e;
}

.home-hero-btn-secondary {
    background-color: #9333ea1c;
    color: #9333ea;
    border-color: #9333ea;
}

.home-hero-btn-secondary:hover {
    background-color: #9233ea36;
}

/* ========== 功能卡片区域 ========== */
.home-features {
    padding: 40px 20px 80px;
    background: #ffffff;
}

.home-features-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
}

.home-features-title {
    text-align: center;
    margin-bottom: 16px;
}

.home-features-title h2 {
    font-size: 2.25rem;
    font-weight: bold;
    color: #111827;
    margin-bottom: 16px;
}

.home-features-title p {
    font-size: 1.25rem;
    color: #4b5563;
    max-width: 768px;
    margin: 0 auto;
}

.home-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 48px;
}

.home-feature-card {
    background: #f9fafb;
    border-radius: 12px;
    padding: 32px;
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.home-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.1);
}

.home-feature-card-label {
    display: inline-block;
    padding: 4px 12px;
    background: #111111;
    color: white;
    font-size: 0.75rem;
    border-radius: 6px;
    margin-bottom: 20px;
}

.home-feature-card-label.ai-creation {
    background: #111111;
}

.home-feature-card-label.ai-editing {
    background: #a67c52;
    border: 1px solid rgba(217, 191, 160, 0.4);
}

.home-feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #111111;
    margin-bottom: 12px;
    line-height: 1.3;
}

.home-feature-card p {
    font-size: 0.875rem;
    color: #666666;
    line-height: 1.5;
}

.home-feature-card:nth-child(1) {
    background: linear-gradient(to bottom, #e6f9f4, #e0f5ed);
}

.home-feature-card:nth-child(2) {
    background: #E9F0F5;
}

.home-feature-card:nth-child(3) {
    background: #F5F0E9;
}

.home-feature-card:nth-child(4) {
    background: #deeaf5;
}

/* ========== 核心优势卡片 ========== */
.home-advantages-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 48px;
    margin-left: auto;
    margin-right: auto;
}

.home-advantage-card {
    background: #def5e9;
    border-radius: 12px;
    padding: 32px;
    transition: all 0.3s;
    display: block;
}

.home-advantage-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.1);
}

.home-advantage-card h3 {
    font-size: 1.6rem;
    font-weight: 600;
    color: #113458;
    margin-bottom: 12px;
    line-height: 1.3;
}

.home-advantage-card p {
    font-size: 1.1rem;
    color: #4a4a4a;
    line-height: 1.7;
    margin-bottom: 6px;
    font-weight: 600;
}

.home-advantage-card-p {
    color: #686868 !important;
    font-weight: 500 !important;
}

.home-advantage-card:nth-child(1) {
    background: #F5F0E9;
}

.home-advantage-card:nth-child(2) {
    background: #faecf8;
}

.home-advantage-card:nth-child(3) {
    background: #deeaf5;
}

/* ========== FAQ 区域 ========== */
.home-faq {
    padding: 60px 20px;
    background: #ffffff;
}

.home-faq-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
}

.home-faq-title {
    text-align: center;
    margin-bottom: 48px;
}

.home-faq-title h2 {
    font-size: 2.25rem;
    font-weight: bold;
    color: #111827;
    margin-bottom: 16px;
}

.home-faq-accordion {
    max-width: 900px;
    margin: 0 auto;
}

.home-faq-list {
    display: none;
}

.home-faq-list.show {
    display: block;
}

.home-faq-item {
    border-bottom: 1px solid #e5e7eb;
}

.home-faq-question {
    width: 100%;
    padding: 20px 0;
    background: none;
    border: none;
    text-align: left;
    font-size: 1.5rem;
    font-weight: 500;
    color: #113458;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s;
}

.home-faq-question:hover {
    color: #2c3e50;
}

.home-faq-question-icon {
    font-size: 1.25rem;
    transition: transform 0.3s;
}

.home-faq-question.active .home-faq-question-icon {
    transform: rotate(180deg);
}

.home-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.home-faq-answer.show {
    max-height: 500px;
    padding-bottom: 20px;
}

.home-faq-answer p {
    font-size: 18px;
    color: #4b5563;
    line-height: 1.7;
    white-space: pre-line;
    margin-bottom: 5px;
}

/* ========== 适用场景区域 ========== */
.home-scenarios {
    padding: 60px 20px;
    background: #f9fafb;
}

.home-scenarios-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0;
}

.home-scenarios-title {
    text-align: center;
    margin-bottom: 48px;
}

.home-scenarios-title h2 {
    font-size: 2.25rem;
    font-weight: bold;
    color: #111827;
    margin-bottom: 16px;
}

.home-scenarios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.home-scenario-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s;
}

.home-scenario-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.home-scenario-icon {
    font-size: 2rem;
    margin-bottom: 16px;
}

.home-scenario-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 12px;
}

.home-scenario-card p {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 8px;
    margin-left: 10px;
    margin-right: 10px;
}

/* ========== 底部 CTA 区域 ========== */
.home-cta {
    background: #faf5ff;
    padding: 80px 0;
    text-align: center;
}

.home-cta-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
}

.home-cta h2 {
    font-size: 2.25rem;
    font-weight: bold;
    color: #111827;
    margin-bottom: 24px;
}

.home-cta p {
    font-size: 1.25rem;
    color: #4b5563;
    margin-bottom: 40px;
    max-width: 768px;
    margin-left: auto;
    margin-right: auto;
}

.home-cta-btn {
    display: inline-block;
    padding: 16px 32px;
    background-color: #2c3e50;
    color: white;
    font-size: 1.125rem;
    font-weight: 500;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.home-cta-btn:hover {
    background-color: #34495e;
}

.home-cta-qrcode {
    margin-top: 40px;
}

.home-cta-qrcode img {
    width: 180px;
    height: 180px;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.home-cta-qrcode p {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 8px;
    margin-bottom: 0;
}

/* ========== 平板端响应式 (min-width: 640px) ========== */
@media (min-width: 640px) {
    .home-hero-buttons {
        flex-direction: row;
    }

    .home-hero h1 {
        font-size: 2.5rem;
    }

    .home-hero p {
        font-size: 1.5rem;
    }
}

/* ========== PC端响应式 (min-width: 1024px) ========== */
@media (min-width: 1024px) {
    .home-hero h1 {
        font-size: 3.75rem;
    }

    .home-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1280px) {
    .home-features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ========== 平板端响应式 (max-width: 900px) ========== */
@media (max-width: 900px) {
    .home-scenarios-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========== 平板端响应式 (max-width: 768px) ========== */
@media (max-width: 768px) {
    .home-advantages-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    .home-advantage-card {
        padding: 24px;
    }

    .home-advantage-card h3 {
        font-size: 1.5rem;
    }
}

/* ========== 手机端响应式 (max-width: 600px) ========== */
@media (max-width: 600px) {
    /* Hero区域 */
    .home-hero {
        min-height: auto;
        padding: 40px 16px;
    }
    .home-hero h1 {
        font-size: 2.5rem;
        margin-bottom: 16px;
        font-weight: 600;
    }
    .home-hero-title-small {
        font-size: 1.8rem;
    }
    .home-hero p {
        font-size: 1.3rem;
        margin-bottom: 35px;
        line-height: 1.4;
    }
    .home-hero-btn {
        padding: 10px 20px;
        font-size: 0.875rem;
    }
    .home-hero-buttons {
        align-items: flex-start;
    }
    .home-hero-bg-image {
        /* opacity: 0.3; */
        /* width: 100%; */
    }
    .home-hero-bg-image img {
        /* width: 100%; */
        /* max-width: 300px; */
    }

    /* 各区域标题统一缩小 */
    .home-features-title h2,
    .home-faq-title h2,
    .home-scenarios-title h2,
    .home-cta h2 {
        font-size: 1.25rem;
        margin-bottom: 12px;
    }
    .home-features-title p,
    .home-cta p {
        font-size: 0.875rem;
        margin-bottom: 24px;
    }

    /* 各区域padding缩小 */
    .home-features {
        padding: 30px 12px 50px;
    }
    .home-faq {
        padding: 30px 12px;
    }
    .home-scenarios {
        padding: 30px 12px;
    }
    .home-cta {
        padding: 40px 12px;
    }
    .home-faq-title,
    .home-scenarios-title {
        margin-bottom: 24px;
    }

    /* 核心优势卡片 */
    .home-advantages-grid {
        gap: 12px;
        margin-top: 24px;
    }
    .home-advantage-card {
        padding: 16px;
    }
    .home-advantage-card h3 {
        font-size: 1.125rem;
        margin-bottom: 8px;
    }
    .home-advantage-card p {
        font-size: 0.875rem;
        line-height: 1.5;
    }

    /* 核心功能卡片 */
    .home-features-grid {
        gap: 12px;
        margin-top: 24px;
    }
    .home-feature-card {
        padding: 16px;
    }
    .home-feature-card h3 {
        font-size: 1rem;
        margin-bottom: 8px;
    }
    .home-feature-card p {
        font-size: 0.75rem;
    }
    .home-feature-card-label {
        font-size: 0.625rem;
        padding: 2px 8px;
        margin-bottom: 12px;
    }

    /* 适用场景 */
    .home-scenarios-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
    .home-scenario-card {
        padding: 16px 12px;
    }
    .home-scenario-icon {
        font-size: 1.5rem;
        margin-bottom: 8px;
    }
    .home-scenario-card h3 {
        font-size: 0.875rem;
        margin-bottom: 0;
    }
    .home-scenario-card p {
        display: none;
    }

    /* FAQ问答 */
    .home-faq-question {
        font-size: 1rem;
        padding: 12px 0;
    }
    .home-faq-question-icon {
        font-size: 0.75rem;
    }
    .home-faq-answer p {
        font-size: 0.875rem;
        line-height: 1.5;
    }
    .home-faq-answer.show {
        padding-bottom: 12px;
    }

    /* CTA二维码 */
    .home-cta-qrcode img {
        width: 140px;
        height: 140px;
    }
    .home-cta-qrcode p {
        font-size: 0.75rem;
    }
}