/* ==================== 反主流设计理念 ==================== 
 * 现代但不要蓝紫渐变色 → 浅灰 + 天蓝
 * 极简但要有温度 → 大留白 + 手绘感
 * 科技感但不要冰冷 → 柔和阴影 + 温暖点缀
 */

/* ==================== 全局样式 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 浅灰色系 */
    --bg-primary: #fafafa;
    --bg-secondary: #f5f5f7;
    --bg-warm: #faf9f7;
    
    /* 天蓝色系 */
    --accent-sky: #4A90E2;
    --accent-sky-light: #6AA3E8;
    --accent-sky-dark: #2C7BC7;
    
    /* 暖色点缀 */
    --warm-orange: #E8A86A;
    --warm-cream: #FDF8F3;
    
    /* 文字颜色 */
    --text-primary: #2c2c2c;
    --text-secondary: #5a5a5a;
    --text-tertiary: #8a8a8a;
    
    /* 柔和阴影 */
    --shadow-soft: 0 4px 24px rgba(74, 144, 226, 0.08);
    --shadow-warm: 0 8px 32px rgba(232, 168, 106, 0.12);
    --shadow-float: 0 12px 48px rgba(74, 144, 226, 0.15);
    
    /* 手绘感边框 */
    --border-handdrawn: 2px solid #e8e8ea;
    --border-accent: 2px solid var(--accent-sky);
    
    /* 平滑过渡 */
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    
    /* 字体 */
    --font-primary: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    --font-handwritten: 'Georgia', 'Times New Roman', serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ==================== 容器 ==================== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ==================== 导航栏 ==================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(250, 250, 250, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid rgba(232, 232, 234, 0.5);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-soft);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    z-index: 1001;
    font-weight: 500;
    font-size: 1.1rem;
    color: var(--text-primary);
    letter-spacing: 0.02em;
}

.logo-img {
    height: 36px;
    width: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 48px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 0.03em;
    position: relative;
    padding: 8px 0;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent-sky);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-link:hover {
    color: var(--accent-sky);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: var(--accent-sky);
}

/* 汉堡菜单 */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 28px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger span {
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* ==================== 首页横幅 ==================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 720px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, var(--bg-warm) 0%, var(--bg-primary) 100%);
    overflow: hidden;
}

.hero-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.hero-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    opacity: 0;
    animation: circleFloat 6s ease-in-out infinite;
}

.hero-circle-2 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    opacity: 0;
    animation: circleFloat 6s ease-in-out infinite reverse;
    animation-delay: 0.5s;
}

@keyframes circleFloat {
    0%, 100% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.05);
    }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(74, 144, 226, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--text-primary);
    padding: 0 24px;
    max-width: 900px;
}

.hero-title {
    font-size: clamp(3rem, 6.5vw, 5rem);
    font-weight: 600;
    line-height: 1.25;
    margin-bottom: 32px;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    opacity: 0;
    transform: translateY(40px);
    animation: heroFadeIn 1s ease-out forwards;
    animation-delay: 0.2s;
}

@keyframes heroFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-weight: 300;
    margin-bottom: 56px;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    font-family: var(--font-handwritten);
    font-style: italic;
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeIn 1s ease-out forwards;
    animation-delay: 0.4s;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 48px;
    background: var(--accent-sky);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: var(--shadow-soft);
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeIn 1s ease-out forwards;
    animation-delay: 0.6s;
}

.hero-btn:hover {
    background: var(--accent-sky-dark);
    transform: translateY(-4px);
    box-shadow: var(--shadow-float);
}

.hero-btn svg {
    transition: transform 0.3s ease;
}

.hero-btn:hover svg {
    transform: translateX(6px);
}

/* 滚动指示器 */
.scroll-indicator {
    position: absolute;
    bottom: 48px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    opacity: 0;
    animation: heroFadeIn 1s ease-out forwards;
    animation-delay: 1s;
}

.scroll-indicator::before {
    content: '';
    display: block;
    width: 24px;
    height: 40px;
    border: 2px solid var(--accent-sky);
    border-radius: 12px;
    position: relative;
    animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-indicator::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--accent-sky);
    border-radius: 2px;
    animation: scrollDot 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

@keyframes scrollDot {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
    50% { transform: translateX(-50%) translateY(8px); opacity: 0.5; }
}

/* ==================== 通用区块样式 ==================== */
section {
    padding: 140px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 100px;
}

.section-title {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

.section-line {
    width: 80px;
    height: 3px;
    background: var(--accent-sky);
    margin: 0 auto;
    border-radius: 2px;
}

/* ==================== 项目背景 ==================== */
.background {
    background: var(--bg-secondary);
}

.background-content {
    max-width: 960px;
    margin: 0 auto;
}

.background-text {
    background: var(--bg-primary);
    padding: 80px;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    border: var(--border-handdrawn);
    position: relative;
}

.background-text::before {
    content: '"';
    position: absolute;
    top: -30px;
    left: 40px;
    font-size: 120px;
    font-family: var(--font-handwritten);
    color: var(--accent-sky);
    opacity: 0.15;
    line-height: 1;
}

.background-paragraph {
    font-size: 1.15rem;
    line-height: 2;
    color: var(--text-secondary);
    margin-bottom: 36px;
    text-align: justify;
}

.background-paragraph:last-child {
    margin-bottom: 0;
}

.highlight {
    color: var(--accent-sky);
    font-weight: 500;
    background: linear-gradient(120deg, rgba(74, 144, 226, 0.1) 0%, rgba(74, 144, 226, 0.1) 100%);
    padding: 2px 6px;
    border-radius: 4px;
}

/* ==================== 产品服务 ==================== */
.product {
    background: var(--bg-primary);
}

.product-card {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-secondary);
    padding: 80px 60px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    border: var(--border-handdrawn);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-float);
    border-color: var(--accent-sky);
}

