/* 性能优化 */
:root {
    --primary: #FE2C55;
    --primary-dark: #E61E43;
    --primary-light: #FF4D6D;
    --secondary: #161823;
    --dark: #121212;
    --gray: #888888;
    --light: #F8F8F8;
    --white: #FFFFFF;
    
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 16px rgba(0,0,0,0.15);
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    
    /* 移动端基准字体大小 */
    --base-font-size: 16px;
    --base-line-height: 1.6;
}

/* 基础优化 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

/* 性能优化 */
img {
    max-width: 100%;
    height: auto;
}

/* 图片懒加载样式 */
.lazy {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.lazy.loaded {
    opacity: 1;
}

/* 优化滚动性能 */
.cases-grid,
.feature-cards,
.hero-content {
    will-change: transform;
    transform: translateZ(0);
}

/* 打印样式优化 */
@media print {
    .hero-bg,
    .video-trigger,
    .cases-nav {
        display: none;
    }
}

/* 移动端优化 */
@media (max-width: 768px) {
    :root {
        --base-font-size: 14px;
    }

    .hero {
        padding: 100px 0;
    }

    .hero-text h1 {
        font-size: 32px;
    }

    .hero-features {
        justify-content: center;
    }

    .feature-tag {
        padding: 8px 16px;
        font-size: 14px;
    }

    .hero-btns {
        flex-direction: column;
        gap: 20px;
    }

    .primary-btn {
        width: 100%;
        text-align: center;
    }

    .video-trigger {
        width: 100%;
        justify-content: center;
    }

    /* 优化触摸目标大小 */
    .feature-card,
    .primary-btn,
    .video-trigger {
        min-height: 44px;
        padding: 12px 20px;
    }
}

/* 平板适配 */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .feature-cards {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .case-card {
        width: calc(50% - 15px);
    }
}

/* 小屏幕手机适配 */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-text h1 {
        font-size: 28px;
    }

    .case-card {
        width: 100%;
    }

    .feature-cards {
        flex-direction: column;
    }

    .feature-card {
        width: 100%;
    }
}

/* 暗色模式支持 */
@media (prefers-color-scheme: dark) {
    :root {
        --light: #161823;
        --dark: #F8F8F8;
        --gray: #A0A0A0;
    }

    .hero-bg::after {
        background: linear-gradient(135deg, rgba(0,0,0,0.9), rgba(43,90,237,0.4));
    }
}

/* 减少动画 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* 优化可访问性 */
.primary-btn:focus,
.video-trigger:focus,
.feature-card:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* 优化加载性能 */
.hero-bg {
    background-image: url('../images/douyin/hero-bg.png');
    background-size: cover;
    background-position: center;
    transform: translateZ(0);
    backface-visibility: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--dark);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 主横幅样式 */
.hero {
    padding: 200px 0px;
    background: linear-gradient(135deg, #161823 0%, #1C1F2E 100%);
    color: var(--white);
    overflow: hidden;
    position: relative;
}
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/douyin/hero-bg.webp');
    background-size: cover;
    background-position: center;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgb(0 0 0 / 90%), rgb(103 129 211 / 30%));
    z-index: 2;
}
/* .hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/douyin/hero-bg.png');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    pointer-events: none;
} */

.hero-content {
    display: grid;
    grid-template-columns: 1fr 0fr;
    gap: 60px;
    align-items: center;
    position: relative;
}

.hero-text {
    position: relative;
    z-index: 2;
}

