/* ==================== 基础样式 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2e7d32;
    --primary-dark: #1b5e20;
    --primary-light: #4caf50;
    --secondary-color: #f57c00;
    --text-color: #333;
    --text-light: #666;
    --text-lighter: #999;
    --bg-color: #fff;
    --bg-light: #f5f5f5;
    --bg-dark: #e8f5e9;
    --border-color: #ddd;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 5px 20px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================== 按钮样式 ==================== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-block {
    display: block;
    width: 100%;
}

/* ==================== 顶部信息栏 ==================== */
.top-bar {
    background-color: var(--primary-dark);
    color: #fff;
    padding: 8px 0;
    font-size: 14px;
}

.top-info {
    display: flex;
    gap: 30px;
}

.top-info span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ==================== 导航栏 ==================== */
.header {
    background-color: #fff;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    font-size: 36px;
}

.logo-text h1 {
    font-size: 24px;
    color: var(--primary-color);
    line-height: 1.2;
}

.logo-text p {
    font-size: 12px;
    color: var(--text-light);
    line-height: 1.2;
}

.nav-list {
    display: flex;
    gap: 40px;
}

.nav-list a {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-color);
    padding: 5px 0;
    position: relative;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-list a:hover,
.nav-list a.active {
    color: var(--primary-color);
}

.nav-list a:hover::after,
.nav-list a.active::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    transition: var(--transition);
}

/* ==================== 轮播图 ==================== */
.hero-slider {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.3));
}

.slide.active {
    opacity: 1;
}

.slide-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    padding: 0 20px;
    color: #fff;
}

.slide-content h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.slide-content p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background-color: #fff;
}

/* ==================== 区块标题 ==================== */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header.left {
    text-align: left;
}

.section-header h2 {
    font-size: 36px;
    color: var(--text-color);
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

.section-header.left h2::after {
    left: 0;
    transform: none;
}

.section-header p {
    color: var(--text-light);
    margin-top: 20px;
}

/* ==================== 产品分类 ==================== */
.product-categories {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.category-card {
    background-color: #fff;
    padding: 40px 30px;
    text-align: center;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.category-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.category-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.category-card p {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 14px;
}

/* ==================== 关于我们 ==================== */
.about-section {
    padding: 80px 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-light);
    line-height: 1.8;
}

.about-stats {
    display: flex;
    gap: 40px;
    margin: 30px 0;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 14px;
    color: var(--text-light);
}

.about-image {
    position: relative;
}

.image-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--primary-light) 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
    font-size: 18px;
}

/* ==================== 热门产品 ==================== */
.hot-products {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.product-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.product-image {
    height: 200px;
    overflow: hidden;
}

.product-image .image-placeholder {
    height: 100%;
    border-radius: 0;
}

.product-info {
    padding: 25px;
}

.product-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.product-info p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 15px;
}

