/*
Theme Name: Xiyuan Bio Theme
Theme URI: https://www.xiyuanbio.com/
Description: 犀源生物WordPress主题，完全保持原网站的设计风格和功能。
Author: Claude Code
Author URI:
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: xiyuan-theme
Tags: custom-background, threaded-comments, translation-ready, responsive-layout
*/

:root {
    --xiyuan-primary-blue: #1e4e7c;
    --xiyuan-secondary-blue: #2c5f8a;
    --xiyuan-light-blue: #4a7ab8;
    --xiyuan-accent-blue: #6bb6e8;
    --xiyuan-background: #ffffff;
    --xiyuan-text: #333333;
    --xiyuan-light-gray: #f8f9fa;
    --xiyuan-border: #e9ecef;
}

/* 全局样式 */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.6;
    color: var(--xiyuan-text);
    background: var(--xiyuan-background);
    margin: 0;
    padding: 0;
}

a {
    color: var(--xiyuan-primary-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--xiyuan-secondary-blue);
    text-decoration: none;
}

/* 基础容器和布局 */
.smvContainer {
    width: 1200px;
    margin: 0 auto;
}

.fullcolumn-inner smAreaC {
    width: 1200px;
    margin: 0 auto;
}

.yibuFrameContent {
    width: 100%;
    overflow: hidden;
}

/* 头部区域样式 */
.header {
    background: var(--xiyuan-primary-blue);
    height: 109px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.logo h1 {
    color: #fff;
    margin: 0;
    font-size: 24px;
    font-weight: bold;
}

/* 导航菜单样式 */
.nav {
    background: var(--xiyuan-primary-blue);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 0;
}

.w-nav {
    padding: 0;
    margin: 0;
    list-style: none;
    display: flex;
    justify-content: space-between;
}

.w-nav-item {
    width: 20%;
    text-align: center;
}

.w-nav-item-link {
    color: #fff;
    text-decoration: none;
    padding: 10px 20px;
    display: block;
    font-size: 16px;
}

.w-nav-item-link:hover {
    background: rgba(255,255,255,0.1);
}

.w-nav-item-link.active {
    font-weight: bold;
    background: var(--xiyuan-accent-blue);
}

/* 首页轮播图区域 */
.home-slider-section {
    margin-bottom: 50px;
}

.w-slide {
    width: 100%;
    height: 500px;
    overflow: hidden;
    background: var(--xiyuan-light-gray);
}

.w-slide-inner {
    width: 100%;
    height: 100%;
}

.content-box {
    width: 100%;
    height: 100%;
}

/* 产品列表样式 */
.home-products-section {
    margin-bottom: 50px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 0 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.product-item {
    width: 100%;
    background: #fff;
    border: 1px solid var(--xiyuan-border);
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.product-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.product-item img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    margin-bottom: 15px;
}

.product-title {
    font-size: 20px;
    font-weight: bold;
    color: var(--xiyuan-text);
    margin-bottom: 10px;
}

.product-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* 统计数据样式 */
.home-stats-section {
    margin-bottom: 50px;
    padding: 0 30px;
    background: var(--xiyuan-light-gray);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.stat-number {
    font-size: 48px;
    font-weight: bold;
    color: var(--xiyuan-primary-blue);
    margin-bottom: 10px;
}

.stat-desc {
    font-size: 14px;
    color: #666;
}

/* 关于我们区域 */
.home-about-section {
    margin-bottom: 50px;
    padding: 0 30px;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    line-height: 1.8;
    color: var(--xiyuan-text);
}

/* 联系我们区域 */
.contact-section {
    padding: 50px 30px;
    text-align: center;
    background: var(--xiyuan-light-gray);
}

.contact-info {
    max-width: 800px;
    margin: 0 auto;
}

.contact-info p {
    margin-bottom: 15px;
    font-size: 16px;
}

/* 区域标题 */
.section-title {
    text-align: center;
    color: var(--xiyuan-primary-blue);
    margin-bottom: 30px;
    font-size: 28px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .smvContainer,
    .fullcolumn-inner smAreaC {
        width: 100%;
        padding: 0 15px;
    }

    .nav-inner {
        max-width: 100%;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 20px;
    }

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

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}
