/* ========================================
   客赢网络 - 全局样式文件
   咖啡 Ins 风：奶白 + 浅棕 + 浅蓝
   ======================================== */

:root {
    --cream-white: #FDF8F3;
    --light-brown: #C4A57B;
    --deep-brown: #8B6F4E;
    --light-blue: #B8D4E3;
    --soft-blue: #A7C4D9;
    --text-dark: #4A4A4A;
    --text-light: #7A7A7A;
    --white: #FFFFFF;
    --shadow-soft: 0 4px 20px rgba(196, 165, 123, 0.15);
    --shadow-medium: 0 8px 30px rgba(139, 111, 78, 0.2);
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: var(--cream-white);
    color: var(--text-dark);
    line-height: 1.8;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ========================================
   导航栏样式
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    transition: var(--transition-smooth);
    padding: 20px 0;
}

.header.scrolled {
    background: rgba(253, 248, 243, 0.98);
    box-shadow: var(--shadow-soft);
    padding: 15px 0;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 50%;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--deep-brown);
    letter-spacing: 2px;
}

.nav-menu {
    display: flex;
    gap: 35px;
}

.nav-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--light-brown), var(--soft-blue));
    transition: var(--transition-smooth);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--deep-brown);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: var(--deep-brown);
    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);
}

/* ========================================
   波浪曲线分割
   ======================================== */
.wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.wave-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 80px;
}

.wave-divider .shape-fill {
    fill: var(--cream-white);
}

.wave-divider-top {
    top: 0;
    bottom: auto;
    transform: rotate(180deg);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--cream-white) 0%, var(--light-blue) 100%);
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--light-brown), var(--soft-blue));
    opacity: 0.1;
    animation: float 8s ease-in-out infinite;
}

.hero-shape:nth-child(1) {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.hero-shape:nth-child(2) {
    width: 300px;
    height: 300px;
    bottom: 10%;
    left: -50px;
    animation-delay: 2s;
}

.hero-shape:nth-child(3) {
    width: 200px;
    height: 200px;
    top: 40%;
    right: 20%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-30px) rotate(10deg);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 0 40px;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    color: var(--deep-brown);
    margin-bottom: 25px;
    line-height: 1.2;
    opacity: 0;
    transform: translateY(40px);
    animation: fadeInUp 1s ease forwards 0.3s;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-light);
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(40px);
    animation: fadeInUp 1s ease forwards 0.6s;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    opacity: 0;
    transform: translateY(40px);
    animation: fadeInUp 1s ease forwards 0.9s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn {
    padding: 16px 40px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, var(--light-brown), var(--deep-brown));
    color: var(--white);
    box-shadow: 0 8px 25px rgba(196, 165, 123, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(196, 165, 123, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--deep-brown);
    border: 2px solid var(--deep-brown);
}

.btn-secondary:hover {
    background: var(--deep-brown);
    color: var(--white);
}

/* ========================================
   Section Styles
   ======================================== */
.section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--deep-brown);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--light-brown), var(--soft-blue));
    border-radius: 2px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-light);
    margin-top: 25px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ========================================
   Service Cards
   ======================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
}

.service-card {
    background: var(--white);
    border-radius: 20px;
    padding: 40px 35px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(40px);
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--light-brown), var(--soft-blue));
    transform: scaleX(0);
    transition: var(--transition-smooth);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 25px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--light-brown), var(--soft-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
}

.service-card h3 {
    font-size: 22px;
    color: var(--deep-brown);
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* ========================================
   Feature Section
   ======================================== */
.features-section {
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--cream-white) 100%);
}

.features-wrapper {
    display: flex;
    align-items: center;
    gap: 60px;
}

.features-image {
    flex: 1;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

.features-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.features-content {
    flex: 1;
}

.feature-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateX(-30px);
}

.feature-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.feature-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--light-brown), var(--deep-brown));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
    flex-shrink: 0;
}

.feature-text h4 {
    font-size: 20px;
    color: var(--deep-brown);
    margin-bottom: 8px;
}

.feature-text p {
    color: var(--text-light);
}

/* ========================================
   Case Studies
   ======================================== */
.cases-section {
    background: var(--white);
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.case-card {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    opacity: 0;
    transform: scale(0.9);
}

.case-card.visible {
    opacity: 1;
    transform: scale(1);
}

.case-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
}

.case-image {
    position: relative;
    overflow: hidden;
}

.case-image img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.case-card:hover .case-image img {
    transform: scale(1.1);
}

