/* ============================================================
   企业网站系统 - 主样式表
   清新自然风格 · 响应式设计
   ============================================================ */

/* ---------- 变量 ---------- */
:root {
    --primary: #2e8b57;
    --primary-light: #3cb371;
    --primary-dark: #226644;
    --secondary: #5fa8d3;
    --accent: #f4a261;
    --bg: #ffffff;
    --bg-secondary: #f8faf8;
    --bg-dark: #1a2e1a;
    --text: #2c3e2d;
    --text-secondary: #5a6b5a;
    --text-light: #8a9a8a;
    --border: #e2e8e2;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.3s ease;
}

/* ---------- 基础重置 ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
    font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }

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

ul { list-style: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- 头部导航 ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.site-header.scrolled {
    box-shadow: var(--shadow);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

.logo img { height: 40px; }

.main-nav ul {
    display: flex;
    gap: 8px;
}

.main-nav a {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    color: var(--text);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary);
    background: rgba(46, 139, 87, 0.08);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cart-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-secondary);
    color: var(--text);
    transition: var(--transition);
}

.cart-btn:hover { background: var(--primary); color: #fff; }

.cart-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

/* ---------- 按钮 ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(46,139,87,0.3);
}

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

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

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

.btn-white:hover { background: var(--bg-secondary); }

.btn-sm { padding: 6px 14px; font-size: 0.85rem; }
.btn-lg { padding: 14px 32px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ---------- 页面标题区 ---------- */
.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 60px 0;
    text-align: center;
}

.page-header h1 { font-size: 2.2rem; font-weight: 700; margin-bottom: 8px; }
.page-header p { opacity: 0.9; font-size: 1.1rem; }

.breadcrumb {
    margin-top: 12px;
    font-size: 0.9rem;
    opacity: 0.85;
}

