/*============================
   绿色主题样式表 - Theme Color: #00cc00
   文件: style.css
   说明: 统一所有页面的样式，PC端美观 + 移动端自适应
============================*/

/* ===== CSS变量定义 ===== */
:root {
    --primary: #00cc00;
    --primary-dark: #009900;
    --primary-light: #33dd33;
    --primary-rgb: 0, 204, 0;
    --text: #1e293b;
    --text-light: #64748b;
    --text-lighter: #94a3b8;
    --bg: #ffffff;
    --bg-light: #f8fafc;
    --bg-lighter: #f1f5f9;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --shadow: 0 2px 10px rgba(0, 204, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 204, 0, 0.12);
    --shadow-lg: 0 10px 40px rgba(0, 204, 0, 0.15);
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --header: 80px;
    --width: 1200px;
    --transition: all 0.3s ease;
}

/* ===== 全局重置 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: var(--text); transition: var(--transition); }
a:hover { color: var(--primary); }
.container { max-width: var(--width); margin: 0 auto; padding: 0 20px; }

/* ===== 头部导航 ===== */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--header);
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 999;
    transition: var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow); }
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
}
.logo img { height: 50px; }
.logo span { color: var(--text); }

/* 导航菜单 */
.main-nav {
    display: flex;
    gap: 32px;
    align-items: center;
}
.main-nav a {
    font-weight: 500;
    position: relative;
    padding: 6px 0;
    color: var(--text);
}
.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 2px;
    background: var(--primary);
    transition: var(--transition);
}
.main-nav a:hover::after,
.main-nav a.active::after { width: 100%; }
.main-nav a:hover,
.main-nav a.active { color: var(--primary); }

/* 移动端菜单按钮 */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    margin: 5px 0;
    transition: var(--transition);
}

/* ===== 主体内容区 ===== */
.site-main { padding-top: var(--header); min-height: calc(100vh - 500px); }

/* ===== 按钮组件 ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}
.btn-primary {
    background: var(--primary);
    color: #fff;
}
.btn-primary:hover {
    background: var(--primary-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 204, 0, 0.3);
}
.btn-outline {
    border: 1px solid var(--primary);
    color: var(--primary);
    background: transparent;
}
.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

/* ===== 卡片组件 ===== */
.card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.card-image { overflow: hidden; }
.card-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.card:hover .card-image img { transform: scale(1.06); }
.card-body { padding: 22px; }
.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
    color: var(--text);
}
.card-meta {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 10px;
}
.card-desc {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* ===== 页脚基础 ===== */
.site-footer {
    background: var(--bg-light);
    border-top: 1px solid var(--border);
}

/* ===== 分页组件 ===== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 40px 0;
    flex-wrap: wrap;
}
.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    transition: var(--transition);
}
.pagination a {
    background: #fff;
    color: var(--text);
    border: 1px solid var(--border);
}
.pagination a:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.pagination .current {
    background: var(--primary);
    color: #fff;
    font-weight: 600;
}
.pagination .disabled {
    color: var(--text-lighter);
    cursor: not-allowed;
}

/* ============================================
   首页样式 (index.php)
   ============================================ */
.hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    height: 600px;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 50%, #bbf7d0 100%);
}
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.8s ease;
}
.hero-slide.active {
    opacity: 1;
    visibility: visible;
}
.hero-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
}
.hero-slide-bg::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.4), rgba(0,0,0,0.2));
}
.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 20px;
}
.hero-text {
    max-width: 650px;
    color: #fff;
}
.hero-text h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 28px;
    text-shadow: 0 1px 5px rgba(0,0,0,0.2);
}
.hero-buttons { 
    display: flex; 
    gap: 16px; 
    justify-content: center; 
    position: relative; 
    z-index: 1;
}
.hero-buttons .btn {
    padding: 14px 32px;
    border-radius: 50px;
}

/* 轮播指示器 */
.hero-dots {
    position: absolute;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}
.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
}
.hero-dot.active {
    background: var(--primary);
    width: 30px;
    border-radius: 6px;
}

