/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* 变量 */
:root {
    --primary-color: #fdb933; /* 金色 */
    --secondary-color: #e6a800; /* 深金色 */
    --text-dark: #333;
    --text-light: #666;
    --white: #fff;
    --bg-light: #f4f4f4;
}

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

/* 按钮样式 */
.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--text-dark);
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
}

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

/* 头部 */
header {
    background-color: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo h1 {
    font-size: 24px;
    color: var(--secondary-color);
}

nav ul {
    display: flex;
    gap: 30px;
}

nav a {
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s;
}

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

/* Hero 区域 */
.hero {
    height: 500px;
    background-color: #333;
    background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('../images/banner-placeholder.jpg'); /* 假设有背景图，暂时用颜色叠加 */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

/* 如果没有图片，用纯色兜底 */
.hero {
    background-color: #4a4a4a; 
}

.hero h2 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* 通用 Section */
.section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 50px;
    color: var(--text-dark);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 15px auto 0;
}

.bg-light {
    background-color: var(--bg-light);
}

/* 产品列表 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.product-image {
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(0,0,0,0.5);
    font-size: 20px;
    font-weight: bold;
}

.product-info {
    padding: 20px;
    text-align: center;
}

.product-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.product-info p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 15px;
}

.product-info .price {
    display: block;
    font-size: 20px;
    color: #e64a19;
    font-weight: bold;
}

/* 关于我们 */
.about-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 18px;
    color: var(--text-light);
}

.about-text p {
    margin-bottom: 20px;
}

/* 联系我们 */
.contact-info {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    text-align: center;
}

.contact-item {
    margin: 20px;
}

.contact-item h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

/* 页脚 */
footer {
    background-color: #333;
    color: rgba(255,255,255,0.7);
    text-align: center;
    padding: 30px 0;
}
