/* ============================================
   基础重置 - 移动端优先
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #00c853;
    --primary-dark: #009624;
    --primary-light: #5efc82;
    --secondary-color: #ff6f00;
    --text-dark: #1a1a1a;
    --text-light: #666666;
    --bg-light: #f5f5f5;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.15);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* ============================================
   容器
   ============================================ */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ============================================
   导航栏 - 移动端优先
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.navbar {
    padding: 0.75rem 0;
}

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

.logo img {
    height: 2.5rem;
    width: auto;
}

.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.menu-toggle span {
    width: 1.5rem;
    height: 2px;
    background-color: var(--text-dark);
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(0.4rem, 0.4rem);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(0.4rem, -0.4rem);
}

.nav-list {
    position: fixed;
    top: 4rem;
    left: 0;
    right: 0;
    background-color: var(--white);
    flex-direction: column;
    padding: 2rem 1rem;
    box-shadow: var(--shadow);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1000;
}

.nav-list.active {
    transform: translateX(0);
}

.nav-link {
    display: block;
    padding: 1rem;
    color: var(--text-dark);
    font-weight: 500;
    border-bottom: 1px solid #eee;
    position: relative;
}

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

.nav-link.active::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 3px;
    height: 100%;
    background-color: var(--primary-color);
}

/* ============================================
   Hero区域
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 4rem;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 200, 83, 0.9) 0%, rgba(255, 111, 0, 0.8) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--white);
    padding: 2rem 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease;
}

.hero-tagline {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-description {
    font-size: 1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    animation: fadeInUp 0.8s ease 0.8s both;
}

.stat-box {
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 1.5rem 1rem;
    border-radius: 1rem;
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.stat-text {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* ============================================
   按钮样式
   ============================================ */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 2rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    font-size: 1rem;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
}

/* ============================================
   通用区块样式
   ============================================ */
