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

body {
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    color: #333;
    line-height: 1.6;
    background: #fff;
}

a {
    text-decoration: none;
    color: inherit;
}

ul,
ol {
    list-style: none;
}

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

button {
    border: none;
    outline: none;
    cursor: pointer;
    font-family: inherit;
}

/* ==================== CSS 变量定义 ==================== */
:root {
    --primary-color: #00b5ad;
    --primary-dark: #009a93;
    --primary-light: #e0f7f6;
    --text-dark: #333;
    --text-gray: #666;
    --text-light: #999;
    --border-color: #ddd;
    --bg-light: #f5f5f5;
}

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

/* ==================== 顶部绿色横条 ==================== */
.top-bar {
    width: 100%;
    height: 28px;
    background: var(--primary-color);
}

/* ==================== 头部导航 ==================== */
header {
    background: #fff;
    border-bottom: 1px solid #e8e8e8;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 115px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 102px;
    width: auto;
}

.header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 20px;
}

.search-box {
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 30px;
    padding: 10px 20px;
    width: 380px;
    border: 1px solid #e0e0e0;
}

.search-box input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 14px;
    color: #666;
}

.search-box input::placeholder {
    color: #999;
}

.search-box button {
    background: none;
    border: none;
    font-size: 18px;
    color: var(--primary-color);
    cursor: pointer;
    padding: 0;
    margin-left: 10px;
}

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

.main-nav a {
    font-size: 15px;
    color: #333;
    font-weight: 700;
    transition: color 0.3s;
    white-space: nowrap;
}

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

.main-nav a.active {
    color: var(--primary-color);
    font-weight: 700;
}

/* ==================== Hero Banner ==================== */
.hero-section {
    width: 100%;
    height: 400px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    position: relative;
    padding-top: 35px;
}

.hero-title {
    background: rgba(0, 181, 173, 0.98);
    color: #fff;
    font-size: 60px;
    font-weight: bold;
    padding: 24px 80px;
    letter-spacing: 6px;
    border-radius: 0;
    line-height: 1.2;
}

.hero-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.hero-subtitle {
    color: #333;
    font-size: 22px;
    font-weight: 600;
    text-align: center;
    margin: 0;
}

/* ==================== 全链路服务工具 ==================== */
.service-section {
    padding: 50px 0;
}

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

.section-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.toggle-hint {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    color: #333;
}

.hint-text {
    font-size: 14px;
    line-height: 1.6;
    text-align: right;
}

.hint-text strong {
    font-weight: bold;
}

.toggle-switch {
    width: 40px;
    height: 20px;
    background: #e0f2f1;
    border: 1px solid var(--primary-color);
    border-radius: 12px;
    position: relative;
    cursor: pointer;
}

.toggle-switch::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background: var(--primary-color);
    border-radius: 50%;
    right: 2px;
    top: 1px;
    transition: all 0.3s;
}

.service-flow {
    width: 100%;
    margin-bottom: 40px;
}

.service-flow img {
    width: 100%;
    height: auto;
}

/* ==================== AI智能营销展示 ==================== */
.ai-marketing-section {
    background: var(--primary-color);
    padding: 50px 0;
}

.ai-marketing-title {
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 30px;
}

.marketing-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 20px;
}

.marketing-card {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
}

.marketing-card h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 20px;
    font-weight: bold;
}

.card-image {
    width: 70%;
    margin: 0 auto 20px;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.card-image img {
    width: 100%;
    height: auto;
    display: block;
}

.image-overlay-btn {
    position: absolute;
    background-color: #26c2c2;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    white-space: nowrap;
    padding: 0;
    transition: background 0.3s;
}

/* 第一个卡片（生成图片）：定位到左侧图片的底部按钮 */
.marketing-card:nth-child(1) .image-overlay-btn {
    width: 175px;
    height: 49px;
    bottom: 27px;
    left: 50%;
    transform: translateX(-50%);
}

/* 第二个卡片（生成视频）：定位到右侧图片的底部按钮 */
.marketing-card:nth-child(2) .image-overlay-btn {
    width: 175px;
    height: 49px;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
}

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

.card-footer {
    text-align: right;
}

.generate-btn {
    background: var(--primary-color);
    color: #fff;
    padding: 10px 30px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.3s;
}

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

.more-tools-link {
    text-align: right;
    margin-top: 15px;
}

.more-tools-link a {
    color: #fff;
    font-size: 14px;
}

/* ==================== 说明区域 ==================== */
.description-section {
    padding: 60px 0;
    text-align: center;
}

.description-section h2 {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 40px;
    color: #333;
}

.description-box {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    background: #fff;
    border: 1px solid #e8e8e8;
    padding: 40px;
    text-align: left;
    margin-bottom: 40px;
}

.description-logo {
    flex-shrink: 0;
}

.description-logo img {
    height: 150px;
    width: auto;
}

.description-text {
    flex: 1;
    font-size: 14px;
    line-height: 1.8;
    color: #666;
}

/* ==================== 信息卡片 ==================== */
.info-cards-section {
    padding: 60px 0;
}

.info-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.info-card {
    background: #edf7f6;
    padding: 40px 30px;
    position: relative;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    min-height: 380px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
}

.card-icon {
    position: absolute;
    top: 30px;
    right: 30px;
    color: #26c2c2;
    opacity: 0.8;
}

.info-card h3 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 30px;
    color: #333;
    position: relative;
    z-index: 2;
}

