/* ============================================
   Viber营销服务网站 - 主样式文件
   ============================================ */

/* 全局重置和基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #7360F2;
    --secondary-color: #00B2FF;
    --accent-color: #FF6B6B;
    --dark-color: #1a1a2e;
    --light-color: #f8f9fa;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, #7360F2 0%, #00B2FF 100%);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Segoe UI', 'Microsoft YaHei', 'PingFang SC', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

/* 页头样式 */
header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--primary-color);
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width 0.3s ease;
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
}

/* 主要内容区域 */
main {
    min-height: calc(100vh - 200px);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 英雄区域 */
.hero {
    background: var(--gradient);
    color: var(--white);
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 20s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    animation: fadeInUp 1s ease 0.2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 15px 35px;
    background: var(--white);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    animation: fadeInUp 1s ease 0.4s both;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    background: var(--light-color);
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--secondary-color);
}

/* 服务卡片 */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin: 2.5rem 0;
}

.service-card {
    background: var(--white);
    border-radius: 20px;
    padding: 3rem 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0.98) 100%);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 50px rgba(115, 96, 242, 0.25);
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(255,255,255,1) 0%, rgba(115, 96, 242, 0.02) 100%);
}

.service-icon {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    display: block;
    text-align: center;
    line-height: 1;
    filter: drop-shadow(0 6px 12px rgba(115, 96, 242, 0.3));
    transition: all 0.3s ease;
    background: linear-gradient(135deg, rgba(115, 96, 242, 0.1) 0%, rgba(0, 178, 255, 0.1) 100%);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    position: relative;
}

.service-icon::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.service-card:hover .service-icon::before {
    opacity: 0.2;
}

.service-card:hover .service-icon {
    transform: scale(1.15) rotate(5deg);
    filter: drop-shadow(0 8px 16px rgba(115, 96, 242, 0.4));
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.6rem;
    font-weight: 700;
    text-align: center;
    letter-spacing: -0.5px;
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.9;
    text-align: center;
    font-size: 1rem;
    flex-grow: 1;
}

.service-card .btn {
    padding: 10px 25px;
    font-size: 0.9rem;
}

/* 内容区域 */
.content-section {
    padding: 40px 20px;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* 特性列表 */
.features-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 2.5rem;
    background: linear-gradient(135deg, rgba(115, 96, 242, 0.06) 0%, rgba(0, 178, 255, 0.06) 100%);
    border-radius: 18px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(115, 96, 242, 0.15);
    position: relative;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.feature-item:hover::before {
    transform: scaleY(1);
}

.feature-item:hover {
    background: linear-gradient(135deg, rgba(255,255,255,1) 0%, rgba(115, 96, 242, 0.02) 100%);
    box-shadow: 0 15px 40px rgba(115, 96, 242, 0.2);
    transform: translateY(-8px) scale(1.01);
    border-color: var(--primary-color);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    flex-shrink: 0;
    filter: drop-shadow(0 4px 8px rgba(115, 96, 242, 0.3));
    transition: all 0.3s ease;
    background: linear-gradient(135deg, rgba(115, 96, 242, 0.1) 0%, rgba(0, 178, 255, 0.1) 100%);
    width: 70px;
    height: 70px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.feature-icon::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 15px;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.feature-item:hover .feature-icon::before {
    opacity: 0.2;
}

.feature-item:hover .feature-icon {
    transform: scale(1.2) rotate(-5deg);
    filter: drop-shadow(0 6px 12px rgba(115, 96, 242, 0.4));
}

.feature-content h4 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.feature-content p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* 优势展示 */
.advantages {
    background: var(--light-color);
    padding: 40px 20px;
    margin: 2rem 0;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.advantage-card {
    background: linear-gradient(135deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0.98) 100%);
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.advantage-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(115, 96, 242, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.advantage-card:hover::after {
    opacity: 1;
}

.advantage-card:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 20px 50px rgba(115, 96, 242, 0.25);
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(255,255,255,1) 0%, rgba(115, 96, 242, 0.03) 100%);
}

.advantage-number {
    font-size: 4rem;
    font-weight: 900;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    line-height: 1;
    letter-spacing: -2px;
    position: relative;
    z-index: 1;
}

.advantage-card h4 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.advantage-card p {
    color: var(--text-light);
    line-height: 1.9;
    font-size: 1rem;
    position: relative;
    z-index: 1;
}

/* 页脚样式 */
footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 40px 20px 20px;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--white);
    font-size: 1.2rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--white);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
}

.contact-icon {
    font-size: 1.2rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* 详细内容区域 */
.detail-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0;
}

.detail-content h2 {
    color: var(--primary-color);
    margin: 2rem 0 1rem;
    font-size: 2rem;
    border-left: 4px solid var(--primary-color);
    padding-left: 1rem;
}

.detail-content h3 {
    color: var(--text-dark);
    margin: 1.5rem 0 1rem;
    font-size: 1.5rem;
}

.detail-content p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    text-align: justify;
}

.detail-content ul,
.detail-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.detail-content ul li,
.detail-content ol li {
    color: var(--text-light);
    margin-bottom: 0.8rem;
    line-height: 1.8;
}

