/* 
 * iida888.cn - GEO 中小企业营销官网定制系统
 * 香水文艺风格 - 浅蓝 + 浅紫 + 纯白配色
 * 10 年高端 UI 定制设计
 */

/* ==================== 全局重置与基础样式 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    line-height: 1.7;
    color: #333;
    background: linear-gradient(135deg, #f5f7fa 0%, #f0e6ff 50%, #e8f4f8 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==================== 顶部固定导航栏 ==================== */
.header-fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(108, 92, 231, 0.1);
    transition: all 0.4s ease;
}

.header-fixed.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 30px rgba(108, 92, 231, 0.15);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: cover;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, #6c5ce7 0%, #74b9ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    gap: 8px;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: block;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 500;
    color: #555;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #6c5ce7, #74b9ff);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #6c5ce7;
    background: rgba(108, 92, 231, 0.05);
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 80%;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #6c5ce7;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ==================== 主内容区域 ==================== */
.main-content {
    padding-top: 80px;
    min-height: calc(100vh - 80px);
}

/* ==================== 不规则网格叠加布局 ==================== */
.irregular-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 30px;
    padding: 60px 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.grid-item {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(108, 92, 231, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.grid-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #6c5ce7, #74b9ff, #a29bfe);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.grid-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(108, 92, 231, 0.15);
}

.grid-item:hover::before {
    transform: scaleX(1);
}

/* 特殊网格布局 */
.grid-span-4 { grid-column: span 4; }
.grid-span-6 { grid-column: span 6; }
.grid-span-8 { grid-column: span 8; }
.grid-span-12 { grid-column: span 12; }

.grid-row-2 { grid-row: span 2; }

/* ==================== Banner 区域 ==================== */
.hero-banner {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.1) 0%, rgba(116, 185, 255, 0.1) 100%);
}

.hero-content {
    text-align: center;
    z-index: 2;
    padding: 0 40px;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #6c5ce7 0%, #74b9ff 50%, #a29bfe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 22px;
    color: #666;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-btn {
    display: inline-block;
    padding: 16px 40px;
    background: linear-gradient(135deg, #6c5ce7 0%, #74b9ff 100%);
    color: white;
    font-size: 18px;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(108, 92, 231, 0.3);
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(108, 92, 231, 0.4);
}

/* ==================== 卡片样式 ==================== */
.service-card {
    text-align: center;
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.1), rgba(116, 185, 255, 0.1));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
}

.service-title {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.service-desc {
    font-size: 15px;
    color: #666;
    line-height: 1.8;
}

/* ==================== 新闻列表样式 ==================== */
.news-section {
    padding: 80px 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-size: 36px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 60px;
    background: linear-gradient(135deg, #6c5ce7 0%, #74b9ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.news-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(108, 92, 231, 0.08);
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(108, 92, 231, 0.15);
}

.news-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-content {
    padding: 25px;
}

.news-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
    line-height: 1.5;
}

.news-excerpt {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #999;
}

.news-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-more {
    color: #6c5ce7;
    font-weight: 600;
}

/* ==================== 页脚 ==================== */
.footer {
    background: linear-gradient(135deg, #2d3436 0%, #6c5ce7 100%);
    color: white;
    padding: 80px 40px 40px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 60px;
}

.footer-section h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 25px;
    color: #74b9ff;
}

.footer-section p,
.footer-section a {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 2;
    display: block;
}

.footer-section a:hover {
    color: #74b9ff;
    padding-left: 5px;
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

/* ==================== 动画效果 ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 1200px) {
    .grid-span-4 { grid-column: span 6; }
    .grid-span-6 { grid-column: span 6; }
    .grid-span-8 { grid-column: span 12; }
    
    .hero-title {
        font-size: 42px;
    }
}

@media (max-width: 992px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 20px;
        gap: 5px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        transition: transform 0.4s ease;
    }
    
    .nav-menu.active {
        transform: translateY(0);
    }
    
    .hamburger {
        display: flex;
    }
    
    .irregular-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 20px;
        padding: 40px 20px;
    }
    
    .grid-span-4,
    .grid-span-6,
    .grid-span-8,
    .grid-span-12 {
        grid-column: span 6;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 20px;
    }
    
    .irregular-grid {
        grid-template-columns: 1fr;
        padding: 30px 20px;
    }
    
    .grid-span-4,
    .grid-span-6,
    .grid-span-8,
    .grid-span-12 {
        grid-column: span 1;
    }
    
    .hero-banner {
        height: 450px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .logo-text {
        font-size: 20px;
    }
    
    .hero-banner {
        height: 380px;
    }
    
    .hero-title {
        font-size: 24px;
    }
    
    .grid-item {
        padding: 25px;
    }
}

/* ==================== 内页通用样式 ==================== */
.page-header {
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.05) 0%, rgba(116, 185, 255, 0.05) 100%);
    padding: 120px 40px 80px;
    text-align: center;
}

.page-title {
    font-size: 42px;
    font-weight: 800;
    background: linear-gradient(135deg, #6c5ce7 0%, #74b9ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.page-subtitle {
    font-size: 18px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.content-section {
    padding: 80px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* ==================== 详情页面样式 ==================== */
.article-detail {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 40px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(108, 92, 231, 0.08);
}

.article-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid rgba(108, 92, 231, 0.1);
}

.article-title-detail {
    font-size: 32px;
    font-weight: 800;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.4;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    color: #999;
    font-size: 14px;
}

.article-content {
    font-size: 16px;
    line-height: 2;
    color: #555;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 30px 0;
}

.article-content p {
    margin-bottom: 20px;
}

.related-news {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid rgba(108, 92, 231, 0.1);
}

.related-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 30px;
}