.case-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(139, 111, 78, 0.8) 100%);
    opacity: 0;
    transition: var(--transition-smooth);
    display: flex;
    align-items: flex-end;
    padding: 25px;
}

.case-card:hover .case-overlay {
    opacity: 1;
}

.case-info {
    padding: 25px;
    background: var(--white);
}

.case-info h3 {
    font-size: 20px;
    color: var(--deep-brown);
    margin-bottom: 10px;
}

.case-info p {
    color: var(--text-light);
    font-size: 14px;
}

/* ========================================
   News Section
   ======================================== */
.news-section {
    background: var(--cream-white);
}

.news-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.news-tab {
    padding: 12px 30px;
    border-radius: 30px;
    background: var(--white);
    color: var(--text-dark);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-soft);
}

.news-tab:hover,
.news-tab.active {
    background: linear-gradient(135deg, var(--light-brown), var(--deep-brown));
    color: var(--white);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.news-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    opacity: 0;
    transform: translateY(30px);
}

.news-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
}

.news-image {
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-content {
    padding: 25px;
}

.news-date {
    font-size: 14px;
    color: var(--light-brown);
    margin-bottom: 10px;
}

.news-content h3 {
    font-size: 18px;
    color: var(--deep-brown);
    margin-bottom: 12px;
    line-height: 1.4;
}

.news-content p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: linear-gradient(135deg, var(--deep-brown) 0%, #6B5340 100%);
    color: var(--cream-white);
    padding: 80px 0 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-logo img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.footer-logo-text {
    font-size: 22px;
    font-weight: 700;
}

.footer-desc {
    color: rgba(253, 248, 243, 0.8);
    line-height: 1.8;
}

.footer-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 25px;
    position: relative;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--light-brown);
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(253, 248, 243, 0.8);
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--light-brown);
    padding-left: 8px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    color: rgba(253, 248, 243, 0.8);
}

.footer-bottom {
    border-top: 1px solid rgba(253, 248, 243, 0.2);
    padding-top: 30px;
    text-align: center;
    color: rgba(253, 248, 243, 0.6);
    font-size: 14px;
}

/* ========================================
   Page Header
   ======================================== */
.page-header {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--cream-white) 100%);
    padding-top: 100px;
    overflow: hidden;
}

.page-header-content {
    text-align: center;
    z-index: 2;
}

.page-header h1 {
    font-size: 48px;
    color: var(--deep-brown);
    margin-bottom: 15px;
}

.page-header p {
    font-size: 18px;
    color: var(--text-light);
}

/* ========================================
   About Page
   ======================================== */
.about-intro {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 80px;
}

.about-image {
    flex: 1;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

.about-image img {
    width: 100%;
    height: 450px;
    object-fit: cover;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 36px;
    color: var(--deep-brown);
    margin-bottom: 25px;
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 2;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.stat-item {
    text-align: center;
    padding: 30px;
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow-soft);
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--light-brown), var(--deep-brown));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.stat-label {
    color: var(--text-light);
    font-size: 16px;
}

/* ========================================
   Contact Page
   ======================================== */
.contact-wrapper {
    display: flex;
    gap: 50px;
}

.contact-form-container {
    flex: 1.5;
    background: var(--white);
    padding: 50px;
    border-radius: 20px;
    box-shadow: var(--shadow-medium);
}

.contact-info-container {
    flex: 1;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--deep-brown);
}

.form-control {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #E8E0D5;
    border-radius: 10px;
    font-size: 16px;
    transition: var(--transition-smooth);
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--light-brown);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.contact-info-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-soft);
    margin-bottom: 25px;
}

.contact-info-card h4 {
    font-size: 18px;
    color: var(--deep-brown);
    margin-bottom: 15px;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
    color: var(--text-light);
}

/* ====================================
   Responsive Design
   ======================================== */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 48px;
    }
    
    .section-title {
        font-size: 36px;
    }
}

@media (max-width: 992px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--cream-white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        transition: var(--transition-smooth);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .features-wrapper,
    .about-intro,
    .contact-wrapper {
        flex-direction: column;
    }
    
    .features-image img,
    .about-image img {
        height: 350px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .section-title {
        font-size: 30px;
    }
    
    .services-grid,
    .cases-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .page-header h1 {
        font-size: 36px;
    }
    
    .about-text h2 {
        font-size: 28px;
    }
    
    .contact-form-container {
        padding: 30px;
    }
}

@media (max-width: 576px) {
    .nav-container {
        padding: 0 20px;
    }
    
    .container {
        padding: 0 20px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .service-card {
        padding: 30px 25px;
    }
}

/* ========================================
   Animation Classes
   ======================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}