/* 轮播箭头 */
.hero-arrows {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
    z-index: 10;
}
.hero-arrow {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border: none;
    cursor: pointer;
}
.hero-arrow:hover {
    background: var(--primary);
}

/* 布局样式 */
.section {padding: 80px 0;}
.section-header {text-align: center; margin-bottom: 50px;}
.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 16px;
    position: relative;
    padding-bottom: 12px;
}
.section-header h2::after {
    content: "";
    width: 50px;
    height: 3px;
    background: var(--primary);
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}
.section-header p {color: var(--text-light); max-width: 600px; margin: 0 auto;}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}
.hero-desc {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 40px;
    position: relative;
    z-index: 1;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
}
.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 50px;
    font-size: 1.05rem;
}

/* 首页卡片列表 */
.home-card-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}
.home-card {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
}
.home-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
.home-card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.home-card:hover .home-card-img { transform: scale(1.05); }
.home-card-content { padding: 20px; }
.home-card-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--primary-dark);
    font-weight: 600;
}
.home-card-desc {
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 0.9rem;
    line-height: 1.6;
}
.home-card-btn {
    display: inline-block;
    padding: 8px 18px;
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}
.home-card-btn:hover {
    background: var(--primary-dark);
    color: #fff;
}

/* 首页表单 */
.home-form-box {
    max-width: 500px;
    margin: 60px auto 0;
    background: #fff;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}
.home-form-title {
    text-align: center;
    color: var(--primary-dark);
    margin-bottom: 25px;
    font-size: 1.5rem;
    font-weight: 600;
}
.form-item { margin-bottom: 20px; }
.form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--text);
    font-weight: 500;
    font-size: 0.95rem;
}
.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: var(--transition);
    outline: none;
}
.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 204, 0, 0.1);
}
.form-input::placeholder { color: var(--text-lighter); }

/* ============================================
   分类列表页样式 (category.php)
   ============================================ */
.page-header {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    padding: 80px 0 50px;
    text-align: center;
    margin-bottom: 40px;
}
.page-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text);
}
.page-header p {
    color: var(--text-light);
    font-size: 1.05rem;
}

/* 搜索框 */
.search-box {
    max-width: 600px;
    margin: 0 auto 40px;
}
.search-form {
    display: flex;
    gap: 10px;
}
.search-form input {
    flex: 1;
    padding: 14px 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}
.search-form input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 204, 0, 0.1);
}
.search-form button { 
    padding: 14px 30px; 
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius-lg);
    border: none;
    cursor: pointer;
}
.search-form button:hover {
    background: var(--primary-dark);
}

/* 列表布局 */
.list-container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
}

/* 文章列表 */
.article-grid {display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px;}
.case-grid {display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;}

.article-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.article-item {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 24px;
    padding: 24px;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.article-item:hover { box-shadow: var(--shadow-md); }
.article-thumb {
    aspect-ratio: 16/10;
    border-radius: var(--radius);
    overflow: hidden;
}
.article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}
.article-item:hover .article-thumb img { transform: scale(1.05); }
.article-info {
    display: flex;
    flex-direction: column;
}
.article-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
}
.article-info h3 a { color: var(--text); }
.article-info h3 a:hover { color: var(--primary); }
.article-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 12px;
}
.article-meta .category {
    color: var(--primary);
    font-weight: 500;
}
.article-summary {
    color: var(--text-light);
    line-height: 1.6;
    flex: 1;
}
.article-summary mark {
    background: #fef3c7;
    padding: 2px 4px;
    border-radius: 3px;
}

/* 侧边栏 */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.sidebar-section {
    background: #fff;
    padding: 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}
.sidebar-section h4 {
    font-size: 1.125rem;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    font-weight: 600;
}
.category-list { list-style: none; }
.category-list li { margin-bottom: 12px; }
.category-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text);
    padding: 10px 0;
    transition: var(--transition);
}
.category-list a:hover,
.category-list a.active { color: var(--primary); }
.category-list .count {
    font-size: 0.75rem;
    color: var(--text-light);
    background: var(--bg-light);
    padding: 2px 8px;
    border-radius: 10px;
}

