/* ========================================
   尧图建网站 - 全局样式文件
   香水潮流风 | 浅蓝 + 浅紫 + 亮粉
   ======================================== */

:root {
    --primary-blue: #a8d5ff;
    --primary-purple: #c4a8ff;
    --primary-pink: #ff88cc;
    --deep-blue: #4a6fa5;
    --deep-purple: #6b4c9a;
    --soft-white: #f8f9fc;
    --text-dark: #2d3748;
    --text-light: #718096;
    --gradient-main: linear-gradient(135deg, #a8d5ff 0%, #c4a8ff 50%, #ff88cc 100%);
    --gradient-soft: linear-gradient(180deg, #f8f9fc 0%, #ffffff 100%);
    --shadow-card: 0 10px 40px rgba(107, 76, 154, 0.15);
    --shadow-hover: 0 20px 60px rgba(107, 76, 154, 0.25);
    --border-radius-lg: 24px;
    --border-radius-md: 16px;
    --border-radius-sm: 8px;
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    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;
    background: var(--soft-white);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(168, 213, 255, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(196, 168, 255, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 136, 204, 0.2) 0%, transparent 40%);
    pointer-events: none;
    z-index: -1;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

.container-narrow {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================================
   顶部导航栏
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 30px rgba(107, 76, 154, 0.1);
    transition: var(--transition-smooth);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 40px rgba(107, 76, 154, 0.15);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo img {
    width: 48px;
    height: 48px;
    border-radius: var(--border-radius-sm);
    object-fit: cover;
}

.nav-menu {
    display: flex;
    gap: 8px;
    align-items: center;
}

.nav-link {
    padding: 10px 20px;
    border-radius: var(--border-radius-md);
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--gradient-main);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 80%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--deep-purple);
    background: rgba(196, 168, 255, 0.1);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: var(--deep-purple);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

.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);
}

/* ========================================
   英雄区域 - 折线分割布局
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fc 100%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text h1 {
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease-out;
}

.hero-text p {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 40px;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-main);
    color: white;
    box-shadow: 0 10px 30px rgba(196, 168, 255, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(196, 168, 255, 0.5);
}

.btn-secondary {
    background: white;
    color: var(--deep-purple);
    border: 2px solid var(--primary-purple);
}

.btn-secondary:hover {
    background: var(--primary-purple);
    color: white;
    transform: translateY(-3px);
}

.hero-image {
    position: relative;
    animation: fadeInRight 1s ease-out 0.3s both;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-card);
    position: relative;
    z-index: 2;
}

.hero-shape {
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--gradient-main);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    opacity: 0.3;
    animation: morphShape 8s ease-in-out infinite;
    z-index: 1;
}

.hero-shape.one {
    top: -50px;
    right: -50px;
}

.hero-shape.two {
    bottom: -50px;
    left: -50px;
    animation-delay: -4s;
}

/* 折线分割装饰 */
.wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    overflow: hidden;
}

.wave-divider svg {
    width: 100%;
    height: 100%;
}

.wave-divider path {
    fill: var(--soft-white);
    stroke: none;
}

/* ========================================
   核心优势板块
   ======================================== */
.features-section {
    padding: 120px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-tag {
    display: inline-block;
    padding: 8px 24px;
    background: rgba(196, 168, 255, 0.15);
    color: var(--deep-purple);
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.feature-card {
    background: white;
    padding: 40px 32px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-card);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(196, 168, 255, 0.2);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-main);
    transform: scaleX(0);
    transition: var(--transition-smooth);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 72px;
    height: 72px;
    background: var(--gradient-main);
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 32px;
}

.feature-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.feature-desc {
    color: var(--text-light);
    line-height: 1.8;
}

/* ========================================
   服务板块 - 折线布局
   ======================================== */
.services-section {
    padding: 120px 0;
    background: linear-gradient(180deg, #f8f9fc 0%, #ffffff 100%);
    position: relative;
}

.services-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.service-item {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: center;
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-card);
    transition: var(--transition-smooth);
}

.service-item:nth-child(even) {
    grid-template-columns: 1.2fr 1fr;
}

.service-item:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-hover);
}

.service-img {
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(107, 76, 154, 0.15);
}

.service-img img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.service-item:hover .service-img img {
    transform: scale(1.05);
}

.service-content {
    padding: 20px 0;
}

