/* ========================================
   联诺融科 - 全局样式表
   绿植园艺风格：翠绿 + 浅绿 + 米白
   ======================================== */

:root {
    --primary-green: #2d6a4f;
    --light-green: #52b788;
    --pale-green: #b7e4c7;
    --cream-white: #fefae0;
    --dark-text: #1b4332;
    --light-text: #74c69d;
    --bg-cream: #fffcf5;
    --shadow: 0 4px 20px rgba(45, 106, 79, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-cream);
    color: var(--dark-text);
    line-height: 1.8;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   导航栏样式
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    transition: var(--transition);
    padding: 20px 0;
}

.header.scrolled {
    background: rgba(255, 252, 245, 0.98);
    box-shadow: 0 2px 20px rgba(45, 106, 79, 0.1);
    padding: 15px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-green);
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    gap: 40px;
}

.nav-link {
    font-size: 16px;
    font-weight: 500;
    color: var(--cream-white);
    position: relative;
    padding: 8px 0;
}

.header.scrolled .nav-link {
    color: var(--dark-text);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--light-green);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-green);
}

.header.scrolled .nav-link:hover,
.header.scrolled .nav-link.active {
    color: var(--primary-green);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--cream-white);
    border-radius: 2px;
    transition: var(--transition);
}

.header.scrolled .hamburger span {
    background: var(--primary-green);
}

/* ========================================
   页脚样式
   ======================================== */
.footer {
    background: linear-gradient(135deg, var(--primary-green) 0%, #1b4332 100%);
    color: var(--cream-white);
    padding: 60px 0 30px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--pale-green);
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--light-green);
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--cream-white);
    opacity: 0.9;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--light-green);
    padding-left: 8px;
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    opacity: 0.9;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 252, 245, 0.2);
    font-size: 14px;
    opacity: 0.8;
}

/* ========================================
   动画效果
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-in {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-left {
    animation: fadeInLeft 0.8s ease-out forwards;
}

.animate-right {
    animation: fadeInRight 0.8s ease-out forwards;
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   响应式设计
   ======================================== */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .nav-menu {
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--bg-cream);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 60px;
        gap: 30px;
        transition: var(--transition);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .logo-text {
        font-size: 20px;
    }
}

/* ========================================
   通用组件样式
   ======================================== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    background: var(--primary-green);
    color: var(--cream-white);
    border-radius: 30px;
    font-weight: 600;
    font-size: 16px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}

.btn:hover {
    background: transparent;
    border-color: var(--primary-green);
    color: var(--primary-green);
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    border-color: var(--primary-green);
    color: var(--primary-green);
}

.btn-outline:hover {
    background: var(--primary-green);
    color: var(--cream-white);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 36px;
    color: var(--primary-green);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--light-green);
}

.section-title p {
    color: var(--light-text);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

.card {
    background: var(--bg-cream);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px rgba(45, 106, 79, 0.2);
}

.card-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.card-content {
    padding: 24px;
}

.card-title {
    font-size: 20px;
    color: var(--primary-green);
    margin-bottom: 12px;
}

.card-text {
    color: var(--dark-text);
    opacity: 0.8;
    line-height: 1.7;
}

/* 阶梯式左右递进布局基础 */
.stagger-section {
    padding: 100px 0;
    overflow: hidden;
}

.stagger-row {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 80px;
}

.stagger-row.reverse {
    flex-direction: row-reverse;
}

.stagger-content {
    flex: 1;
}

.stagger-image {
    flex: 1;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.stagger-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: var(--transition);
}

.stagger-image:hover img {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .stagger-row,
    .stagger-row.reverse {
        flex-direction: column;
    }
    
    .stagger-image img {
        height: 300px;
    }
}