/* 热门文章 */
.hot-list { list-style: none; }
.hot-list li {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}
.hot-list li:last-child { border-bottom: none; }
.hot-list .num {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    flex-shrink: 0;
}
.hot-list li:nth-child(1) .num { background: #fef3c7; color: #d97706; }
.hot-list li:nth-child(2) .num { background: #f3f4f6; color: #6b7280; }
.hot-list li:nth-child(3) .num { background: #ffedd5; color: #c2410c; }
.hot-list a {
    color: var(--text);
    font-size: 0.875rem;
    line-height: 1.5;
}
.hot-list a:hover { color: var(--primary); }

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-light);
}
.empty-state h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--text);
}

/* ============================================
   产品列表样式
   ============================================ */
.products-section {
    padding: 80px 0;
}
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.product-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}
.product-card .card-image {
    aspect-ratio: 4/3;
    position: relative;
    overflow: hidden;
}
.product-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.product-card:hover .card-image img {
    transform: scale(1.05);
}
.product-card .card-body {
    padding: 20px;
}
.product-card .card-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}
.product-price span {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: normal;
}
.product-desc {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-card .btn {
    width: 100%;
    text-align: center;
}

/* ============================================
   详情页样式
   ============================================ */
.article-header {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    padding: 80px 0 40px;
    margin-bottom: 10px;
}
.article-header .container { max-width: 800px; }
.article-category {
    display: inline-block;
    padding: 6px 16px;
    background: var(--primary);
    color: #fff;
    font-size: 0.875rem;
    border-radius: 20px;
    margin-bottom: 20px;
    transition: var(--transition);
}
.article-category:hover {
    opacity: 0.9;
    color: #fff;
}
.article-title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 10px;
    color: var(--text);
}
.article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    color: var(--text-light);
    font-size: 0.875rem;
}
.article-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* 文章内容 */
.article-content {
    max-width: 800px;
    margin: 0 auto 10px;
    padding: 0 16px;
}
.article-body {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--text);
}
.article-body h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border);
    color: var(--text);
}
.article-body h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 30px 0 15px;
    color: var(--text);
}
.article-body p {
    margin-top: 10px;
    margin-bottom: 0px;
    font-size: 1.15rem;
    text-indent: 2em;
}
.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin: 0px 0;
}
.article-body video {
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
    margin: 30px 0;
    border-radius: var(--radius);
}
.article-body ul,
.article-body ol {
    margin: 20px 0;
    padding-left: 30px;
}
.article-body li { margin-bottom: 10px; }
.article-body blockquote {
    border-left: 4px solid var(--primary);
    padding: 20px 20px 20px 30px;
    margin: 30px 0;
    background: var(--bg-light);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
}
.article-body code {
    background: var(--bg-light);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9em;
}
.article-body pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 20px;
    border-radius: var(--radius);
    overflow-x: auto;
    margin: 20px 0;
}
.article-body pre code { background: transparent; padding: 0; }
.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}
.article-body th,
.article-body td {
    padding: 12px;
    border: 1px solid var(--border);
    text-align: left;
}
.article-body th {
    background: var(--bg-light);
    font-weight: 600;
}

/* 封面图 */
.article-cover {
    margin-bottom: 0px;
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.article-cover img { width: 100%; height: auto; }

/* 文章导航 */
.article-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 30px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 30px;
}
.article-nav-item {
    padding: 20px;
    background: var(--bg-light);
    border-radius: var(--radius);
    transition: var(--transition);
}
.article-nav-item:hover { background: #dcfce7; }
.article-nav-item.prev { text-align: left; }
.article-nav-item.next { text-align: right; }
.article-nav-label {
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}
.article-nav-title {
    font-weight: 600;
    color: var(--text);
}
.article-nav-item:hover .article-nav-title { color: var(--primary); }

/* 相关文章 */
.related-section { margin-bottom: 60px; }
.related-section h3 {
    font-size: 1.25rem;
    margin-bottom: 24px;
    color: var(--text);
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.related-item { display: block; }
.related-thumb {
    aspect-ratio: 16/10;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 12px;
}
.related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}
.related-item:hover .related-thumb img { transform: scale(1.05); }
.related-title {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text);
    line-height: 1.5;
}
.related-item:hover .related-title { color: var(--primary); }

