
/* 全局变量定义 */
:root {
    --primary-color: #8d6e63; /* 木质棕色 */
    --secondary-color: #d7ccc8; /* 浅木色 */
    --accent-color: #ff7043; /* 活力橙 */
    --text-main: #3e2723;
    --text-light: #6d4c41;
    --bg-body: #fdfbf7;
    --white: #ffffff;
    --shadow-sm: 0 2px 4px rgba(62, 39, 35, 0.1);
    --shadow-md: 0 8px 16px rgba(62, 39, 35, 0.15);
    --radius: 8px;
}

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

body {
    font-family: 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
}

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

ul {
    list-style: none;
}

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

/* 头部导航 */
.site-header {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.logo-icon {
    font-size: 1.8rem;
}

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

.nav-link {
    font-weight: 500;
    color: var(--text-light);
    transition: color 0.3s;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

/* 英雄区域 */
.hero-section {
    background: linear-gradient(rgba(62, 39, 35, 0.7), rgba(62, 39, 35, 0.7)), url('https://picsum.photos/seed/herobg/1920/600');
    background-size: cover;
    background-position: center;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    margin-bottom: 40px;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

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

.cta-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--accent-color);
    color: var(--white);
    border-radius: 30px;
    font-weight: bold;
    transition: transform 0.3s, background-color 0.3s;
}

.cta-button:hover {
    background-color: #f4511e;
    transform: translateY(-2px);
}

/* 筛选区 */
.filter-section {
    margin-bottom: 40px;
}

.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.tab {
    padding: 8px 20px;
    border: 1px solid var(--secondary-color);
    border-radius: 20px;
    cursor: pointer;
    color: var(--text-light);
    transition: all 0.3s;
}

.tab:hover, .tab.active {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* 主要展示网格 */
.main-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

/* 卡片样式 */
.design-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.design-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

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

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

.overlay {
    position: absolute;
    top: 15px;
    right: 15px;
}

.tag {
    background-color: var(--accent-color);
    color: var(--white);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
}

.tag.new {
    background-color: #4caf50;
}

.card-details {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-details h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-main);
}

.desc {
    font-size: 0.9rem;
    color: #757575;
    margin-bottom: 20px;
    flex: 1;
}

.meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.price {
    font-size: 1.1rem;
    color: var(--accent-color);
    font-weight: bold;
}

.btn-view {
    padding: 6px 15px;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-view:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* 页脚 */
.site-footer {
    background-color: #3e2723;
    color: #d7ccc8;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 20px;
    border-left: 3px solid var(--accent-color);
    padding-left: 10px;
}

.footer-col p {
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: var(--accent-color);
}

.copyright-bar {
    text-align: center;
    border-top: 1px solid #5d4037;
    padding-top: 20px;
    font-size: 0.85rem;
    color: #a1887f;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        height: auto;
        padding: 15px 0;
        gap: 15px;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .main-gallery {
        grid-template-columns: 1fr;
    }
}
