/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 主色系 - 深邃科技感 */
    --primary-color: #2D3748;
    --primary-light: #4A5568;
    --primary-dark: #1A202C;
    --secondary-color: #38B2AC;
    --accent-color: #805AD5;
    
    /* 辅助色 - 活力橙色（用于CTA） */
    --cta-color: #F56565;
    --cta-hover: #E53E3E;
    
    /* 成功/警告色 */
    --success-color: #10b981;
    --warning-color: #f59e0b;
    
    /* 中性色系统 */
    --dark-color: #1a1a2e;
    --gray-900: #1f2937;
    --gray-800: #374151;
    --gray-700: #4b5563;
    --gray-600: #6b7280;
    --gray-500: #9ca3af;
    --gray-400: #d1d5db;
    --gray-300: #e5e7eb;
    --gray-200: #f3f4f6;
    --gray-100: #f9fafb;
    --light-color: #f8f9fa;
    
    /* 文字色 */
    --text-color: #1f2937;
    --text-secondary: #4b5563;
    --text-light: #6b7280;
    --text-lighter: #9ca3af;
    
    /* 边框色 */
    --border-color: #e5e7eb;
    --border-light: #f3f4f6;
    
    /* 阴影系统 */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* 现代渐变 */
    --gradient-primary: linear-gradient(135deg, #2D3748 0%, #4A5568 100%);
    --gradient-secondary: linear-gradient(135deg, #38B2AC 0%, #319795 100%);
    --gradient-warm: linear-gradient(135deg, #F56565 0%, #FC8181 100%);
    --gradient-overlay: linear-gradient(135deg, rgba(45, 55, 72, 0.92) 0%, rgba(74, 85, 104, 0.85) 100%);
    
    /* 动画 */
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* 间距系统 (8px grid) */
    --space-1: 0.5rem;   /* 8px */
    --space-2: 1rem;     /* 16px */
    --space-3: 1.5rem;   /* 24px */
    --space-4: 2rem;     /* 32px */
    --space-5: 2.5rem;   /* 40px */
    --space-6: 3rem;     /* 48px */
    --space-8: 4rem;     /* 64px */
    --space-10: 5rem;    /* 80px */
    --space-12: 6rem;    /* 96px */
    --space-16: 8rem;    /* 128px */
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    overflow-x: hidden;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: #ffffff;
}

/* 字体层级系统 */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark-color);
    margin: 0;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); letter-spacing: -0.03em; font-weight: 700; }
h2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.02em; font-weight: 700; }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 600; }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); font-weight: 600; }
h5 { font-size: 1.25rem; font-weight: 600; }
h6 { font-size: 1.125rem; font-weight: 600; }

p {
    margin: 0 0 1rem 0;
    line-height: 1.7;
}

.lead {
    font-size: 1.25rem;
    font-weight: 300;
    line-height: 1.8;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-3);
}

/* 滚动进度条 */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--gradient-secondary);
    z-index: 9999;
    transition: width 0.1s ease;
    box-shadow: 0 0 10px rgba(56, 178, 172, 0.5);
}

/* 页面加载动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

body {
    animation: fadeIn 0.5s ease-in;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(24px) saturate(180%);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.96);
}

.navbar.scrolled .nav-content {
    padding: 10px 0;
}

.navbar.scrolled .logo img {
    height: 36px;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 700;
    font-size: 1.2rem;
}

.logo img {
    height: 40px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 35px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: var(--transition);
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gradient-secondary);
    transition: var(--transition);
    border-radius: 3px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--secondary-color);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--dark-color);
    border-radius: 3px;
    transition: var(--transition);
}

/* 首页横幅 */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('images/bg1.jpg') center/cover;
    background-attachment: fixed;
    filter: brightness(0.9);
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-overlay);
}

/* 粒子背景效果 */
.hero-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: float 20s infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) translateX(100px);
        opacity: 0;
    }
}