/* AI抓取优化 */
.ai-meta { display: none; }

/* ============================================
   关于我们样式
   ============================================ */
.about-section {background: var(--bg-light);}
.about-content {display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;}
.about-text h3 {font-size: 2rem; margin-bottom: 20px; color: var(--primary-dark);}
.about-text p {color: var(--text-light); line-height: 1.8;}
.about-image {border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg);}

/* ============================================
   独立页面样式 (page.php)
   ============================================ */
.page-page-header {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    padding: 80px 0 50px;
    text-align: center;
    margin-bottom: 40px;
}
.page-page-header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
    letter-spacing: 0.5px;
}
.page-page-header p {
    color: var(--text-light);
    margin-top: 12px;
    font-size: 1.1rem;
}
.page-content {
    max-width: 900px;
    margin: 0 auto 80px;
    padding: 0 20px;
}
.page-body {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--text);
    background: #fff;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    margin-top: 20px;
}
.page-body h2 {
    font-size: 1.6rem;
    font-weight: 600;
    margin: 45px 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
    color: var(--primary-dark);
}
.page-body h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 35px 0 15px;
    color: var(--text);
}
.page-body p { margin-bottom: 20px; }
.page-body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin: 30px auto;
    display: block;
    box-shadow: var(--shadow);
}
.page-body video {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin: 30px auto;
    display: block;
    box-shadow: var(--shadow);
}
.page-body ul,
.page-body ol {
    margin: 20px 0;
    padding-left: 30px;
}
.page-body li { margin-bottom: 10px; }

/* 联系信息卡片 */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 0 0 50px;
}
.contact-card {
    text-align: center;
    padding: 45px 24px;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid transparent;
}
.contact-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}
.contact-card-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.8rem;
    box-shadow: 0 4px 12px rgba(0, 204, 0, 0.2);
}
.contact-card h4 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: var(--text);
    font-weight: 600;
}
.contact-card p {
    color: var(--text-light);
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.5;
}

/* 留言表单 */
.message-form {
    max-width: 700px;
    margin: 0 auto 50px;
    background: #fff;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}
.form-group {
    margin-bottom: 28px;
    position: relative;
}
.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--text);
    font-size: 1.05rem;
}
.form-group label .required { color: #dc3545; margin-left: 4px; }
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
    color: var(--text);
    background: #fff;
    box-sizing: border-box;
}
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 204, 0, 0.1);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-lighter); font-size: 0.95rem; }
.form-group textarea {
    min-height: 180px;
    resize: vertical;
    line-height: 1.6;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.captcha-group {
    display: flex;
    gap: 15px;
    align-items: center;
}
.captcha-group input {
    flex: 1;
    height: 54px;
}
.captcha-img {
    height: 54px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--border);
}
.captcha-img:hover { opacity: 0.9; }
.char-count {
    position: absolute;
    right: 0;
    bottom: -22px;
    font-size: 0.85rem;
    color: var(--text-light);
}
.form-actions {
    text-align: center;
    margin-top: 30px;
}
.form-actions .btn {
    padding: 16px 56px;
    font-size: 1.05rem;
    font-weight: 500;
    border-radius: var(--radius);
    background: var(--primary);
    border: none;
    color: white;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(0, 204, 0, 0.2);
}
.form-actions .btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 204, 0, 0.3);
}
.form-actions .btn:active { transform: translateY(0); }

/* 提示消息 */
.alert {
    padding: 20px 24px;
    border-radius: var(--radius);
    margin-bottom: 30px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 12px;
}
.alert-success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}
.alert-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}
.alert i { font-size: 1.2rem; }