.detail-content strong {
    color: var(--text-dark);
    font-weight: 600;
}

/* 服务类型卡片 */
.service-types {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}

/* 合并到下面的@media规则中 */

.service-type-card {
    background: var(--white);
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.service-type-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
    transform: translateY(-5px);
}

.service-type-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-type-card .type-icon {
    font-size: 1.8rem;
}

.service-type-card ul {
    list-style: none;
    padding-left: 0;
}

.service-type-card ul li {
    padding: 0.5rem 0;
    color: var(--text-light);
    padding-left: 1.5rem;
    position: relative;
}

.service-type-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .services-grid,
    .advantages-grid,
    .service-types {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-list {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .core-services-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: var(--shadow);
        padding: 1rem;
    }

    nav.active {
        display: block;
    }

    nav ul {
        flex-direction: column;
        gap: 0;
    }

    nav ul li {
        border-bottom: 1px solid #e9ecef;
    }

    nav ul li a {
        display: block;
        padding: 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .services-grid,
    .features-list,
    .advantages-grid,
    .service-types,
    .core-services-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    .header-container {
        flex-wrap: wrap;
    }
    
    /* 优化移动端卡片内边距 */
    .service-card,
    .advantage-card,
    .service-type-card {
        padding: 1.5rem !important;
        margin-bottom: 1rem;
    }
    
    /* 优化移动端内容区域 */
    .content-section {
        padding: 40px 15px !important;
    }
    
    /* 优化移动端内联样式卡片 */
    [style*="padding: 2.5rem"],
    [style*="padding: 3rem"],
    [style*="padding: 3.5rem"] {
        padding: 1.5rem !important;
    }
    
    /* 优化移动端网格间距 */
    [style*="grid-template-columns"] {
        gap: 1.5rem !important;
    }
    
    /* 优化移动端标题和文字大小 */
    h2[style*="font-size: 2.5rem"],
    h2[style*="font-size: 2.2rem"] {
        font-size: 1.8rem !important;
        margin-bottom: 1rem !important;
    }
    
    h3[style*="font-size: 1.6rem"],
    h3[style*="font-size: 1.5rem"] {
        font-size: 1.3rem !important;
        margin-bottom: 1rem !important;
    }
    
    /* 优化移动端段落和列表 */
    p[style*="font-size: 1.15rem"],
    p[style*="font-size: 1.2rem"] {
        font-size: 1rem !important;
        line-height: 1.7 !important;
    }
    
    ul[style*="font-size: 1.05rem"] {
        font-size: 0.95rem !important;
        line-height: 1.8 !important;
        padding-left: 1.2rem !important;
    }
    
    /* 优化移动端图标大小 */
    span[style*="font-size: 2rem"] {
        font-size: 1.5rem !important;
    }
    
    span[style*="font-size: 4rem"] {
        font-size: 3rem !important;
    }
    
    /* 优化移动端section-subtitle */
    .section-subtitle {
        font-size: 1rem !important;
        margin-bottom: 2rem !important;
    }
    
    /* 优化移动端margin */
    [style*="margin-bottom: 3rem"] {
        margin-bottom: 2rem !important;
    }
    
    [style*="margin: 3rem 0"] {
        margin: 2rem 0 !important;
    }
    
    /* 优化移动端网格布局强制单列 */
    [style*="grid-template-columns: repeat(2"],
    [style*="grid-template-columns: repeat(3"] {
        grid-template-columns: 1fr !important;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }
    
    .service-icon {
        font-size: 3rem;
    }
    
    .advantage-number {
        font-size: 3rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 50px 15px;
    }

    .hero h1 {
        font-size: 1.6rem;
        line-height: 1.3;
    }

    .content-section {
        padding: 30px 15px !important;
    }

    .service-card,
    .advantage-card,
    .service-type-card {
        padding: 1.2rem !important;
        border-radius: 12px !important;
    }
    
    .service-icon {
        width: 70px;
        height: 70px;
        font-size: 2.5rem;
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 2rem;
    }
    
    /* 超小屏幕进一步优化 */
    [style*="padding: 2.5rem"],
    [style*="padding: 3rem"],
    [style*="padding: 3.5rem"] {
        padding: 1.2rem !important;
    }
    
    h2[style*="font-size: 2.5rem"] {
        font-size: 1.5rem !important;
    }
    
    h3[style*="font-size: 1.6rem"],
    h3[style*="font-size: 1.5rem"] {
        font-size: 1.2rem !important;
    }
    
    p[style*="font-size: 1.15rem"] {
        font-size: 0.95rem !important;
    }
    
    ul[style*="font-size: 1.05rem"] {
        font-size: 0.9rem !important;
        padding-left: 1rem !important;
    }
    
    [style*="grid-template-columns"] {
        gap: 1rem !important;
    }
    
    .section-subtitle {
        font-size: 0.95rem !important;
    }
    
    .advantage-number {
        font-size: 2.5rem;
    }
}

/* 动画效果 */
.fade-in {
    animation: fadeIn 1s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

