/* 全局样式 */
body {
    font-family: 'SimSun', 'Songti SC', 'Microsoft YaHei', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #fdfaf4; /* 宣纸白 */
    color: #333;
    font-size: 16px;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* 头部样式 */
header {
    background-color: #fff;
    border-bottom: 1px solid #eee;
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    margin: 0;
    font-size: 24px;
    color: #8B4513; /* 鞍褐色 */
    font-weight: normal;
}

nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

nav ul li {
    display: inline-block;
    margin-left: 25px;
}

nav a {
    text-decoration: none;
    color: #555;
    font-size: 16px;
    padding: 5px 0;
    transition: color 0.3s;
}

nav a:hover, nav a.active {
    color: #c00;
    border-bottom: 2px solid #c00;
}

/* 主体内容 */
main {
    padding-bottom: 40px;
}

/* Banner */
.banner {
    position: relative;
    text-align: center;
    color: white;
    height: 400px;
    overflow: hidden;
}

.banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.4);
    padding: 20px 40px;
    border-radius: 5px;
}

.banner-text h2 {
    font-size: 36px;
    margin: 0;
    font-family: 'KaiTi', 'STKaiti', serif;
}

.banner-text p {
    font-size: 18px;
}

/* 通用板块样式 */
section {
    padding: 40px 0;
    text-align: center;
}

section h2 {
    font-size: 28px;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
    font-weight: normal;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background-color: #8B4513;
}

.home-about p {
    font-size: 18px;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto 20px;
}

.more-btn {
    display: inline-block;
    padding: 10px 25px;
    border: 1px solid #8B4513;
    color: #8B4513;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

.more-btn:hover {
    background-color: #8B4513;
    color: #fff;
}

/* 产品展示 */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

/* 页脚样式 */
footer {
    background-color: #333;
    color: #ccc;
    padding: 20px 0;
    text-align: center;
    font-size: 14px;
}

footer p {
    margin: 8px 0;
}

footer a {
    color: #fff;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}