.hero-content {
    text-align: center;
    color: white;
    animation: fadeInUp 1s ease-out;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: var(--space-4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
    letter-spacing: 0.02em;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 700;
    margin-bottom: var(--space-4);
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.title-line {
    display: block;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
    color: white;
    text-shadow: 0 2px 40px rgba(0, 0, 0, 0.3);
}

.title-line:nth-child(1) {
    animation-delay: 0.3s;
}

.title-line:nth-child(2) {
    animation-delay: 0.5s;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: var(--space-6);
    opacity: 0;
    font-weight: 300;
    animation: fadeInUp 0.8s ease-out 0.7s forwards;
    letter-spacing: 0.05em;
}

.hero-buttons {
    display: flex;
    gap: var(--space-3);
    justify-content: center;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.9s forwards;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    letter-spacing: 0.02em;
}

/* 按钮涟漪效果 */
.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--cta-color);
    color: white;
    box-shadow: 0 4px 20px rgba(245, 101, 101, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(245, 101, 101, 0.4);
    background: var(--cta-hover);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-outline {
    border-color: rgba(255, 255, 255, 0.8);
    color: white;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.15);
}

.btn-outline:hover {
    background: white;
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.4);
    border-color: white;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.mouse {
    width: 25px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 15px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 2px;
    animation: scroll 1.5s infinite;
}

/* 通用区块样式 */
section {
    padding: var(--space-16) 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-12);
    position: relative;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: var(--space-3);
    position: relative;
    display: inline-block;
    letter-spacing: -0.02em;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-secondary);
    border-radius: 2px;
}

.section-subtitle {
    color: var(--text-light);
    font-size: 1.25rem;
    margin-top: var(--space-4);
    font-weight: 300;
    letter-spacing: 0.02em;
}

/* 页面头部 */
.page-header {
    padding: 150px 0 100px;
    background: var(--gradient-primary);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('images/bg2.jpg') center/cover;
    opacity: 0.15;
}

.page-header h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
    letter-spacing: -0.02em;
    color: white;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

/* 首页简介区块 */
.intro {
    padding: 100px 0;
    background: white;
}

.intro-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.intro-badge {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, rgba(56, 178, 172, 0.1), rgba(49, 151, 149, 0.1));
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: var(--space-3);
    border: 1px solid rgba(56, 178, 172, 0.25);
    color: var(--secondary-color);
    letter-spacing: 0.02em;
}

.intro-content h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 30px;
    letter-spacing: -0.02em;
}

.intro-text {
    font-size: 1.125rem;
    line-height: 1.9;
    color: var(--text-secondary);
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.intro-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.intro-feature {
    text-align: center;
    padding: var(--space-4);
    border-radius: 12px;
    transition: var(--transition);
}

.intro-feature:hover {
    background: var(--gray-100);
    transform: translateY(-4px);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
    filter: grayscale(0.3);
    transition: var(--transition);
}

.intro-feature:hover .feature-icon {
    filter: grayscale(0);
    transform: scale(1.1);
}

.feature-number {
    font-size: 3.5rem;
    font-weight: 700;
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.feature-label {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.intro-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn-outline-dark {
    border-color: var(--dark-color);
    color: var(--dark-color);
    background: transparent;
}

.btn-outline-dark:hover {
    background: var(--dark-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* 图片展示区 */
.showcase {
    padding: 100px 0;
    background: var(--light-color);
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.showcase-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 350px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: var(--transition);
    cursor: pointer;
}

.showcase-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(45, 55, 72, 0.2), 0 4px 12px rgba(0, 0, 0, 0.08);
}

.showcase-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.showcase-item:hover img {
    transform: scale(1.1);
}

.showcase-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(45, 55, 72, 0.95), rgba(45, 55, 72, 0.7));
    padding: 30px 25px;
    color: white;
    transition: var(--transition);
    backdrop-filter: blur(8px);
}

.showcase-overlay h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: white;
    letter-spacing: -0.01em;
}

.showcase-overlay p {
    font-size: 1rem;
    opacity: 0.95;
}

/* 服务项目 */
.services {
    background: var(--light-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    padding: var(--space-6) var(--space-5);
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
    transition: var(--transition);
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}

/* 卡片光泽效果 */
.service-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transform: rotate(45deg);
    transition: var(--transition-slow);
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(56, 178, 172, 0.15), 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: rgba(56, 178, 172, 0.3);
}

.service-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto var(--space-4);
    background: var(--gradient-secondary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    position: relative;
    box-shadow: 0 8px 24px rgba(56, 178, 172, 0.25);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 32px rgba(56, 178, 172, 0.35);
}

.service-icon svg {
    width: 40px;
    height: 40px;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--space-3);
    color: var(--dark-color);
    letter-spacing: -0.01em;
}