.service-content h3 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--deep-purple);
}

.service-content p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 20px;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--deep-purple);
    font-weight: 600;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
    transition: var(--transition-smooth);
}

.service-link:hover {
    border-bottom-color: var(--primary-pink);
}

/* ========================================
   资讯列表板块
   ======================================== */
.news-section {
    padding: 120px 0;
    background: var(--soft-white);
}

.news-tabs {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.news-tab {
    padding: 12px 32px;
    background: white;
    border-radius: 50px;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 2px solid transparent;
}

.news-tab:hover,
.news-tab.active {
    background: var(--gradient-main);
    color: white;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 32px;
}

.news-card {
    background: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: var(--transition-smooth);
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.news-img {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}

.news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.news-card:hover .news-img img {
    transform: scale(1.1);
}

.news-category {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 16px;
    background: var(--gradient-main);
    color: white;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
}

.news-content {
    padding: 28px;
}

.news-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-excerpt {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(107, 76, 154, 0.1);
    font-size: 14px;
    color: var(--text-light);
}

.news-more {
    text-align: center;
    margin-top: 60px;
}

/* ========================================
   页脚
   ======================================== */
.footer {
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
    color: white;
    padding: 80px 0 40px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-main);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand h3 {
    font-size: 28px;
    margin-bottom: 20px;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 24px;
}

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social a {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.footer-social a:hover {
    background: var(--gradient-main);
    transform: translateY(-3px);
}

.footer-links h4 {
    font-size: 18px;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 12px;
}

.footer-links h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--gradient-main);
    border-radius: 2px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: white;
    padding-left: 8px;
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

/* ========================================
   内页通用样式
   ======================================== */
.page-header {
    padding: 180px 0 80px;
    background: linear-gradient(135deg, #f8f9fc 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(196, 168, 255, 0.2) 0%, transparent 70%);
    border-radius: 50%;
}

.page-title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
    text-align: center;
    margin-bottom: 20px;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

.page-content {
    padding: 80px 0;
}

/* ========================================
   资讯列表页
   ======================================== */
.news-list-page {
    padding-top: 140px;
}

.news-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 32px;
    margin-bottom: 60px;
}

/* ========================================
   资讯详情页
   ======================================== */
.article-detail {
    padding-top: 140px;
    min-height: 100vh;
}

.article-main {
    max-width: 900px;
    margin: 0 auto 80px;
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 60px;
    box-shadow: var(--shadow-card);
}

.article-header {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 2px solid rgba(196, 168, 255, 0.2);
}

.article-title {
    font-size: 36px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.4;
}

.article-meta {
    display: flex;
    gap: 24px;
    color: var(--text-light);
    font-size: 15px;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-cover {
    width: 100%;
    height: 450px;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: 0 8px 24px rgba(107, 76, 154, 0.15);
}

.article-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-body {
    font-size: 17px;
    line-height: 2;
    color: var(--text-dark);
}

.article-body p {
    margin-bottom: 24px;
}

.article-body img {
    max-width: 100%;
    border-radius: var(--border-radius-md);
    margin: 24px 0;
    box-shadow: 0 4px 16px rgba(107, 76, 154, 0.1);
}

.article-related {
    max-width: 900px;
    margin: 0 auto;
}

.related-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 32px;
    color: var(--deep-purple);
}

/* ========================================
   动画效果
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes morphShape {
    0%, 100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
    25% {
        border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
    }
    50% {
        border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
    }
    75% {
        border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
    }
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   响应式设计
   ======================================== */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-text {
        order: 2;
    }
    
    .hero-image {
        order: 1;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .services-wrapper {
        grid-template-columns: 1fr;
    }
    
    .service-item,
    .service-item:nth-child(even) {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: white;
        flex-direction: column;
        padding: 100px 32px;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
        transition: var(--transition-smooth);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .news-grid,
    .news-list-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .article-main {
        padding: 32px;
    }
    
    .article-title {
        font-size: 26px;
    }
    
    .article-cover {
        height: 280px;
    }
}

@media (max-width: 480px) {
    .container,
    .container-narrow {
        padding: 0 16px;
    }
    
    .btn {
        padding: 14px 28px;
        font-size: 14px;
    }
    
    .feature-card {
        padding: 28px 20px;
    }
    
    .service-item {
        padding: 24px;
    }
}