/* ===== CSS变量定义 ===== */
:root {
    --primary-color: #00cc00;
    --primary-dark: #00b300;
    --secondary-color: #64748b;
    --text-color: #1e293b;
    --text-light: #64748b;
    --bg-color: #ffffff;
    --bg-light: #f8fafc;
    --border-color: #e2e8f0;
    --shadow: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.1);
    --radius: 8px;
    --radius-lg: 16px;
    --transition: all 0.3s ease;
    --header-height: 70px;
    --max-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

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: var(--bg-color);
    -webkit-font-smoothing: antialiased;
}

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

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

a:hover {
    color: var(--primary-dark);
}

/* ===== 布局容器 ===== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

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

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

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

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

.logo img {
    height: 60px;
    width: auto;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.main-nav a {
    color: var(--text-color);
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.main-nav a.active {
    color: var(--primary-color);
}

/* 移动端菜单按钮 */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    cursor: pointer;
    background: none;
    border: none;
}

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

/* ===== 主要内容区 ===== */
.site-main {
    min-height: calc(100vh - var(--header-height) - 300px);
    padding-top: var(--header-height);
}

/* ===== 页脚 ===== */
.site-footer {
    background: var(--bg-light);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 1rem;
    margin-bottom: 20px;
    color: var(--text-color);
}

.footer-section p,
.footer-section a {
    color: var(--text-light);
    font-size: 0.875rem;
    line-height: 2;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-light);
}

.footer-bottom a {
    color: var(--text-light);
    margin: 0 10px;
}

/* ===== 通用组件 ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

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

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

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

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

/* 卡片 */
.card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.card-image {
    aspect-ratio: 16/10;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.card-body {
    padding: 24px;
}

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.875rem;
    color: var(--text-light);
}

.card-desc {
    margin-top: 12px;
    font-size: 0.875rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* 分页 */
.pagination {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.page-info {
    font-size: 0.875rem;
    color: var(--text-light);
}

.page-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.page-links a,
.page-links span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: var(--radius);
    font-size: 0.875rem;
    transition: var(--transition);
}

.page-links a {
    background: var(--bg-light);
    color: var(--text-color);
}

.page-links a:hover {
    background: var(--primary-color);
    color: #fff;
}

.page-links span.current {
    background: var(--primary-color);
    color: #fff;
}

.page-links span.disabled {
    color: var(--text-light);
    cursor: not-allowed;
}

.page-links span.ellipsis {
    background: transparent;
}

/* ===== 面包屑 ===== */
.breadcrumb {
    padding: 20px 0;
    font-size: 0.875rem;
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--text-light);
}

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

.breadcrumb .separator {
    margin: 0 8px;
}

/* ===== 商品详情页专属样式（补全缺失部分） ===== */
.product-detail-section{
    padding:60px 0;
}
.breadcrumb{
    margin-bottom:30px;color:var(--text-light)
}
.breadcrumb a{
    color:var(--text-light);text-decoration:none
}
.breadcrumb a:hover{
    color:var(--primary-color)
}
.product-detail-grid{
    display:grid;grid-template-columns:1fr 1fr;gap:60px;margin-bottom:60px
}
.product-gallery{
    border-radius:var(--radius-lg);overflow:hidden;box-shadow:var(--shadow)
}
.product-gallery img{
    width:100%;height:auto;display:block
}
.product-info h1{
    font-size:2rem;margin-bottom:20px;color:var(--text-color)
}
.product-meta{
    margin-bottom:30px
}
.product-price-large{
    font-size:2.5rem;font-weight:700;color:var(--primary-color);margin-bottom:20px
}
.product-price-large span{
    font-size:1rem;color:var(--text-light);font-weight:normal
}
.product-status{
    display:inline-block;padding:8px 20px;background:rgba(0,204,0,0.1);color:var(--primary-color);border-radius:20px;font-size:.9rem;font-weight:500
}
.product-actions{
    display:flex;gap:16px;margin-bottom:30px
}
.product-actions .btn{
    padding:14px 40px;font-size:1rem
}
.product-summary{
    color:var(--text-light);line-height:1.8;padding:20px;background:var(--bg-light);border-radius:var(--radius)
}
.content-tabs{
    margin-top:40px
}
.tab-nav{
    display:flex;gap:0;border-bottom:2px solid var(--border-color);margin-bottom:30px
}
.tab-nav a{
    padding:16px 32px;color:var(--text-light);text-decoration:none;font-weight:500;border-bottom:2px solid transparent;margin-bottom:-2px;transition:var(--transition)
}
.tab-nav a.active{
    color:var(--primary-color);border-bottom-color:var(--primary-color)
}
.tab-content{
    background:#fff;padding:40px;border-radius:var(--radius-lg);box-shadow:var(--shadow)
}
.tab-panel{
    display:none
}
.tab-panel.active{
    display:block
}
.tab-panel h3{
    font-size:1.25rem;margin-bottom:20px;color:var(--text-color)
}
.params-list{
    list-style:none;padding:0
}
.params-list li{
    padding:16px 0;border-bottom:1px solid var(--border-color);display:flex;justify-content:space-between
}
.params-list li:last-child{
    border-bottom:none
}
.params-list .label{
    color:var(--text-light)
}
.params-list .value{
    color:var(--text-color);font-weight:500
}
.detail-content{
    color:var(--text-color);line-height:2
}
.detail-content img{
    max-width:100%;border-radius:var(--radius);margin:20px 0
}