/* ==================== 新闻资讯 ==================== */
.news-section {
    padding: 80px 0;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.news-card {
    display: flex;
    gap: 20px;
    padding: 25px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.news-card:hover {
    box-shadow: var(--shadow-hover);
}

.news-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 70px;
    height: 70px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 8px;
}

.news-date .day {
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
}

.news-date .month {
    font-size: 12px;
}

.news-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-content h3 a:hover {
    color: var(--primary-color);
}

.news-content p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

.text-center {
    text-align: center;
}

/* ==================== 联系我们 ==================== */
.contact-section {
    padding: 80px 0;
    background-color: var(--bg-dark);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h2 {
    font-size: 36px;
    margin-bottom: 10px;
}

.contact-info > p {
    color: var(--text-light);
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-icon {
    font-size: 24px;
}

.contact-item h4 {
    font-size: 16px;
    margin-bottom: 5px;
}

.contact-item p {
    color: var(--text-light);
}

.contact-form-wrapper {
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 16px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ==================== 页脚 ==================== */
.footer {
    background-color: #263238;
    color: #fff;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.footer-logo .logo-icon {
    font-size: 32px;
}

.footer-logo h3 {
    font-size: 20px;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #fff;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-section ul li a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

/* ==================== 内页通用样式 ==================== */
.page-banner {
    height: 300px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.page-banner h1 {
    font-size: 42px;
    margin-bottom: 10px;
}

.page-banner p {
    font-size: 18px;
    opacity: 0.9;
}

.breadcrumb {
    background-color: var(--bg-light);
    padding: 15px 0;
}

.breadcrumb ul {
    display: flex;
    gap: 10px;
    font-size: 14px;
}

.breadcrumb li:not(:last-child)::after {
    content: '>';
    margin-left: 10px;
    color: var(--text-lighter);
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

.page-content {
    padding: 60px 0;
}

/* ==================== 关于我们页 ==================== */
.about-page .about-intro {
    margin-bottom: 60px;
}

.about-page .about-intro p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-light);
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.value-card {
    text-align: center;
    padding: 30px;
    background-color: var(--bg-light);
    border-radius: 8px;
}

.value-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.value-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.value-card p {
    font-size: 14px;
    color: var(--text-light);
}

/* ==================== 产品列表页 ==================== */
.products-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.products-page .products-grid {
    grid-template-columns: repeat(3, 1fr);
}

/* ==================== 产品详情页 ==================== */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.product-gallery {
    background-color: var(--bg-light);
    border-radius: 8px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-info-detail h1 {
    font-size: 32px;
    margin-bottom: 20px;
}

.product-meta {
    margin-bottom: 30px;
}

.product-meta-item {
    display: flex;
    margin-bottom: 10px;
}

.product-meta-label {
    width: 100px;
    color: var(--text-light);
}

.product-description {
    margin-top: 40px;
}

.product-description h2 {
    font-size: 24px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.product-description p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 15px;
}

/* ==================== 新闻列表页 ==================== */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.news-item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 30px;
    padding: 30px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.news-item:hover {
    box-shadow: var(--shadow-hover);
}

.news-thumb {
    background-color: var(--bg-light);
    border-radius: 8px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-item-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.news-item-content h3 a:hover {
    color: var(--primary-color);
}

.news-meta {
    font-size: 14px;
    color: var(--text-lighter);
    margin-bottom: 10px;
}

.news-item-content p {
    color: var(--text-light);
    line-height: 1.6;
}

/* ==================== 新闻详情页 ==================== */
.news-detail-header {
    text-align: center;
    margin-bottom: 40px;
}

.news-detail-header h1 {
    font-size: 32px;
    margin-bottom: 15px;
}

.news-detail-content {
    max-width: 800px;
    margin: 0 auto;
}

.news-detail-content p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: var(--text-light);
}

.news-detail-content h2 {
    font-size: 24px;
    margin: 30px 0 15px;
}

/* ==================== 联系我们页 ==================== */
.contact-page .contact-content {
    grid-template-columns: 1fr 1.5fr;
}

.map-container {
    margin-top: 60px;
    height: 400px;
    background-color: var(--bg-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==================== 时间轴样式 ==================== */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background-color: var(--primary-color);
}

.timeline-item {
    display: flex;
    justify-content: flex-end;
    padding-right: 50%;
    position: relative;
    margin-bottom: 40px;
}

.timeline-item:nth-child(even) {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: 50%;
}

.timeline-year {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.timeline-content {
    background-color: var(--bg-light);
    padding: 20px 25px;
    border-radius: 8px;
    max-width: 300px;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: 30px;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 30px;
}

.timeline-content h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.timeline-content p {
    font-size: 14px;
    color: var(--text-light);
}

/* ==================== 荣誉资质 ==================== */
.honors-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.honor-item {
    text-align: center;
    padding: 40px 25px;
    background-color: var(--bg-light);
    border-radius: 8px;
    transition: var(--transition);
}

.honor-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.honor-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.honor-item h4 {
    font-size: 18px;
    margin-bottom: 8px;
}

.honor-item p {
    font-size: 14px;
    color: var(--text-light);
}

/* ==================== 产品标签 ==================== */
.product-tag {
    display: inline-block;
    padding: 4px 12px;
    background-color: var(--primary-color);
    color: #fff;
    font-size: 12px;
    border-radius: 4px;
    margin-bottom: 10px;
}