section {
    padding: 4rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* ============================================
   介绍区块
   ============================================ */
.intro {
    background-color: var(--bg-light);
    padding: 4rem 0;
}

.intro-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.intro-image img {
    border-radius: 1rem;
    box-shadow: var(--shadow);
    width: 100%;
}

.intro-text h3 {
    font-size: 1.75rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.intro-text p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.intro-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background-color: var(--white);
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
}

.feature-item img {
    width: 2.5rem;
    height: 2.5rem;
}

/* ============================================
   产品区块
   ============================================ */
.products {
    padding: 4rem 0;
}

.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.product-card {
    background-color: var(--white);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    text-align: center;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.product-icon {
    margin-bottom: 1.5rem;
}

.product-icon img {
    width: 5rem;
    height: 5rem;
    margin: 0 auto;
    border-radius: 50%;
}

.product-card h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.product-card p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.product-list {
    text-align: left;
    margin-bottom: 1.5rem;
}

.product-list li {
    color: var(--text-light);
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

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

/* ============================================
   新闻区块
   ============================================ */
.news {
    background-color: var(--bg-light);
    padding: 4rem 0;
}

.news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.news-card {
    background-color: var(--white);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.news-image {
    overflow: hidden;
    height: 200px;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-content {
    padding: 1.5rem;
}

.news-date {
    color: var(--text-light);
    font-size: 0.875rem;
    display: block;
    margin-bottom: 0.75rem;
}

.news-content h3 {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.news-content p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.news-link {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.news-link:hover {
    gap: 1rem;
}

/* ============================================
   CTA区块
   ============================================ */
.cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

.cta-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

/* ============================================
   页脚
   ============================================ */
.footer {
    background-color: #1a1a1a;
    color: #cccccc;
    padding: 3rem 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h4 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.footer-col p {
    line-height: 1.8;
    margin-bottom: 1rem;
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col ul li a {
    color: #cccccc;
}

.footer-col ul li a:hover {
    color: var(--primary-color);
    padding-left: 0.5rem;
}

.social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social a {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #999999;
}

/* ============================================
   页面头部
   ============================================ */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 6rem 0 4rem;
    text-align: center;
    margin-top: 4rem;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* ============================================
   产品页面
   ============================================ */
.filter-section {
    padding: 2rem 0;
    background-color: var(--bg-light);
}

.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.filter-tab {
    padding: 0.75rem 1.5rem;
    background-color: var(--white);
    border: 2px solid #ddd;
    border-radius: 2rem;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.filter-tab:hover,
.filter-tab.active {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.products-list-section {
    padding: 3rem 0;
}

.products-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.product-item {
    display: flex;
    flex-direction: column;
    background-color: var(--white);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.product-item:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

.product-item-image {
    height: 250px;
    overflow: hidden;
}

.product-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.product-item-content {
    padding: 2rem;
}

.product-badge {
    display: inline-block;
    padding: 0.375rem 1rem;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 1rem;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.product-item-content h3 {
    font-size: 1.75rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.product-item-content p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.feature-tag {
    padding: 0.5rem 1rem;
    background-color: var(--bg-light);
    border-radius: 1rem;
    font-size: 0.875rem;
    color: var(--text-dark);
}

.product-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.product-item.hidden {
    display: none;
}

/* ============================================
   关于我们页面
   ============================================ */
.history {
    padding: 4rem 0;
}

.history-timeline {
    position: relative;
    padding: 2rem 0;
}

.history-timeline::before {
    content: '';
    position: absolute;
    left: 1.5rem;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
}

.timeline-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-marker {
    flex-shrink: 0;
    width: 3rem;
    text-align: center;
}

.timeline-year {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    background-color: var(--white);
    padding: 0.5rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
}

.timeline-content {
    flex: 1;
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow);
}

.timeline-content h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

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

.timeline-content img {
    border-radius: 0.5rem;
    margin-top: 1rem;
    width: 100%;
}

.team {
    background-color: var(--bg-light);
    padding: 4rem 0;
}

.team-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.team-card {
    background-color: var(--white);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    text-align: center;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.team-avatar {
    height: 200px;
    overflow: hidden;
}

.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.team-card:hover .team-avatar img {
    transform: scale(1.1);
}

.team-info {
    padding: 1.5rem;
}

.team-info h3 {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.team-position {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
    display: block;
}

.team-info p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 0.95rem;
}

.values {
    padding: 4rem 0;
}

.values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.value-item {
    text-align: center;
    padding: 2rem 1rem;
    background-color: var(--white);
    border-radius: 1rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.value-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.value-icon {
    margin-bottom: 1.5rem;
}

.value-icon img {
    width: 3.75rem;
    height: 3.75rem;
    margin: 0 auto;
    border-radius: 50%;
}

.value-item h3 {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.value-item p {
    color: var(--text-light);
    line-height: 1.7;
}

/* ============================================
   联系我们页面
   ============================================ */
.contact {
    padding: 4rem 0;
}

.contact-layout {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.contact-form-section h2,
.contact-info-section h2 {
    font-size: 1.75rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.contact-form-section p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    color: var(--text-dark);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.875rem 1rem;
    border: 2px solid #ddd;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 200, 83, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.info-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-card {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background-color: var(--bg-light);
    border-radius: 1rem;
}

.info-icon img {
    width: 2rem;
    height: 2rem;
    flex-shrink: 0;
}

.info-details h3 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.info-details p {
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.info-note {
    display: block;
    color: var(--primary-color);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.map-container {
    margin-top: 2rem;
}

.map-container h3 {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.map-wrapper {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.map-wrapper img {
    width: 100%;
    height: auto;
}

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

.fade-in {
    animation: fadeInUp 0.8s ease;
}

/* ============================================
   响应式设计 - 平板
   ============================================ */
@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }

    .menu-toggle {
        display: none;
    }

    .nav-list {
        position: static;
        flex-direction: row;
        background: none;
        box-shadow: none;
        transform: none;
        padding: 0;
        gap: 2rem;
    }

    .nav-link {
        padding: 0.5rem 0;
        border: none;
    }

    .nav-link.active::after {
        width: 100%;
        height: 3px;
        bottom: 0;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .hero-tagline {
        font-size: 1.75rem;
    }

    .hero-actions {
        flex-direction: row;
        justify-content: center;
    }

    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
    }

    .intro-grid {
        flex-direction: row;
        align-items: center;
    }

    .intro-features {
        grid-template-columns: repeat(4, 1fr);
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-buttons {
        flex-direction: row;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-item {
        flex-direction: row;
    }

    .product-item-image {
        width: 40%;
        height: auto;
        min-height: 300px;
    }

    .product-item-content {
        width: 60%;
    }

    .product-actions {
        flex-direction: row;
    }

    .form-row {
        flex-direction: row;
    }

    .contact-layout {
        flex-direction: row;
    }

    .contact-form-section {
        flex: 1;
    }

    .contact-info-section {
        flex: 1;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   响应式设计 - 桌面
   ============================================ */
@media (min-width: 1024px) {
    .hero-title {
        font-size: 4rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .team-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .values-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .history-timeline::before {
        left: 50%;
        transform: translateX(-50%);
    }

    .timeline-item {
        width: 50%;
    }

    .timeline-item:nth-child(odd) {
        flex-direction: row;
        padding-right: 3rem;
    }

    .timeline-item:nth-child(even) {
        flex-direction: row-reverse;
        margin-left: auto;
        padding-left: 3rem;
    }

    .timeline-marker {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
}