/* ===== 响应式设计 ===== */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }

    .menu-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 20px;
        gap: 0;
        border-bottom: 1px solid var(--border-color);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }

    .main-nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .main-nav a {
        padding: 15px 0;
        border-bottom: 1px solid var(--border-color);
        width: 100%;
    }

    .main-nav a:last-child {
        border-bottom: none;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom {
        font-size: 0.75rem;
    }

    /* 商品详情移动端适配补全 */
    .product-detail-grid{
        grid-template-columns:1fr;gap:30px
    }
    .product-info h1{
        font-size:1.5rem
    }
    .product-price-large{
        font-size:1.75rem
    }
    .product-actions{
        flex-direction:column
    }
    .product-actions .btn{
        width:100%
    }
    .tab-nav{
        flex-wrap:wrap
    }
    .tab-nav a{
        padding:12px 20px
    }
    .tab-content{
        padding:20px
    }
}

/* ===== 打印样式 ===== */
@media print {
    .site-header,
    .site-footer,
    .pagination {
        display: none;
    }

    .site-main {
        padding-top: 0;
    }
}
/* ============================================
   页脚样式 (footer.php)
   ============================================ */
.site-footer {
    background: var(--bg-light);
    padding: 50px 0 20px;
    color: var(--text);
    border-top: 1px solid var(--border);
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}
.footer-section h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--primary-dark);
    position: relative;
    padding-bottom: 10px;
}
.footer-section h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: var(--primary);
}
.footer-brand .brand-desc {
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--text-light);
}
.footer-social {
    display: flex;
    gap: 10px;
}
.social-link {
    display: inline-block;
    width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    transition: var(--transition);
}
.social-link:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    color: #fff;
}
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li {
    margin-bottom: 10px;
}
.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}
.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}
.contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
}
.contact-info li {
    margin-bottom: 12px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 8px;
}
.contact-info i {
    color: var(--primary);
    width: 16px;
}
.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 20px;
    text-align: center;
    color: var(--text-light);
    font-size: 14px;
}
.footer-bottom a {
    color: var(--text-light);
    text-decoration: none;
}
.footer-bottom a:hover {
    color: var(--primary);
}
.separator {
    margin: 0 10px;
    color: var(--border);
}

/* 回到顶部按钮 */
.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 50px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    font-size: 1.2rem;
}
.back-to-top.show {
    opacity: 1;
    visibility: visible;
}
.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* 图标占位 */
[class^="icon-"] {
    display: inline-block;
    font-style: normal;
}
.icon-phone::before { content: "\1F4DE"; }
.icon-email::before { content: "\2709"; }
.icon-location::before { content: "\1F4CD"; }
.icon-wechat::before { content: "\1F4AC"; }
.icon-qq::before { content: "\1F427"; }
.icon-douyin::before { content: "\1F3B5"; }
.icon-time::before { content: "\23F0"; }
.icon-top::before { content: "\2191"; }

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