.product-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 40px;
    background: linear-gradient(135deg, var(--accent-sky) 0%, var(--accent-sky-light) 100%);
    border-radius: 20px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-soft);
}

.product-icon svg {
    width: 60px;
    height: 60px;
}

.product-title {
    font-size: 2.2rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

.product-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.8;
}

.product-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 44px;
    background: var(--accent-sky);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: var(--shadow-soft);
}

.product-btn:hover {
    background: var(--accent-sky-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-float);
}

.product-btn svg {
    transition: transform 0.3s ease;
}

.product-btn:hover svg {
    transform: translate(5px, -5px);
}

/* ==================== 同创成员 ==================== */
.team {
    background: var(--bg-warm);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}

/* 响应式网格 */
@media (max-width: 1024px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr;
        padding: 0 24px;
    }
}

.team-member {
    background: var(--bg-primary);
    border-radius: 20px;
    padding: 48px 32px;
    text-align: center;
    transition: var(--transition);
    border: var(--border-handdrawn);
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.team-member:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-float);
    border-color: var(--accent-sky);
}

.member-photo {
    width: 180px;
    height: 180px;
    margin: 0 auto 28px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--accent-sky);
    flex-shrink: 0;
    box-shadow: var(--shadow-soft);
}

.member-photo-illustration {
    background: linear-gradient(135deg, #FFF5F7 0%, #F0F4FF 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-color: #FFB6C1;
}

.member-illustration {
    width: 100%;
    height: 100%;
    padding: 20px;
}

.member-illustration-yinan {
    width: 100%;
    height: 100%;
    padding: 15px;
}

.member-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-name {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: 0.01em;
}

.member-role {
    font-size: 0.95rem;
    color: var(--accent-sky);
    font-weight: 400;
    margin-bottom: 20px;
    letter-spacing: 0.05em;
    font-family: var(--font-handwritten);
    font-style: italic;
}

.member-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ==================== 联系我们 ==================== */
.contact {
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.contact-info {
    max-width: 700px;
    margin: 0 auto;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 28px;
    background: var(--bg-primary);
    padding: 48px 56px;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    border: var(--border-handdrawn);
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-float);
    border-color: var(--accent-sky);
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--accent-sky) 0%, var(--accent-sky-light) 100%);
    border-radius: 16px;
    color: white;
    flex-shrink: 0;
    box-shadow: var(--shadow-soft);
}

.contact-text {
    flex: 1;
}

.contact-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-tertiary);
    margin-bottom: 6px;
    letter-spacing: 0.05em;
}

.contact-link {
    display: block;
    font-size: 1.3rem;
    color: var(--accent-sky);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--accent-sky-dark);
}

/* ==================== 页脚 ==================== */
.footer {
    background: var(--bg-secondary);
    color: var(--text-tertiary);
    padding: 80px 0 40px;
    border-top: 1px solid rgba(232, 232, 234, 0.5);
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.footer-links {
    text-align: center;
}

.footer-title {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 32px;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.footer-link {
    color: var(--text-tertiary);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--accent-sky);
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding-top: 40px;
    border-top: 1px solid rgba(232, 232, 234, 0.5);
}

.footer-copyright {
    color: var(--text-tertiary);
    font-size: 0.9rem;
    letter-spacing: 0.02em;
}

.footer-icp {
    color: var(--text-tertiary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-icp:hover {
    color: var(--accent-sky);
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .background-text {
        padding: 60px;
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    section {
        padding: 120px 0;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(250, 250, 250, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-link {
        font-size: 1.8rem;
        font-weight: 400;
        color: var(--text-primary);
    }
    
    .hamburger {
        display: flex;
    }
    
    .container {
        padding: 0 24px;
    }
    
    .nav-container {
        padding: 0 24px;
    }
    
    section {
        padding: 100px 0;
    }
    
    .section-header {
        margin-bottom: 80px;
    }
    
    .hero {
        min-height: 600px;
    }
    
    .hero-btn {
        padding: 16px 40px;
    }
    
    .background-text {
        padding: 40px 24px;
    }
    
    .background-text::before {
        top: -20px;
        left: 24px;
        font-size: 80px;
    }
    
    .background-paragraph {
        font-size: 1.05rem;
    }
    
    .product-card {
        padding: 60px 32px;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
        gap: 36px;
        padding: 0 24px;
    }
    
    .footer-nav {
        gap: 28px;
    }
    
    .contact-item {
        padding: 36px 32px;
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .product-card {
        padding: 48px 24px;
    }
    
    .team-member {
        padding: 36px 24px;
    }
    
    .member-photo {
        width: 140px;
        height: 140px;
    }
    
    .contact-item {
        padding: 32px 24px;
    }
}

/* ==================== 滚动动画 ==================== */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==================== 选择样式 ==================== */
::selection {
    background: var(--accent-sky);
    color: white;
}

/* ==================== 自定义滚动条 ==================== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-sky);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-sky-dark);
}
