/* ========================================
   科维阔达 - kwkd.cn
   香水潮流风全站样式
   亮粉 + 浅蓝 + 浅紫配色方案
   竹节式分层布局
======================================== */

/* CSS Reset & Base */
* {
    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.8;
    color: #333;
    background: linear-gradient(135deg, #fff5f8 0%, #f0f4ff 50%, #f8f0ff 100%);
    overflow-x: hidden;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ========================================
   颜色变量定义
======================================== */
:root {
    --primary-pink: #ff6b9d;
    --light-pink: #ffb6c1;
    --primary-blue: #7ec8e3;
    --light-blue: #b8e4f5;
    --primary-purple: #c77dff;
    --light-purple: #e0b0ff;
    --gradient-pink-blue: linear-gradient(135deg, #ff6b9d 0%, #7ec8e3 100%);
    --gradient-purple-pink: linear-gradient(135deg, #c77dff 0%, #ff6b9d 100%);
    --gradient-bamboo: linear-gradient(180deg, #ff6b9d 0%, #c77dff 50%, #7ec8e3 100%);
    --white: #ffffff;
    --text-dark: #2d2d2d;
    --text-light: #666666;
    --shadow-soft: 0 4px 20px rgba(255, 107, 157, 0.15);
    --shadow-medium: 0 8px 30px rgba(199, 125, 255, 0.2);
    --shadow-strong: 0 12px 40px rgba(126, 200, 227, 0.25);
}

/* ========================================
   顶部导航栏 - 固定响应式
======================================== */
.header-nav {
    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(255, 107, 157, 0.1);
    transition: all 0.4s ease;
}

.header-nav.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 30px rgba(199, 125, 255, 0.2);
}

.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 {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--gradient-pink-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    gap: 8px;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    display: block;
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-dark);
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--gradient-pink-blue);
    border-radius: 2px;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.nav-menu a:hover::before,
.nav-menu a.active::before {
    width: 80%;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-pink);
    background: rgba(255, 107, 157, 0.05);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: var(--primary-pink);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ========================================
   竹节式分层布局容器
======================================== */
.bamboo-section {
    position: relative;
    padding: 100px 40px;
    margin: 20px;
    border-radius: 30px;
    background: var(--white);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition: all 0.5s ease;
}

.bamboo-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-bamboo);
}

.bamboo-section:nth-child(even) {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 182, 193, 0.1) 100%);
}

.bamboo-section:nth-child(odd) {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(184, 228, 245, 0.1) 100%);
}

.section-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* ========================================
   首页 Banner - 全屏渐变
======================================== */
.hero-banner {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: var(--gradient-pink-blue);
    overflow: hidden;
    padding-top: 80px;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.hero-content {
    text-align: center;
    color: var(--white);
    z-index: 10;
    padding: 40px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.2);
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 40px;
    opacity: 0.95;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-btn {
    display: inline-block;
    padding: 18px 45px;
    background: var(--white);
    color: var(--primary-pink);
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

/* ========================================
   核心优势板块 - 卡片式布局
======================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 25px;
    box-shadow: var(--shadow-soft);
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-pink-blue);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--gradient-pink-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--white);
}

.feature-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.feature-desc {
    color: var(--text-light);
    line-height: 1.8;
}

/* ========================================
   快速入口板块
======================================== */
.quick-access {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 50px;
}

.access-card {
    position: relative;
    height: 200px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s ease;
}

.access-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.access-card:hover img {
    transform: scale(1.1);
}

.access-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: var(--white);
}

.access-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.access-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

/* ========================================
   资讯列表板块
======================================== */
.news-section {
    padding: 80px 40px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-purple-pink);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.news-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s ease;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
}

.news-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-content {
    padding: 25px;
}

.news-date {
    font-size: 0.9rem;
    color: var(--primary-pink);
    margin-bottom: 10px;
    font-weight: 500;
}

