/* ========== 全局变量与基础 ========== */
:root {
    --primary: #2E7D32;
    --primary-dark: #1B5E20;
    --primary-light: #E8F5E9;
    --accent: #D4A853;
    --bg: #FBFBF9;
    --white: #FFFFFF;
    --gray-100: #F5F5F5;
    --gray-200: #E9E9E9;
    --gray-600: #666666;
    --gray-900: #1A1A1A;
    --shadow-sm: 0 4px 6px rgba(0,0,0,0.02);
    --shadow: 0 4px 20px rgba(0,0,0,0.06);
    --shadow-md: 0 20px 25px -5px rgba(0,0,0,0.05);
    --shadow-lg: 0 25px 50px -12px rgba(0,0,0,0.08);
    --radius: 24px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
    background: var(--bg);
    color: var(--gray-900);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .serif { font-family: 'Noto Serif SC', 'STSong', 'SimSun', serif; font-weight: 700; }

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 32px; }

/* ========== 导航栏 ========== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.04);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    position: relative;
}

.logo {
    font-size: 26px;
    font-weight: 700;
    color: var(--primary-dark);
    letter-spacing: 2px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ========== 中间电话按钮（深绿白字，显眼） ========== */
.header-phone {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
}

.header-phone a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: var(--primary);           /* 主绿色背景 */
    color: #fff;                          /* 白色文字 */
    font-weight: 700;
    font-size: 17px;
    border-radius: 40px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(46,125,50,0.3);  /* 绿色阴影更突出 */
    border: 2px solid var(--primary);
}

.header-phone a:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    box-shadow: 0 6px 16px rgba(46,125,50,0.4);
    transform: translateY(-1px);
}

.phone-icon {
    font-size: 20px;
    line-height: 1;
}

.phone-placeholder {
    background: #ccc !important;
    color: #666 !important;
    pointer-events: none;
    box-shadow: none !important;
    border-color: #ccc !important;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
    font-weight: 500;
}

.nav-menu a {
    color: var(--gray-600);
    transition: color 0.3s;
}

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

/* ========== Hero 横幅 ========== */
.hero {
    background: radial-gradient(circle at 80% 20%, #e8f3ef 0%, #f5f9f7 50%, #fbfbf9 100%);
    padding: 80px 0;
}

.hero-inner {
    display: flex;
    align-items: center;
    gap: 60px;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 48px;
    line-height: 1.2;
    color: #1B3B1B;
    margin-bottom: 16px;
}

.hero-text p {
    font-size: 18px;
    color: var(--gray-600);
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 10px 20px rgba(46,125,50,0.2);
}

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

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

.btn-outline:hover {
    background: var(--primary-light);
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
}

.product-placeholder {
    width: 400px;
    height: 300px;
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: var(--primary);
    box-shadow: var(--shadow-lg);
}

/* ========== 通用区块 ========== */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: #1B3B1B;
}

.product-grid,
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: 0.3s;
    border: 1px solid var(--gray-200);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.card-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.card h3 {
    margin-bottom: 10px;
    font-size: 20px;
}

/* ========== 关于我们 ========== */
.about-grid {
    display: flex;
    gap: 80px;
    align-items: center;
}

.about-image {
    flex: 1;
    position: relative;
}

.about-image .img-box {
    width: 100%;
    aspect-ratio: 4/3;
    background: #d9e8e0;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.about-image .experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--primary);
    color: white;
    padding: 20px 28px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 18px;
    box-shadow: var(--shadow-md);
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.about-text p {
    color: var(--gray-600);
    margin-bottom: 16px;
    font-size: 16px;
    line-height: 1.8;
}

/* ========== 文章列表与详情 ========== */
.list-wrapper,
.single-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    margin-top: 40px;
}

.list-content,
.single-content {
    min-width: 0;
}

.post-multi {
    background: var(--white);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
    transition: 0.3s;
}

.post-multi:hover {
    transform: translateY(-3px);
}

.post-title {
    font-size: 22px;
    margin-bottom: 12px;
}

.post-title a {
    color: var(--gray-900);
}

.post-title a:hover {
    color: var(--primary);
}

.post-meta {
    font-size: 13px;
    color: #999;
    margin-bottom: 16px;
}

.post-meta span {
    margin-right: 16px;
}

.post-intro {
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 12px;
}

.read-more {
    color: var(--primary);
    font-weight: 600;
}

.post-single {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
}

.post-single .post-title {
    font-size: 32px;
    margin-bottom: 16px;
}

.post-content {
    font-size: 16px;
    line-height: 1.9;
}

.post-tags {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.post-tags a {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    padding: 4px 14px;
    border-radius: 20px;
    margin-right: 8px;
    font-size: 13px;
}

.post-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    font-size: 14px;
}

/* 分页 */
.pagebar {
    text-align: center;
    margin: 30px 0;
}

.pagebar-btn {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 4px;
    border-radius: 8px;
    background: var(--primary-light);
    color: var(--primary);
}

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

/* 侧边栏 */
.sidebar-widget {
    background: var(--white);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.sidebar-widget h3 {
    font-size: 18px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
}

.sidebar-widget ul {
    list-style: none;
}

.sidebar-widget ul li {
    margin-bottom: 10px;
}

.sidebar-widget ul li a {
    color: var(--gray-600);
}

.sidebar-widget ul li a:hover {
    color: var(--primary);
}

/* 首页新闻网格 */
.news-grid .card {
    text-align: left;
}

.news-grid .card h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

/* ========== 页脚 ========== */
.footer {
    background: #1B3B1B;
    color: #B0C7BE;
    padding: 50px 0 30px;
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer h4 {
    color: white;
    margin-bottom: 12px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    font-size: 14px;
    opacity: 0.8;
}

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
    .about-grid {
        flex-direction: column;
    }
    .about-image .experience-badge {
        right: 10px;
        bottom: -10px;
        font-size: 16px;
        padding: 12px 20px;
    }
}

@media (max-width: 768px) {
    .container { padding: 0 20px; }

    .header-phone {
        display: none;
    }

    .nav-menu {
        display: none;
    }

    .hero-inner {
        flex-direction: column;
        text-align: center;
    }
    .hero-text h1 { font-size: 36px; }
    .hero-visual .product-placeholder {
        width: 100%;
        height: 200px;
    }

    .list-wrapper,
    .single-wrapper {
        grid-template-columns: 1fr;
    }

    .post-single .post-title { font-size: 24px; }
    .post-nav { flex-direction: column; gap: 10px; }
}