/* ========================================
   北京尧图网络科技有限公司 - 全局样式
   花店简约风：纯白 + 浅绿 + 浅粉
   ======================================== */

:root {
    --color-white: #ffffff;
    --color-light-green: #e8f5e9;
    --color-medium-green: #a5d6a7;
    --color-deep-green: #4caf50;
    --color-light-pink: #fce4ec;
    --color-medium-pink: #f48fb1;
    --color-text-dark: #333333;
    --color-text-gray: #666666;
    --color-text-light: #999999;
    --color-bg-light: #fafafa;
    --shadow-soft: 0 2px 15px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 5px 25px rgba(0, 0, 0, 0.12);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius-card: 12px;
    --border-radius-btn: 25px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-text-dark);
    background-color: var(--color-white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

a:hover {
    color: var(--color-deep-green);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 36px;
    font-weight: 600;
    color: var(--color-text-dark);
    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: linear-gradient(90deg, var(--color-medium-green), var(--color-medium-pink));
    border-radius: 2px;
}

.section-title p {
    font-size: 16px;
    color: var(--color-text-gray);
    margin-top: 20px;
}

/* ========================================
   顶部导航栏 - 优化版（解决拥挤问题）
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: var(--transition-smooth);
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 3px 20px rgba(0, 0, 0, 0.1);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 30px;
    max-width: 1600px;
    margin: 0 auto;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.logo img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.logo span {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text-dark);
    white-space: nowrap;
}

/* 导航容器 - 可滚动设计 */
.nav-wrapper {
    flex: 1;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.nav-wrapper::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.nav-menu {
    display: flex;
    gap: 10px;
    min-width: max-content;
    padding: 5px 0;
}

.nav-menu li a {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-dark);
    padding: 10px 5px;
    position: relative;
    white-space: nowrap;
    display: inline-block;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-medium-green), var(--color-medium-pink));
    transition: var(--transition-smooth);
}

.nav-menu li a:hover::after,
.nav-menu li a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--color-text-dark);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

/* ========================================
   锯齿状分割线
   ======================================== */
.zigzag-divider {
    position: relative;
    height: 60px;
    overflow: hidden;
}

.zigzag-divider::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(135deg, var(--color-light-green) 25%, transparent 25%),
        linear-gradient(225deg, var(--color-light-green) 25%, transparent 25%),
        linear-gradient(135deg, transparent 75%, var(--color-light-green) 75%),
        linear-gradient(225deg, transparent 75%, var(--color-light-green) 75%);
    background-size: 40px 40px;
    background-position: 0 0, 0 20px, 20px -20px, -20px 0px;
    opacity: 0.6;
}

.zigzag-divider-white {
    position: relative;
    height: 60px;
    overflow: hidden;
}

.zigzag-divider-white::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(135deg, var(--color-white) 25%, transparent 25%),
        linear-gradient(225deg, var(--color-white) 25%, transparent 25%),
        linear-gradient(135deg, transparent 75%, var(--color-white) 75%),
        linear-gradient(225deg, transparent 75%, var(--color-white) 75%);
    background-size: 40px 40px;
    background-position: 0 0, 0 20px, 20px -20px, -20px 0px;
    opacity: 0.8;
}

.zigzag-divider-pink {
    position: relative;
    height: 60px;
    overflow: hidden;
}

.zigzag-divider-pink::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(135deg, var(--color-light-pink) 25%, transparent 25%),
        linear-gradient(225deg, var(--color-light-pink) 25%, transparent 25%),
        linear-gradient(135deg, transparent 75%, var(--color-light-pink) 75%),
        linear-gradient(225deg, transparent 75%, var(--color-light-pink) 75%);
    background-size: 40px 40px;
    background-position: 0 0, 0 20px, 20px -20px, -20px 0px;
    opacity: 0.7;
}

/* ========================================
   Banner 区域
   ======================================== */
.banner {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-light-green) 0%, var(--color-white) 50%, var(--color-light-pink) 100%);
}

.banner-content {
    text-align: center;
    z-index: 2;
    padding: 0 20px;
}

.banner-content h1 {
    font-size: 56px;
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: 20px;
    animation: fadeInUp 1s ease-out;
}

.banner-content p {
    font-size: 20px;
    color: var(--color-text-gray);
    max-width: 700px;
    margin: 0 auto 40px;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.banner-btn {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(90deg, var(--color-deep-green), var(--color-medium-green));
    color: var(--color-white);
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--border-radius-btn);
    box-shadow: 0 5px 20px rgba(76, 175, 80, 0.3);
    animation: fadeInUp 1s ease-out 0.6s both;
}

.banner-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(76, 175, 80, 0.4);
    color: var(--color-white);
}

.banner-decoration {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--color-medium-pink) 0%, transparent 70%);
    opacity: 0.15;
    animation: float 6s ease-in-out infinite;
}

.banner-decoration:nth-child(1) {
    top: 10%;
    left: 10%;
}

.banner-decoration:nth-child(2) {
    bottom: 15%;
    right: 10%;
    animation-delay: -3s;
}

/* ========================================
   卡片样式
   ======================================== */
.card {
    background: var(--color-white);
    border-radius: var(--border-radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.card-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.card:hover .card-image img {
    transform: scale(1.08);
}

.card-content {
    padding: 25px;
}

.card-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-text-dark);
    margin-bottom: 12px;
}

.card-content p {
    font-size: 14px;
    color: var(--color-text-gray);
    line-height: 1.7;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--color-light-green);
}

.card-meta span {
    font-size: 13px;
    color: var(--color-text-light);
}

/* ========================================
   按钮样式
   ======================================== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--border-radius-btn);
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
}

.btn-primary {
    background: linear-gradient(90deg, var(--color-deep-green), var(--color-medium-green));
    color: var(--color-white);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.35);
    color: var(--color-white);
}

.btn-secondary {
    background: var(--color-white);
    color: var(--color-deep-green);
    border: 2px solid var(--color-medium-green);
}

.btn-secondary:hover {
    background: var(--color-light-green);
    color: var(--color-deep-green);
}

/* ========================================
   网格布局
   ======================================== */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

/* ========================================
   页脚
   ======================================== */
.footer {
    background: linear-gradient(135deg, var(--color-light-green) 0%, var(--color-white) 100%);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--color-text-dark);
    margin-bottom: 15px;
}

.footer-logo p {
    font-size: 14px;
    color: var(--color-text-gray);
    line-height: 1.8;
}

.footer-links h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text-dark);
    margin-bottom: 20px;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    font-size: 14px;
    color: var(--color-text-gray);
}

.footer-links ul li a:hover {
    color: var(--color-deep-green);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--color-light-green);
}

.footer-bottom p {
    font-size: 14px;
    color: var(--color-text-light);
}

/* ========================================
   动画
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   响应式设计
   ======================================== */
@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--color-white);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 40px;
        gap: 25px;
        transition: var(--transition-smooth);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .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);
    }
    
    .banner-content h1 {
        font-size: 36px;
    }
    
    .banner-content p {
        font-size: 16px;
    }
    
    .section-title h2 {
        font-size: 28px;
    }
    
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .banner-content h1 {
        font-size: 28px;
    }
    
    .section {
        padding: 50px 0;
    }
}