.hero-text h1 {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 32px;
    font-weight: 700;
    background: linear-gradient(to right, #fff, #e6e6e6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 40px;
}

.feature-tag {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    font-size: 16px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.feature-tag:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.hero-btns {
    display: flex;
    align-items: center;
    gap: 30px;
}

.primary-btn {
    background: var(--primary);
    color: var(--white);
    padding: 16px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 15px rgba(254, 44, 85, 0.4);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(254, 44, 85, 0.6);
}

.video-trigger {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.play-circle {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.play-circle i {
    color: var(--white);
    font-size: 16px;
    margin-left: 2px;
}

.video-trigger:hover .play-circle {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.hero-image {
    position: relative;
    z-index: 2;
    padding: 20px;
}

.phone-container {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.phone-frame {
    position: relative;
    width: 100%;
    padding-bottom: 200%; /* 手机屏幕比例 */
}

.frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.2));
}

.screen-content {
    position: absolute;
    top: 2%;
    left: 4%;
    right: 4%;
    bottom: 2%;
    border-radius: 30px;
    overflow: hidden;
}

.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.1);
    transition: all 0.5s ease;
}

.screen.active {
    opacity: 1;
    transform: scale(1);
}

.feature-cards {
    position: absolute;
    right: -30px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 240px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-card.active {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateX(-10px);
    
}

.feature-card:hover:not(.active) {
    transform: translateX(-5px);
}

.card-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-icon i {
    color: var(--white);
    font-size: 20px;
}

.card-text {
    flex-grow: 1;
}

.card-text h4 {
    font-size: 16px;
    margin-bottom: 4px;
    color: var(--white);
}

.card-text p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.decoration-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: -1;
}

.deco-circle {
    position: absolute;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0.1;
}

.circle-1 {
    width: 200px;
    height: 200px;
    top: -50px;
    right: -100px;
}

.circle-2 {
    width: 150px;
    height: 150px;
    bottom: -30px;
    left: -50px;
}

.deco-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    height: 1px;
    opacity: 0.2;
}

.line-1 {
    width: 300px;
    top: 30%;
    right: -150px;
    transform: rotate(-45deg);
}

.line-2 {
    width: 200px;
    bottom: 40%;
    left: -100px;
    transform: rotate(45deg);
}

/* 添加动画 */
@keyframes screenTransition {
    0% {
        opacity: 0;
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* 响应式调整 */
@media (max-width: 1200px) {
    .feature-cards {
        right: -20px;
        width: 220px;
    }
}

@media (max-width: 1024px) {
    .phone-container {
        max-width: 400px;
    }

    .feature-cards {
        position: static;
        transform: none;
        flex-direction: row;
        width: 100%;
        margin-top: 30px;
        justify-content: center;
    }

    .feature-card {
        width: calc(33.33% - 20px);
    }

    .feature-card.active {
        transform: translateY(-10px);
    }

    .feature-card:hover:not(.active) {
        transform: translateY(-5px);
    }
}

@media (max-width: 768px) {
    .phone-container {
        max-width: 300px;
    }

    .feature-cards {
        flex-direction: column;
        align-items: center;
    }

    .feature-card {
        width: 100%;
        max-width: 280px;
    }
}

/* 添加JavaScript交互所需的样式 */
.screen-transition {
    animation: screenTransition 0.5s ease forwards;
}

/* 问题解决样式 */
.problems {
    padding: 100px 0;
    background: var(--white);
}

.problem-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.problem-header h2 {
    font-size: 36px;
    margin-bottom: 24px;
    color: var(--dark);
}

.problem-desc {
    font-size: 18px;
    color: var(--gray);
    line-height: 1.8;
}

/* 解决方案样式 */
.solution {
    padding: 100px 0;
    background: var(--light);
}

.solution-header {
    text-align: center;
    margin-bottom: 60px;
}

.solution-header h2 {
    font-size: 36px;
    margin-bottom: 16px;
    color: var(--dark);
}

.solution-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.step-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.step-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.step-icon {
    width: 80px;
    height: 80px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: var(--white);
    font-size: 32px;
}

.step-card h3 {
    font-size: 24px;
    margin-bottom: 16px;
}

.step-card p {
    color: var(--gray);
}

/* 营销工具样式 */
.marketing {
    padding: 100px 0;
    background: var(--white);
}

.marketing-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.marketing-text h2 {
    font-size: 36px;
    margin-bottom: 32px;
    color: var(--dark);
}

.marketing-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 32px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.feature-item i {
    font-size: 24px;
    color: var(--primary);
}

.price-tag {
    display: inline-flex;
    align-items: baseline;
}

.currency {
    font-size: 24px;
    color: var(--primary);
}

.price {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary);
}

.marketing-image img {
    width: 50%;
    height: 50%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* 成功案例样式 */
.cases {
    padding: 100px 0;
    background: var(--light);
    overflow: hidden;
}

.cases-showcase {
    position: relative;
    padding: 20px 0;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    transition: transform 0.5s ease;
}

.case-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.case-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.case-image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.case-card:hover .case-image img {
    transform: scale(1.1);
}

.case-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.7));
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.case-card:hover .case-overlay {
    opacity: 1;
}

