
/* 全局变量 - 自然雅致风格 */
:root {
    --primary-color: #556b2f; /* 橄榄绿 */
    --secondary-color: #8fbc8f; /* 暗海绿 */
    --accent-color: #d2b48c; /* 棕褐色 */
    --bg-color: #faf9f6; /* 米白色 */
    --surface-color: #ffffff;
    --text-main: #2f4f4f; /* 深岩灰 */
    --text-light: #708090; /* 石板灰 */
    --border-radius: 8px;
    --shadow: 0 4px 20px rgba(85, 107, 47, 0.08);
    --font-family: 'Georgia', 'Times New Roman', serif; /* 衬线体增强文艺感 */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.8;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

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

/* 顶部导航 */
.garden-header {
    background: var(--surface-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #eee;
}

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

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

.nav-links a {
    margin: 0 20px;
    font-weight: 500;
    color: var(--text-main);
    font-size: 1rem;
    position: relative;
}

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

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

.btn-contact {
    background: var(--primary-color);
    color: var(--white);
    padding: 10px 25px;
    border-radius: 30px;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.btn-contact:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* 英雄区域 */
.hero-banner {
    padding: 100px 0;
    background: linear-gradient(to right, #f5f5dc, #fffaf0);
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: normal;
}

.subtitle {
    font-size: 1.4rem;
    color: var(--text-light);
    margin-bottom: 40px;
    font-style: italic;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

.btn-primary {
    padding: 15px 40px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: var(--border-radius);
    font-size: 1rem;
    letter-spacing: 1px;
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-secondary {
    padding: 15px 40px;
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    letter-spacing: 1px;
}

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

.hero-img-box {
    flex: 1;
}

.hero-img-box img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border: 10px solid var(--white);
}

/* 通用区块 */
.section-area {
    padding: 100px 0;
}

.bg-white {
    background: #ffffff;
}

.bg-beige {
    background: #f5f5dc;
}

.section-head {
    text-align: center;
    margin-bottom: 70px;
}

.section-head h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    font-weight: normal;
}

.section-head p {
    color: var(--text-light);
    font-size: 1.1rem;
    font-style: italic;
}

/* 植物卡片 */
.plant-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
}

.plant-card {
    background: var(--surface-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.plant-card:hover {
    transform: translateY(-10px);
}

.card-img {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

.plant-card:hover .card-img img {
    transform: scale(1.1);
}

.tag-indoor, .tag-outdoor, .tag-flower, .tag-succulent {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255,255,255,0.9);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: bold;
}

.card-body {
    padding: 25px;
}

.card-body h3 {
    font-size: 1.4rem;
    margin-bottom: 5px;
    color: var(--text-main);
}

.latin-name {
    font-style: italic;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.desc {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* 设计案例 */
.design-list {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.design-item {
    display: flex;
    align-items: center;
    gap: 40px;
    background: var(--surface-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.design-item.reverse {
    flex-direction: row-reverse;
}

.design-img {
    flex: 1;
}

.design-img img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.design-info {
    flex: 1;
}

.design-info h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.design-info p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.8;
}

.link-more {
    color: var(--primary-color);
    font-weight: bold;
    border-bottom: 1px solid transparent;
}

.link-more:hover {
    border-bottom: 1px solid var(--primary-color);
}

/* 博客文章 */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.blog-post {
    padding: 30px;
    border: 1px solid #eee;
    border-radius: var(--border-radius);
    transition: all 0.3s;
}

.blog-post:hover {
    border-color: var(--secondary-color);
    box-shadow: var(--shadow);
}

.post-date {
    color: var(--accent-color);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.blog-post h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-main);
}

.blog-post p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.read-more {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: bold;
}

/* 页脚 */
.site-footer {
    background: #2f4f4f;
    color: #dcdcdc;
    padding: 80px 0 30px;
}

.footer-layout {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 25px;
    font-size: 1.3rem;
}

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

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

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #3e6363;
    font-size: 0.85rem;
    color: #aaa;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .header-flex {
        flex-direction: column;
        height: auto;
        padding: 15px 0;
        gap: 15px;
    }

    .nav-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
    }

    .hero-btns {
        justify-content: center;
    }

    .design-item, .design-item.reverse {
        flex-direction: column;
    }

    .footer-layout {
        grid-template-columns: 1fr;
        text-align: center;
    }
}