.service-desc {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-3);
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 20px 0 0 0;
    text-align: left;
}

.service-features li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    color: var(--text-color);
    font-size: 0.95rem;
}

.service-features li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* 案例展示 - 时间线样式 */
.projects {
    background: white;
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 60px auto 0;
    padding: 0 20px;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: linear-gradient(180deg, var(--secondary-color) 0%, var(--accent-color) 100%);
    transform: translateX(-50%);
    opacity: 0.3;
}

.timeline-item {
    position: relative;
    margin-bottom: 60px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: 0;
    margin-right: auto;
    text-align: left;
    padding-right: calc(50% + 40px);
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: auto;
    margin-right: 0;
    text-align: right;
    padding-left: calc(50% + 40px);
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 24px;
    width: 16px;
    height: 16px;
    background: white;
    border: 4px solid var(--secondary-color);
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 0 4px rgba(56, 178, 172, 0.2);
    z-index: 10;
    animation: pulse 2s infinite;
}

.timeline-date {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary-color);
    color: #fff;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    top: -10px;
    z-index: 20;
    box-shadow: 0 4px 12px rgba(56, 178, 172, 0.3);
    letter-spacing: 0.02em;
}

.timeline-content {
    background: #fff;
    border-radius: 16px;
    padding: 35px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    position: relative;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.timeline-content:hover {
    box-shadow: 0 12px 40px rgba(56, 178, 172, 0.15), 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
    border-color: rgba(56, 178, 172, 0.25);
}

.timeline-content h3 {
    color: var(--dark-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.project-tags {
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.timeline-item:nth-child(even) .project-tags {
    justify-content: flex-end;
}

.project-tags .tag {
    display: inline-block;
    background: var(--secondary-color);
    color: #fff;
    padding: 6px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.timeline-content p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 20px;
}

.project-highlights {
    list-style: none;
    padding: 0;
    margin: 0;
}

.project-highlights li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    color: var(--text-color);
    line-height: 1.6;
}

.project-highlights li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 16px;
}

.timeline-item:nth-child(even) .project-highlights li {
    padding-left: 0;
    padding-right: 25px;
}

.timeline-item:nth-child(even) .project-highlights li:before {
    left: auto;
    right: 0;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 4px rgba(56, 178, 172, 0.2);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(56, 178, 172, 0.35);
    }
}

/* 合作伙伴 */
.partners {
    background: var(--light-color);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    align-items: center;
}

.partner-item {
    background: white;
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 250px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.partner-item a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.partner-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(56, 178, 172, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06);
    border-color: rgba(56, 178, 172, 0.2);
}

.partner-item img {
    max-width: 100%;
    width: auto;
    height: 80px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: var(--transition);
    margin-bottom: 20px;
}

.partner-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

.partner-item h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.partner-item p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* 团队成员 */
.team-section {
    padding: 100px 0;
    background: white;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.team-member {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(30px);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.team-member:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(56, 178, 172, 0.15), 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: rgba(56, 178, 172, 0.25);
}

.member-photo {
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: var(--light-color);
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.team-member:hover .member-photo img {
    transform: scale(1.05);
}

.member-info {
    padding: 30px;
    text-align: center;
}

.member-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.member-role {
    font-size: 1rem;
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 15px;
    letter-spacing: 0.02em;
}

.member-desc {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* 联系我们 */
.contact {
    background: var(--gradient-primary);
    color: white;
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.08)"/></svg>');
    opacity: 0.4;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.contact-info > p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: start;
}

.contact-item svg {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    margin-top: 5px;
}

.contact-item h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.contact-item p {
    opacity: 0.9;
}

.contact-form {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(16px);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-form h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: white;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 16px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
    color: white;
    font-family: inherit;
    transition: var(--transition);
    font-size: 15px;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.65);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.contact-form button {
    width: 100%;
    cursor: pointer;
    font-size: 1rem;
}

/* 联系页面样式 */
.contact-page {
    padding: 80px 0;
    background: var(--light-color);
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.contact-card-item {
    background: white;
    border-radius: 16px;
    padding: 50px 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    text-align: center;
    transition: var(--transition);
    opacity: 0;
    transform: translateY(30px);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.contact-card-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.contact-card-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(56, 178, 172, 0.15), 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: rgba(56, 178, 172, 0.25);
}

.contact-icon {
    font-size: 4rem;
    margin-bottom: 25px;
}

.contact-card-item h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 15px;
    letter-spacing: -0.01em;
}

.contact-card-item > p {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 10px;
}

.contact-detail {
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    color: var(--primary-color) !important;
    margin: 20px 0 !important;
}

.contact-detail a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
}

.contact-detail a:hover {
    color: var(--accent-color);
}

.contact-time {
    font-size: 0.9rem !important;
    color: var(--text-light) !important;
    margin-top: 15px !important;
}

.contact-map {
    background: white;
    border-radius: 16px;
    padding: 50px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.map-info {
    max-width: 500px;
    margin: 0 auto;
}

/* 页脚 */
.footer {
    background: var(--dark-color);
    color: white;
    padding: 40px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-logo img {
    height: 40px;
}

.footer-logo p {
    opacity: 0.8;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    opacity: 0.7;
    font-size: 0.9rem;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 52px;
    height: 52px;
    background: white;
    color: var(--primary-color);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(56, 178, 172, 0.3);
    border-color: var(--secondary-color);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
}

/* 悬浮咨询按钮 */
.floating-cta {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 64px;
    height: 64px;
    background: var(--cta-color);
    color: white;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 8px 28px rgba(245, 101, 101, 0.35);
    transition: var(--transition);
    z-index: 998;
    animation: pulse-cta 2.5s infinite;
}

.floating-cta:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 36px rgba(245, 101, 101, 0.45);
    background: var(--cta-hover);
}

.floating-cta svg {
    width: 28px;
    height: 28px;
    margin-bottom: 2px;
}

.floating-cta span {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

@keyframes pulse-cta {
    0%, 100% {
        box-shadow: 0 8px 28px rgba(245, 101, 101, 0.35), 0 0 0 0 rgba(245, 101, 101, 0.7);
    }
    50% {
        box-shadow: 0 8px 28px rgba(245, 101, 101, 0.35), 0 0 0 16px rgba(245, 101, 101, 0);
    }
}

/* 动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(15px);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        padding: 30px;
        gap: 20px;
        transition: var(--transition);
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }

    .showcase-grid {
        grid-template-columns: 1fr;
    }

    .showcase-item {
        height: 300px;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .member-photo {
        height: 350px;
    }
    
    /* 时间线移动端适配 */
    .timeline {
        padding: 0 10px;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-dot {
        left: 20px;
    }

    .timeline-date {
        left: 20px;
        transform: translateX(0);
        font-size: 12px;
        padding: 4px 12px;
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 50px;
        margin-right: 0;
        text-align: left;
        padding-left: 20px;
        padding-right: 20px;
        padding-top: 25px;
    }

    .timeline-content h3 {
        font-size: 1.2rem;
    }

    .timeline-content p {
        font-size: 14px;
    }

    .project-tags {
        justify-content: flex-start !important;
    }

    .project-tags .tag {
        font-size: 11px;
        padding: 4px 10px;
    }

    .project-highlights {
        font-size: 13px;
    }

    .project-highlights li {
        padding-left: 20px !important;
        padding-right: 0 !important;
    }

    .project-highlights li:before {
        left: 0 !important;
        right: auto !important;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-cards {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-card-item {
        padding: 40px 30px;
    }

    .contact-map {
        padding: 40px 30px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.6rem;
    }
    
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .showcase-grid {
        grid-template-columns: 1fr;
    }

    .showcase-item {
        height: 250px;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .member-photo {
        height: 300px;
    }
    
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }

    .floating-cta {
        width: 55px;
        height: 55px;
        bottom: 80px;
        right: 20px;
    }

    .floating-cta svg {
        width: 24px;
        height: 24px;
    }

    .floating-cta span {
        font-size: 11px;
    }

    /* 时间线小屏幕优化 */
    .timeline {
        margin: 40px auto 0;
        padding: 0 5px;
    }

    .timeline::before {
        left: 15px;
        width: 2px;
    }

    .timeline-dot {
        left: 15px;
        width: 14px;
        height: 14px;
        border-width: 3px;
    }

    .timeline-date {
        left: 15px;
        font-size: 11px;
        padding: 3px 10px;
        top: -8px;
    }

    .timeline-item {
        margin-bottom: 40px;
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 40px;
        padding: 20px 15px;
    }

    .timeline-content h3 {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }

    .timeline-content p {
        font-size: 13px;
        line-height: 1.6;
    }

    .project-tags .tag {
        font-size: 10px;
        padding: 3px 8px;
    }

    .project-highlights {
        font-size: 12px;
    }

    .project-highlights li {
        margin-bottom: 8px;
    }

    .contact-card-item {
        padding: 30px 20px;
    }

    .contact-icon {
        font-size: 3rem;
    }

    .contact-detail {
        font-size: 1.1rem !important;
    }

    .contact-map {
        padding: 30px 20px;
    }
}

/* ========== 现代化增强样式 ========== */

/* 按钮图标动画 */
.btn svg {
    transition: transform 0.3s ease;
}

.btn-primary:hover svg {
    transform: translateX(4px);
}

/* 卡片光泽效果优化 */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.5s ease;
}

.service-card:hover::before {
    left: 100%;
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* 选中文本样式 */
::selection {
    background: var(--secondary-color);
    color: white;
}

::-moz-selection {
    background: var(--secondary-color);
    color: white;
}

/* 焦点状态优化 */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

/* 图片加载占位 */
img {
    background: var(--gray-100);
}

/* 链接悬停效果 */
a {
    transition: var(--transition);
}

/* 卡片内容渐显效果 */
.service-card .service-features,
.timeline-content .project-highlights {
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.service-card:hover .service-features,
.timeline-content:hover .project-highlights {
    opacity: 1;
}

/* 页脚链接悬停效果 */
.footer-links a {
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.footer-links a:hover::after {
    width: 100%;
}

/* 导航链接活动状态增强 */
.nav-link.active {
    font-weight: 600;
}

/* Hero区域文字阴影优化 */
.hero-title,
.hero-subtitle {
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

/* 表单按钮全宽样式 */
.contact-form button.btn {
    width: 100%;
    justify-content: center;
}

/* 响应式字体优化 */
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    
    .hero-badge,
    .intro-badge {
        font-size: 0.85rem;
        padding: 8px 18px;
    }
    
    .feature-icon {
        font-size: 2rem;
    }
}

/* 平滑过渡所有可交互元素 */
button,
a,
input,
textarea,
select {
    transition: var(--transition);
}

/* 卡片阴影层次优化 */
.service-card,
.showcase-item,
.partner-item,
.team-member,
.contact-card-item,
.timeline-content {
    will-change: transform, box-shadow;
}

/* 性能优化 - 使用transform代替top/left */
.back-to-top,
.floating-cta {
    will-change: transform;
}

/* 图片懒加载占位效果 */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* 渐变文字效果 */
.gradient-text {
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 动画延迟类 */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* 页面加载动画 */
@keyframes pageLoad {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-load {
    animation: pageLoad 0.6s ease-out;
}

/* 脉冲动画 */
@keyframes pulse-soft {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.pulse-soft {
    animation: pulse-soft 2s ease-in-out infinite;
}

/* 呼吸灯效果 */
@keyframes breathe {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

.breathe {
    animation: breathe 3s ease-in-out infinite;
}