/* ============================================
   响应式适配
   ============================================ */
@media (max-width: 1024px) {
    .list-container { grid-template-columns: 1fr; }
    .sidebar { display: none; }
    .related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 992px) {
    :root { --header: 70px; }
    .menu-toggle { display: block; }
    .main-nav {
        position: fixed;
        top: var(--header);
        left: 0; right: 0;
        background: #fff;
        flex-direction: column;
        padding: 20px;
        gap: 0;
        box-shadow: var(--shadow);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        z-index: 998;
    }
    .main-nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    .main-nav a {
        padding: 14px 0;
        width: 100%;
        border-bottom: 1px solid var(--border);
    }
    .footer-grid-main { grid-template-columns: repeat(2, 1fr); }
    .hero-title { font-size: 2.2rem; }
    .hero-section {height: 550px;}
    .hero-text h2 {font-size: 2.4rem;}
    .article-grid {grid-template-columns: repeat(2, 1fr);}
    .case-grid {grid-template-columns: repeat(2, 1fr);}
    .about-content {grid-template-columns: 1fr;}
}
@media (max-width: 768px) {
    .page-header { padding: 60px 0 30px; }
    .page-header h1 { font-size: 1.5rem; }
    .article-item { grid-template-columns: 1fr; }
    .article-thumb { aspect-ratio: 16/9; }
    .search-form { flex-direction: column; }
    .article-header { padding: 60px 0 20px; }
    .article-title { font-size: 1.5rem; }
    .article-meta { flex-wrap: wrap; gap: 10px; }
    .article-nav { grid-template-columns: 1fr; }
    .article-nav-item.next { text-align: left; }
    .related-grid { grid-template-columns: 1fr; }
    .article-body { font-size: 1rem; }
    .article-body h2 { font-size: 1.25rem; }
    .article-body h3 { font-size: 1.125rem; }
    .article-body p { text-indent: 1.5em; }
    .page-page-header { padding: 60px 0 30px; }
    .page-page-header h1 { font-size: 1.8rem; }
    .page-body { padding: 25px 20px; }
    .contact-cards { gap: 20px; }
    .contact-card { padding: 35px 20px; }
    .contact-card-icon { width: 60px; height: 60px; font-size: 1.5rem; }
    .message-form { padding: 30px 20px; }
    .form-row { grid-template-columns: 1fr; gap: 28px; }
    .captcha-group { flex-direction: column; gap: 12px; }
    .captcha-group input { width: 100%; height: 50px; }
    .captcha-img { width: 100%; max-width: 200px; height: auto; }
    .form-actions .btn { width: 100%; padding: 15px 0; }
    .page-body h2 { font-size: 1.4rem; }
    .page-body h3 { font-size: 1.2rem; }
    .footer-grid-main { grid-template-columns: 1fr; }
    .hero-title { font-size: 1.8rem; }
    .hero-desc { font-size: 1rem; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .home-card-list { grid-template-columns: 1fr; }
    .home-form-box { padding: 25px 20px; }
    .hero-section {
        height: 70vh !important;
        min-height: 240px !important;
        max-height: 320px !important;
    }
    .hero-content {justify-content: center; text-align: center;}
    .hero-text h2 {font-size: 2rem !important;}
    .hero-text p {font-size: 1rem !important;}
    .hero-buttons {flex-direction: column; gap: 12px;}
    .article-grid, .case-grid {grid-template-columns: 1fr;}
    .section {padding: 60px 0;}
}
@media (max-width: 480px) {
    .page-page-header h1 { font-size: 1.5rem; }
    .page-content { padding: 0 15px; }
    .contact-card { padding: 30px 15px; }
    .message-form { padding: 25px 15px; }
    .form-group { margin-bottom: 24px; }
    .form-group input,
    .form-group textarea { padding: 14px 16px; }
    .hero-title { font-size: 1.5rem; }
    .products-grid { grid-template-columns: 1fr; }
}