.info-card p {
    font-size: 15px;
    line-height: 1.8;
    color: #555;
    margin-bottom: auto;
    max-width: 80%;
    position: relative;
    z-index: 2;
}

.info-card .learn-more {
    color: #3b5998;
    font-size: 15px;
    font-weight: 500;
    text-decoration: underline;
    margin-top: 20px;
    position: relative;
    z-index: 2;
    display: inline-block;
    width: fit-content;
}

.card-overlay-image {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 140px;
    height: 140px;
    object-fit: cover;
    z-index: 1;
    pointer-events: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

/* 针对特定卡片微调图片大小 */
.info-card:nth-child(1) .card-overlay-image {
    width: 150px;
    height: 120px;
}

.info-card:nth-child(3) .card-overlay-image {
    width: 120px;
    height: 160px;
}

.join-section {
    text-align: center;
}

.join-section p {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 25px;
}

.join-btn {
    display: inline-block;
    background: #fff;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 12px 60px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s;
    text-decoration: none;
    cursor: pointer;
}

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

/* ==================== Footer ==================== */
footer {
    background: var(--primary-color);
    color: #fff;
    padding: 40px 0 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.footer-info {
    flex: 1;
}

.footer-info p {
    font-size: 13px;
    margin-bottom: 8px;
    opacity: 0.95;
}

.footer-qr {
    text-align: center;
}

.footer-qr img {
    width: 120px;
    height: 120px;
    background: #fff;
    padding: 8px;
    border-radius: 4px;
}

/* ==================== AI企业服务页面 ==================== */
.ai-service-header {
    text-align: center;
    padding: 60px 0;
    background: #fff;
}

.ai-service-header h1 {
    font-size: 40px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
}

.ai-service-subtitle {
    font-size: 18px;
    color: #333;
    font-weight: 500;
    margin-bottom: 10px;
}

.ai-flow-section {
    padding: 0 0 60px;
}

.ai-flow-block {
    border: 1px solid #d1eaea;
    border-radius: 6px;
    margin-bottom: 30px;
    overflow: hidden;
    display: flex;
}

.ai-sidebar {
    width: 80px;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.sidebar-label {
    background: #f0fafa;
    color: var(--primary-color);
    border-bottom: 1px solid #d1eaea;
    padding: 20px 10px;
    text-align: center;
    font-size: 14px;
    font-weight: bold;
}

.sidebar-ai {
    flex: 1;
    background: var(--primary-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    writing-mode: vertical-lr;
    font-size: 14px;
    letter-spacing: 4px;
    font-weight: 500;
}

.ai-content {
    flex: 1;
    padding: 25px 30px;
    background: #fff;
}

.flow-stages {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.stage-item {
    font-size: 15px;
    font-weight: bold;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.stage-arrow {
    color: var(--primary-color);
    font-weight: bold;
}

.ai-tools-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    min-height: 120px;
}

.tool-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-right: 15px;
    border-right: 1px dashed #bee4e4;
}

.tool-column:last-child {
    border-right: none;
}

.tool-card {
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    background: #fff;
    padding: 10px 8px;
    border-radius: 20px;
    font-size: 12px;
    text-align: center;
    transition: all 0.3s;
}

.tool-card:hover {
    background: var(--primary-light);
}

.more-link {
    text-align: right;
    margin-top: 15px;
}

.more-link a {
    color: var(--primary-color);
    font-size: 12px;
}

.ai-footer-section {
    text-align: center;
    padding: 40px 0 60px;
}

.ai-footer-section p {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 15px;
}

/* ==================== AI Service 页面图片展示样式 ==================== */
.ai-hero-banner {
    width: 100%;
    overflow: hidden;
}

.hero-banner-img {
    width: 100%;
    height: auto;
    display: block;
}

.ai-service-content {
    background: #fff;
}

.ai-service-block {
    width: 100%;
    margin-bottom: 0;
}

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

.ai-service-footer-text {
    text-align: center;
    padding: 40px 20px 60px;
    background: #fff;
}

.ai-service-footer-text p {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 15px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        height: auto;
        padding: 15px 20px;
    }

    .main-nav {
        flex-wrap: wrap;
        gap: 15px;
    }

    .marketing-cards {
        grid-template-columns: 1fr;
    }

    .info-cards-grid {
        grid-template-columns: 1fr;
    }

    .ai-tools-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* AI 企业服务板块样式 */
.ai-service-content {
    padding: 40px 0;
}

.ai-service-block {
    margin-bottom: 50px;
    position: relative;
    width: 100%;
}

.service-block-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

.block-more-link {
    text-align: right;
    margin-top: 15px;
    padding-right: 20px;
}

.block-more-link a {
    color: #26c2c2;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
}

.block-more-link a:hover {
    text-decoration: underline;
}

.ai-service-footer-text {
    margin-top: 40px;
    text-align: center;
    color: #666;
    font-size: 15px;
    line-height: 1.8;
}

.ai-service-footer-text p {
    margin-bottom: 10px;
}