.case-stats {
    display: flex;
    gap: 20px;
    color: var(--white);
}

.stat-item {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 14px;
    opacity: 0.8;
}

.case-content {
    padding: 24px;
}

.case-tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--primary);
    color: var(--white);
    border-radius: 20px;
    font-size: 14px;
    margin-bottom: 12px;
}

.case-content h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--dark);
}

.case-content p {
    color: var(--gray);
    font-size: 14px;
    margin-bottom: 16px;
    line-height: 1.6;
}

.case-achievement {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 500;
}

.case-achievement i {
    font-size: 16px;
}

.cases-nav {
    position: absolute;
    top: 50%;
    left: -60px;
    right: -60px;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.nav-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--white);
    border: none;
    color: var(--dark);
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn:hover {
    background: var(--primary);
    color: var(--white);
    transform: scale(1.1);
}

/* 响应式调整 */
@media (max-width: 1200px) {
    .cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cases-nav {
        left: -20px;
        right: -20px;
    }
}

@media (max-width: 768px) {
    .cases-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .case-image {
        height: 200px;
    }

    .cases-nav {
        display: none;
    }
}

@media (max-width: 480px) {
    .case-stats {
        flex-direction: column;
        gap: 10px;
    }

    .case-content {
        padding: 20px;
    }
}

/* 视频弹窗样式 */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 800px;
}

.close-btn {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: var(--white);
    font-size: 32px;
    cursor: pointer;
}

.modal-content video {
    width: 100%;
    border-radius: var(--radius-md);
}

/* 微信公众号预览卡片样式 */
.wechat-preview {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
    perspective: 1000px;
}

.wechat-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    transform-style: preserve-3d;
}

.wechat-preview:hover .wechat-card {
    transform: translateY(-10px) rotateY(5deg);
}

.wechat-header {
    background: #07C160;
    color: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
}

.wechat-header i {
    font-size: 20px;
}

.wechat-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.qr-code {
    width: 180px;
    height: 180px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.account-info {
    text-align: center;
    margin: 20px 0;
}

.account-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: 10px;
    border: 2px solid #f0f0f0;
}

.account-name {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.account-desc {
    font-size: 14px;
    color: #666;
}

.follow-btn {
    background: #07C160;
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.follow-btn:hover {
    background: #06B057;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(7, 193, 96, 0.3);
}

.wechat-footer {
    padding: 12px 20px;
    background: #f8f8f8;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #999;
}

.card-shadow {
    position: absolute;
    bottom: -20px;
    left: 5%;
    right: 5%;
    height: 20px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), transparent);
    filter: blur(10px);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.wechat-preview:hover .card-shadow {
    transform: translateY(5px) scaleX(0.95);
    opacity: 0.8;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .wechat-preview {
        max-width: 340px;
    }

    .qr-code {
        width: 150px;
        height: 150px;
    }

    .account-logo {
        width: 50px;
        height: 50px;
    }

    .account-name {
        font-size: 16px;
    }

    .follow-btn {
        padding: 10px 24px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .wechat-preview {
        max-width: 300px;
    }

    .wechat-content {
        padding: 20px;
    }

    .qr-code {
        width: 120px;
        height: 120px;
    }
} 