.news-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-excerpt {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-more {
    text-align: center;
    margin-top: 50px;
}

.news-more-btn {
    display: inline-block;
    padding: 15px 40px;
    background: var(--gradient-pink-blue);
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
}

.news-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

/* ========================================
   数据看板展示区
======================================== */
.data-dashboard {
    background: var(--gradient-pink-blue);
    padding: 80px 40px;
    border-radius: 30px;
    margin: 40px 20px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.data-card {
    background: var(--white);
    padding: 35px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-strong);
    transition: all 0.4s ease;
}

.data-card:hover {
    transform: translateY(-8px) scale(1.02);
}

.data-number {
    font-size: 3.5rem;
    font-weight: 800;
    background: var(--gradient-purple-pink);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.data-label {
    font-size: 1.1rem;
    color: var(--text-light);
    font-weight: 500;
}

/* ========================================
   页脚样式
======================================== */
.site-footer {
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a2e 100%);
    color: var(--white);
    padding: 80px 40px 40px;
    margin-top: 100px;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 60px;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo img {
    height: 60px;
    margin-bottom: 15px;
}

.footer-logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--gradient-pink-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-desc {
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--primary-pink);
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--primary-pink);
    transform: translateX(5px);
}

.footer-contact p {
    color: rgba(255,255,255,0.7);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    text-align: center;
    color: rgba(255,255,255,0.5);
}

/* ========================================
   内页通用样式
======================================== */
.page-header {
    background: var(--gradient-pink-blue);
    padding: 150px 40px 80px;
    text-align: center;
    color: var(--white);
    margin-top: 80px;
}

.page-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 15px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.page-subtitle {
    font-size: 1.2rem;
    opacity: 0.95;
}

.page-content {
    padding: 80px 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.content-section {
    margin-bottom: 80px;
}

.content-section:last-child {
    margin-bottom: 0;
}

.section-heading {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 30px;
    position: relative;
    padding-left: 20px;
}

.section-heading::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 30px;
    background: var(--gradient-pink-blue);
    border-radius: 3px;
}

/* ========================================
   服务页面样式
======================================== */
.service-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 35px;
}

.service-item {
    background: var(--white);
    border-radius: 25px;
    padding: 40px;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s ease;
    border: 2px solid transparent;
}

.service-item:hover {
    border-color: var(--primary-pink);
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-pink-blue);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 25px;
}

.service-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.service-desc {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 20px;
}

.service-features {
    list-style: none;
}

.service-features li {
    padding: 8px 0;
    color: var(--text-light);
    position: relative;
    padding-left: 25px;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-pink);
    font-weight: 700;
}

/* ========================================
   案例页面样式
======================================== */
.case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 35px;
}

.case-card {
    background: var(--white);
    border-radius: 25px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s ease;
}

.case-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
}

.case-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.case-card:hover .case-image img {
    transform: scale(1.1);
}

.case-info {
    padding: 30px;
}

.case-category {
    display: inline-block;
    padding: 6px 15px;
    background: var(--gradient-pink-blue);
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 15px;
}

.case-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.case-desc {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 20px;
}

.case-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-pink);
    font-weight: 600;
    transition: all 0.3s ease;
}

.case-link:hover {
    gap: 15px;
}

/* ========================================
   新闻详情页面样式
======================================== */
.article-detail {
    max-width: 900px;
    margin: 0 auto;
    background: var(--white);
    padding: 50px;
    border-radius: 25px;
    box-shadow: var(--shadow-soft);
}

.article-header {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid rgba(255, 107, 157, 0.1);
}

.article-meta {
    display: flex;
    gap: 20px;
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-body {
    font-size: 1.05rem;
    line-height: 2;
    color: var(--text-dark);
}

.article-body img {
    max-width: 100%;
    border-radius: 15px;
    margin: 30px 0;
    box-shadow: var(--shadow-soft);
}

.article-body p {
    margin-bottom: 20px;
}

.related-news {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid rgba(255, 107, 157, 0.1);
}

.related-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 30px;
}

/* ========================================
   动画效果
======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   响应式设计
======================================== */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .nav-container {
        padding: 0 25px;
    }
    
    .bamboo-section {
        padding: 80px 25px;
        margin: 15px;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        transform: translateY(-150%);
        opacity: 0;
        transition: all 0.4s ease;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .bamboo-section {
        padding: 60px 20px;
        margin: 10px;
    }
    
    .news-grid,
    .case-grid,
    .service-list {
        grid-template-columns: 1fr;
    }
    
    .article-detail {
        padding: 30px 20px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-access {
        grid-template-columns: 1fr;
    }
    
    .data-number {
        font-size: 2.5rem;
    }
}