.breadcrumb a { color: rgba(255,255,255,0.85); }
.breadcrumb a:hover { color: #fff; }

/* ---------- 通用区块 ---------- */
.section { padding: 80px 0; }
.section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
    color: var(--text);
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 48px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.section-header .section-title { margin-bottom: 0; text-align: left; }
.section-more { color: var(--primary); font-weight: 500; }
.section-more:hover { color: var(--primary-dark); }

/* ---------- 英雄区 ---------- */
.hero-section {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background: linear-gradient(135deg, var(--bg-dark) 0%, #1a3a2a 100%);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26,58,26,0.7) 0%, rgba(46,139,87,0.5) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding: 0 20px;
    color: #fff;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    margin-bottom: 36px;
    line-height: 1.6;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- 特性卡片 ---------- */
.features-section { background: var(--bg-secondary); }

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 36px 28px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border);
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.feature-icon { font-size: 3rem; margin-bottom: 16px; }
.feature-card h3 { font-size: 1.15rem; margin-bottom: 10px; color: var(--text); }
.feature-card p { color: var(--text-secondary); font-size: 0.95rem; }

/* ---------- 产品网格 ---------- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

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

.product-card {
    background: var(--bg);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
}

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

.product-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--bg-secondary);
    display: block;
}

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

.product-card:hover .product-image img { transform: scale(1.06); }

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--accent);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
}

.product-info { padding: 16px; }

.product-info h3 {
    font-size: 0.95rem;
    margin-bottom: 6px;
    line-height: 1.4;
}

.product-info h3 a { color: var(--text); }
.product-info h3 a:hover { color: var(--primary); }

.product-desc {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-bottom: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-footer {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 10px;
}

.product-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
}

.product-original {
    font-size: 0.85rem;
    color: var(--text-light);
    text-decoration: line-through;
}

.add-cart-btn { width: 100%; }

/* ---------- 产品卡片小版 ---------- */
.product-card-sm .product-image { aspect-ratio: 1; }
.product-card-sm .product-info { padding: 12px; }
.product-card-sm .product-info h3 { font-size: 0.88rem; }
.product-card-sm .product-price { font-size: 1rem; }

/* ---------- 新闻卡片 ---------- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.news-card {
    background: var(--bg);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
}

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

.news-image {
    display: block;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.news-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.news-card:hover .news-image img { transform: scale(1.05); }

.news-body { padding: 20px; }

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

.news-body h3 {
    font-size: 1rem;
    margin-bottom: 8px;
    line-height: 1.4;
}

.news-body h3 a { color: var(--text); }
.news-body h3 a:hover { color: var(--primary); }
.news-body p { color: var(--text-secondary); font-size: 0.88rem; }

/* ---------- 新闻列表项 ---------- */
.news-list-layout { display: flex; flex-direction: column; gap: 24px; }

.news-list-item {
    display: flex;
    gap: 24px;
    background: var(--bg);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.news-list-item:hover { box-shadow: var(--shadow); border-color: var(--primary-light); }

.news-list-img {
    flex-shrink: 0;
    width: 200px;
    aspect-ratio: 16/10;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.news-list-img img { width: 100%; height: 100%; object-fit: cover; }

.news-list-body { flex: 1; }

.news-list-meta {
    display: flex;
    gap: 16px;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 8px;
}

.news-list-body h2 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.news-list-body h2 a { color: var(--text); }
.news-list-body h2 a:hover { color: var(--primary); }

.read-more { display: inline-block; margin-top: 10px; color: var(--primary); font-weight: 500; }

/* ---------- CTA 区块 ---------- */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    text-align: center;
}

.cta-section h2 { font-size: 2.2rem; margin-bottom: 12px; }
.cta-section p { font-size: 1.1rem; opacity: 0.9; margin-bottom: 32px; }
.btn-white { background: #fff; color: var(--primary); }

/* ---------- 关于我们预览 ---------- */
.about-preview-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-preview-image img {
    border-radius: var(--radius);
    width: 100%;
}

.about-preview-text h2 { font-size: 2rem; margin-bottom: 20px; }
.about-preview-text p { color: var(--text-secondary); margin-bottom: 24px; line-height: 1.8; }

/* ---------- 产品详情页 ---------- */
.product-detail-section { padding: 60px 0; }

.product-detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.gallery-main {
    aspect-ratio: 1;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
}

.gallery-main img { width: 100%; height: 100%; object-fit: cover; }

.gallery-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.gallery-thumbs img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.gallery-thumbs img:hover,
.gallery-thumbs img.active { border-color: var(--primary); }

.product-detail-info h1 { font-size: 1.8rem; margin-bottom: 12px; }
.product-detail-desc { color: var(--text-secondary); margin-bottom: 16px; }

.product-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.meta-item {
    font-size: 0.88rem;
    color: var(--text-light);
}

.product-price-box {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 24px;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
}

.big-price { font-size: 2.2rem; font-weight: 700; color: var(--primary); }
.original-price { font-size: 1rem; color: var(--text-light); text-decoration: line-through; }
.discount-tag { background: var(--accent); color: #fff; padding: 2px 10px; border-radius: 20px; font-size: 0.85rem; }

.product-actions { display: flex; gap: 12px; margin-bottom: 32px; flex-wrap: wrap; }

.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.quantity-selector button {
    width: 36px;
    height: 44px;
    border: none;
    background: var(--bg-secondary);
    cursor: pointer;
    font-size: 1.1rem;
    transition: var(--transition);
}

.quantity-selector button:hover { background: var(--primary); color: #fff; }

.quantity-selector input {
    width: 50px;
    height: 44px;
    border: none;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    text-align: center;
    font-size: 1rem;
}

.product-detail-content { margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--border); }
.product-detail-content h3 { font-size: 1.1rem; margin-bottom: 12px; }
.content-text { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.8; }

/* 相关产品 */
.related-products { margin-top: 60px; padding-top: 60px; border-top: 1px solid var(--border); }
.related-products h2 { font-size: 1.5rem; margin-bottom: 24px; }

/* ---------- 购物车 ---------- */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
    align-items: start;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}

.cart-table th,
.cart-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.cart-table th {
    background: var(--bg-secondary);
    font-weight: 600;
    font-size: 0.9rem;
}

.cart-product { display: flex; align-items: center; gap: 12px; }
.cart-product img { width: 60px; height: 60px; object-fit: cover; border-radius: var(--radius-sm); }
.cart-product a { color: var(--text); font-weight: 500; }
.cart-price { color: var(--primary); font-weight: 600; }
.cart-subtotal { font-weight: 700; color: var(--text); }

.qty-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qty-control button {
    width: 28px;
    height: 28px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--bg);
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
}

.qty-control button:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.qty-control span { min-width: 30px; text-align: center; }

.btn-text-danger {
    background: none;
    border: none;
    color: #e74c3c;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 4px 8px;
    border-radius: 4px;
    transition: var(--transition);
}

.btn-text-danger:hover { background: #fdf0ef; }

.cart-summary {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    position: sticky;
    top: 90px;
}

.cart-summary h3 { font-size: 1.1rem; margin-bottom: 16px; }

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
}

.total-row { font-weight: 700; font-size: 1.1rem; border-bottom: none; }
.total-price { color: var(--primary); font-size: 1.3rem; }
.cart-summary .btn { margin-top: 12px; }

/* ---------- 结算 ---------- */
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    align-items: start;
}

.section-title-sm { font-size: 1.2rem; margin-bottom: 16px; }

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 32px;
}

.form-group-full { grid-column: 1 / -1; }

.form-group { margin-bottom: 16px; }

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.required { color: #e74c3c; }

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: inherit;
    transition: var(--transition);
    background: var(--bg);
}

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

.payment-methods {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.payment-option input[type="radio"] { display: none; }
.payment-option:hover { border-color: var(--primary); }
.payment-option.selected { border-color: var(--primary); background: rgba(46,139,87,0.05); color: var(--primary); }
.payment-icon { font-size: 1.2rem; }

.checkout-summary {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    position: sticky;
    top: 90px;
}

.checkout-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.checkout-item img { width: 50px; height: 50px; object-fit: cover; border-radius: var(--radius-sm); }
.checkout-item .item-name { font-weight: 500; font-size: 0.9rem; }
.checkout-item .item-qty { color: var(--text-light); font-size: 0.85rem; }
.checkout-item .item-price { margin-left: auto; font-weight: 600; color: var(--primary); }

/* ---------- 订单成功页 ---------- */
.success-box {
    max-width: 600px;
    margin: 40px auto;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 48px;
    text-align: center;
}

.success-icon { font-size: 4rem; margin-bottom: 16px; }
.success-box h1 { font-size: 1.8rem; margin-bottom: 12px; }
.success-box > p { color: var(--text-secondary); margin-bottom: 24px; }

.order-info {
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    padding: 20px;
    text-align: left;
    margin-bottom: 24px;
}

.info-row {
    display: flex;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
}

.info-row:last-child { border-bottom: none; }
.info-row span:first-child { color: var(--text-secondary); min-width: 80px; }
.text-primary { color: var(--primary); font-weight: 700; }
.success-actions { display: flex; gap: 12px; justify-content: center; }

/* ---------- 关于/联系/新闻 ---------- */
.about-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-image img { border-radius: var(--radius); width: 100%; }
.about-text { color: var(--text-secondary); line-height: 1.9; font-size: 1.05rem; }

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.value-card {
    text-align: center;
    padding: 40px 28px;
    background: var(--bg);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.value-icon { font-size: 3rem; margin-bottom: 16px; }
.value-card h3 { font-size: 1.15rem; margin-bottom: 12px; }
.value-card p { color: var(--text-secondary); }

/* ---------- 联系页 ---------- */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-details { margin-top: 24px; }
.contact-details p { margin-bottom: 12px; font-size: 1.05rem; }
.contact-details strong { margin-right: 8px; }

.contact-form-box {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
}

.contact-form-box h3 { font-size: 1.2rem; margin-bottom: 20px; }
.contact-form .btn { margin-top: 8px; }

/* ---------- 产品列表页 ---------- */
.shop-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 32px;
    align-items: start;
}

.shop-sidebar { position: sticky; top: 90px; }

.filter-box {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
}

.filter-box h3 { font-size: 1rem; margin-bottom: 12px; }

.category-list li a {
    display: block;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: var(--transition);
}

.category-list li a:hover { background: var(--bg-secondary); color: var(--text); }
.category-list li a.active { background: var(--primary); color: #fff; }

.shop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.search-form {
    display: flex;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.search-form input {
    padding: 8px 14px;
    border: none;
    outline: none;
    width: 240px;
    font-size: 0.9rem;
}

.search-form button {
    padding: 8px 16px;
    background: var(--primary);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
}

.search-form button:hover { background: var(--primary-dark); }

.result-count { color: var(--text-light); font-size: 0.9rem; }

/* ---------- 新闻详情页 ---------- */
.news-detail { max-width: 800px; margin: 0 auto; }
.news-detail h1 { font-size: 2rem; margin-bottom: 16px; }
.news-detail-meta { display: flex; gap: 20px; color: var(--text-light); font-size: 0.9rem; margin-bottom: 24px; }
.news-cover { width: 100%; border-radius: var(--radius); margin-bottom: 24px; }
.news-content { color: var(--text-secondary); line-height: 1.9; font-size: 1.05rem; }
.news-back { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); }

/* ---------- 分页 ---------- */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 40px;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 0.9rem;
    transition: var(--transition);
}

.page-link:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.page-link.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ---------- 空状态 ---------- */
.empty-state {
    text-align: center;
    padding: 80px 20px;
}

.empty-icon { font-size: 4rem; margin-bottom: 16px; }
.empty-state h2 { font-size: 1.5rem; margin-bottom: 12px; }
.empty-state p { color: var(--text-secondary); margin-bottom: 20px; }

/* ---------- 静态页面 ---------- */
.static-page { max-width: 800px; margin: 0 auto; color: var(--text-secondary); line-height: 1.9; }

/* ---------- 提示消息 ---------- */
.toast-container {
    position: fixed;
    top: 90px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 360px;
}

.toast {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    animation: slideInRight 0.3s ease;
    font-size: 0.9rem;
}

.toast-success { background: #e8f5e9; color: #2e7d32; border-left: 4px solid #4caf50; }
.toast-error { background: #fdf0ef; color: #c62828; border-left: 4px solid #f44336; }
.toast-warning { background: #fff8e1; color: #f57f17; border-left: 4px solid #ff9800; }
.toast-info { background: #e3f2fd; color: #1565c0; border-left: 4px solid #2196f3; }
.toast-danger { background: #fdf0ef; color: #c62828; border-left: 4px solid #f44336; }

.toast-close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    opacity: 0.6;
    margin-left: 8px;
}

.toast-close:hover { opacity: 1; }

/* ---------- 页脚 ---------- */
.site-footer {
    background: var(--bg-dark);
    color: rgba(255,255,255,0.85);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-col h3 { font-size: 1.15rem; margin-bottom: 16px; color: #fff; }
.footer-col p { font-size: 0.9rem; margin-bottom: 8px; opacity: 0.75; }
.footer-col ul li { margin-bottom: 6px; }
.footer-col ul li a { color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.footer-col ul li a:hover { color: #fff; }

.footer-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.7;
}

.footer-bottom p { margin: 0; }
.beian-link { color: rgba(255,255,255,0.6); margin: 0 8px; }
.beian-link:hover { color: #fff; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .products-grid { grid-template-columns: repeat(3, 1fr); }
    .products-grid-sm { grid-template-columns: repeat(3, 1fr); }
    .news-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .product-detail-layout { grid-template-columns: 1fr; gap: 32px; }
    .about-preview-inner { grid-template-columns: 1fr; gap: 32px; }
    .contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .main-nav { display: none; }
    .menu-toggle { display: flex; }
    
    .main-nav.active {
        display: flex;
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--bg);
        flex-direction: column;
        padding: 16px;
        box-shadow: var(--shadow);
        z-index: 999;
    }
    
    .main-nav.active ul { flex-direction: column; }
    
    .hero-section { height: 400px; }
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 1rem; }
    
    .features-grid { grid-template-columns: 1fr; }
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .products-grid-sm { grid-template-columns: repeat(2, 1fr); }
    .news-grid { grid-template-columns: 1fr; }
    .values-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    
    .cart-layout { grid-template-columns: 1fr; }
    .checkout-layout { grid-template-columns: 1fr; }
    .shop-layout { grid-template-columns: 1fr; }
    
    .news-list-item { flex-direction: column; }
    .news-list-img { width: 100%; }
    
    .form-grid { grid-template-columns: 1fr; }
    .about-layout { grid-template-columns: 1fr; }
}

/* 成功案例区块 */
.cases-section {
    background: #f8fafc;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.case-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.3s, box-shadow 0.3s;
}

.case-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.case-image {
    display: block;
    height: 180px;
    overflow: hidden;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.case-card:hover .case-image img {
    transform: scale(1.05);
}

.case-body {
    padding: 20px;
}

.case-category {
    display: inline-block;
    font-size: 12px;
    color: #4f46e5;
    background: #eef2ff;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.case-body h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.case-body h3 a {
    color: #1e293b;
    text-decoration: none;
}

.case-body h3 a:hover {
    color: #4f46e5;
}

.case-body p {
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.case-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: #94a3b8;
}

.case-client::before {
    content: "👤 ";
}

.case-industry::before {
    content: "🏢 ";
}
