/*
Theme Name:   GardenJoy - Garden Products Store
Theme URI:    https://gardenjoy.com
Description:  A beautiful child theme for Storefront, designed specifically for garden products and outdoor living dropshipping store. Features elegant green color schemes and nature-inspired design elements.
Author:       GardenJoy Team
Author URI:   https://gardenjoy.com
Template:     storefront
Version:      1.0.0
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  gardenjoy-storefront
Tags:         e-commerce, garden, nature, plants, outdoor
*/

/* ==========================================================================
   主题颜色变量 - 花园绿色主题
   ========================================================================== */
:root {
    --primary-green: #2d5016;      /* 深绿色 - 主要品牌色 */
    --secondary-green: #4a7c2c;    /* 中绿色 - 次要色 */
    --light-green: #7fb069;        /* 浅绿色 - 点缀色 */
    --accent-green: #a7d129;       /* 亮绿色 - 强调色 */
    --earth-brown: #8b6f47;        /* 泥土棕色 */
    --light-bg: #f8faf5;           /* 浅背景色 */
    --white: #ffffff;
    --text-dark: #2d3436;
    --text-light: #636e72;
}

/* ==========================================================================
   全局样式重置
   ========================================================================== */
body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    background-color: var(--light-bg);
}

/* ==========================================================================
   顶部导航栏样式
   ========================================================================== */
.site-header {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--secondary-green) 100%);
    padding: 1.5em 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Logo优化 - 适配原GardenJoy logo */
.site-branding .custom-logo-link {
    display: inline-block;
}

.site-branding .custom-logo {
    max-height: 80px;
    width: auto;
    height: auto;
    display: block;
    transition: opacity 0.3s ease;
}

.custom-logo-link:hover .custom-logo {
    opacity: 0.9;
}

/* 响应式Logo调整 */
@media (max-width: 768px) {
    .site-branding .custom-logo {
        max-height: 60px;
    }
}

.site-branding .site-title a,
.site-branding .site-description {
    color: var(--white);
}

.main-navigation ul li a,
.secondary-navigation ul li a {
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.main-navigation ul li a:hover,
.secondary-navigation ul li a:hover {
    color: var(--accent-green);
}

/* ==========================================================================
   首页英雄区域
   ========================================================================== */
.hero-section {
    background: linear-gradient(rgba(45, 80, 22, 0.7), rgba(74, 124, 44, 0.7)),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%234a7c2c" width="1200" height="600"/></svg>');
    background-size: cover;
    background-position: center;
    padding: 120px 20px;
    text-align: center;
    color: var(--white);
    margin-bottom: 3em;
}

.hero-content h1 {
    font-size: 3.5em;
    font-weight: 700;
    margin-bottom: 0.5em;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p.hero-subtitle {
    font-size: 1.5em;
    margin-bottom: 2em;
    color: rgba(255, 255, 255, 0.95);
}

.hero-cta {
    display: inline-block;
    padding: 18px 45px;
    background-color: var(--accent-green);
    color: var(--primary-green);
    font-size: 1.2em;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-cta:hover {
    background-color: #c5e63a;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   特色区域样式
   ========================================================================== */
.features-section {
    padding: 60px 0;
    background-color: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.feature-box {
    text-align: center;
    padding: 40px 30px;
    background: var(--light-bg);
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.feature-box:hover {
    transform: translateY(-5px);
    border-color: var(--light-green);
    box-shadow: 0 10px 30px rgba(74, 124, 44, 0.15);
}

.feature-icon {
    font-size: 3.5em;
    color: var(--secondary-green);
    margin-bottom: 20px;
}

.feature-box h3 {
    color: var(--primary-green);
    font-size: 1.5em;
    margin-bottom: 15px;
}

.feature-box p {
    color: var(--text-light);
    line-height: 1.7;
}

/* ==========================================================================
   关于我们页面样式
   ========================================================================== */
.about-hero {
    background: linear-gradient(135deg, var(--secondary-green) 0%, var(--primary-green) 100%);
    color: var(--white);
    padding: 80px 20px;
    text-align: center;
    margin-bottom: 3em;
}

.about-hero h1 {
    font-size: 3em;
    margin-bottom: 0.5em;
    color: var(--white);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.about-section {
    margin-bottom: 50px;
}

.about-section h2 {
    color: var(--primary-green);
    font-size: 2.2em;
    margin-bottom: 20px;
    border-left: 5px solid var(--accent-green);
    padding-left: 20px;
}

.about-section p {
    font-size: 1.1em;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 1.5em;
}

.timeline {
    position: relative;
    padding: 40px 0;
}

.timeline-item {
    margin-bottom: 40px;
    padding-left: 60px;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    width: 20px;
    height: 20px;
    background-color: var(--accent-green);
    border-radius: 50%;
    border: 4px solid var(--white);
    box-shadow: 0 0 0 2px var(--secondary-green);
}

.timeline-year {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--secondary-green);
    margin-bottom: 10px;
}

/* ==========================================================================
   按钮样式
   ========================================================================== */
button,
.button,
input[type="submit"] {
    background-color: var(--secondary-green);
    border-color: var(--secondary-green);
    color: var(--white);
    transition: all 0.3s ease;
}

button:hover,
.button:hover,
input[type="submit"]:hover {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
    transform: translateY(-2px);
}

/* ==========================================================================
   页脚样式
   ========================================================================== */
.site-footer {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--secondary-green) 100%);
    color: rgba(255, 255, 255, 0.9);
    padding: 40px 0 20px;
}

.site-footer h1,
.site-footer h2,
.site-footer h3 {
    color: var(--white);
}

.site-footer a {
    color: rgba(255, 255, 255, 0.9);
}

.site-footer a:hover {
    color: var(--accent-green);
}

/* ==========================================================================
   响应式设计
   ========================================================================== */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.2em;
    }

    .hero-content p.hero-subtitle {
        font-size: 1.2em;
    }

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

    .about-hero h1 {
        font-size: 2em;
    }

    .about-section h2 {
        font-size: 1.8em;
    }
}

/* ==========================================================================
   产品展示增强
   ========================================================================== */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.woocommerce ul.products li.product:hover,
.woocommerce-page ul.products li.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(74, 124, 44, 0.2);
    border-color: var(--light-green);
}

/* ==========================================================================
   联系我们页面样式
   ========================================================================== */
.contact-hero {
    background: linear-gradient(135deg, var(--secondary-green) 0%, var(--primary-green) 100%);
    color: var(--white);
    padding: 80px 20px;
    text-align: center;
    margin-bottom: 0;
}

.contact-hero h1 {
    font-size: 3em;
    margin-bottom: 0.5em;
    color: var(--white);
}

.contact-content-wrapper {
    padding: 60px 20px;
    background-color: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

/* 左侧联系信息区域 */
.contact-info-section {
    padding-right: 20px;
}

.contact-intro h2 {
    color: var(--primary-green);
    font-size: 2em;
    margin-bottom: 1em;
}

.contact-intro p {
    font-size: 1.1em;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 2em;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-card {
    background: var(--light-bg);
    padding: 30px;
    border-radius: 12px;
    border-left: 4px solid var(--light-green);
    transition: all 0.3s ease;
}

.contact-card:hover {
    border-left-color: var(--accent-green);
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(74, 124, 44, 0.1);
}

.contact-icon {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.contact-card h3 {
    color: var(--primary-green);
    font-size: 1.3em;
    margin-bottom: 10px;
}

.contact-card p {
    color: var(--text-dark);
    margin-bottom: 5px;
    line-height: 1.6;
}

.contact-card a {
    color: var(--secondary-green);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-card a:hover {
    color: var(--accent-green);
}

.contact-note {
    font-size: 0.9em;
    color: var(--text-light);
    margin-top: 10px;
}

.social-links {
    margin-top: 15px;
}

.social-link {
    display: inline-block;
    margin-right: 15px;
    padding: 8px 15px;
    background-color: var(--secondary-green);
    color: var(--white);
    border-radius: 20px;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--primary-green);
    transform: translateY(-2px);
}

/* 右侧表单区域 */
.contact-form-section {
    padding-left: 20px;
}

.contact-form-wrapper {
    background: var(--light-bg);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.contact-form-wrapper h2 {
    color: var(--primary-green);
    font-size: 2em;
    margin-bottom: 0.5em;
}

.form-intro {
    color: var(--text-light);
    margin-bottom: 2em;
    font-size: 1.05em;
}

/* Contact Form 7 样式优化 */
.contact-form-wrapper .wpcf7-form {
    margin: 0;
}

.contact-form-wrapper .wpcf7-form p {
    margin-bottom: 20px;
}

.contact-form-wrapper input[type="text"],
.contact-form-wrapper input[type="email"],
.contact-form-wrapper input[type="tel"],
.contact-form-wrapper textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s ease;
    background-color: var(--white);
}

.contact-form-wrapper input[type="text"]:focus,
.contact-form-wrapper input[type="email"]:focus,
.contact-form-wrapper input[type="tel"]:focus,
.contact-form-wrapper textarea:focus {
    border-color: var(--light-green);
    outline: none;
}

.contact-form-wrapper textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form-wrapper input[type="submit"] {
    width: 100%;
    padding: 15px;
    background-color: var(--secondary-green);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-form-wrapper input[type="submit"]:hover {
    background-color: var(--primary-green);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 80, 22, 0.3);
}

/* Contact Form 7 响应消息样式 */
.wpcf7-response-output {
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0 0 0;
}

.wpcf7-validation-errors {
    border-color: #f44336;
    background-color: #ffebee;
    color: #c62828;
}

.wpcf7-mail-sent-ok {
    border-color: var(--accent-green);
    background-color: #f1f8e9;
    color: var(--primary-green);
}

/* FAQ快速链接区域 */
.contact-faq-section {
    padding: 60px 20px;
    background-color: var(--light-bg);
}

.contact-faq-section h2 {
    color: var(--primary-green);
    font-size: 2.5em;
    margin-bottom: 0.5em;
}

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

.faq-card {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.faq-card:hover {
    border-color: var(--light-green);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(74, 124, 44, 0.15);
}

.faq-card h3 {
    color: var(--primary-green);
    font-size: 1.3em;
    margin-bottom: 15px;
}

.faq-card p {
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.6;
}

.faq-link {
    color: var(--secondary-green);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.faq-link:hover {
    color: var(--accent-green);
}

/* 额外信息区域 */
.contact-additional-info {
    padding: 60px 20px;
    background-color: var(--white);
}

.info-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.info-box {
    background: var(--light-bg);
    padding: 35px;
    border-radius: 12px;
    border-top: 4px solid var(--accent-green);
}

.info-box h3 {
    color: var(--primary-green);
    font-size: 1.5em;
    margin-bottom: 20px;
}

.info-box ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.info-box ul li {
    padding: 8px 0;
    color: var(--text-dark);
    line-height: 1.6;
}

.info-box p {
    color: var(--text-dark);
    line-height: 1.7;
    margin-bottom: 10px;
}

.info-note {
    font-size: 0.9em;
    color: var(--text-light);
    margin-top: 15px;
    font-style: italic;
}

/* 响应式设计 - 联系页面 */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-info-section,
    .contact-form-section {
        padding: 0;
    }

    .contact-hero h1 {
        font-size: 2em;
    }

    .contact-form-wrapper {
        padding: 30px 20px;
    }

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

    .info-boxes {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   实用工具类
   ========================================================================== */
.text-center {
    text-align: center;
}

.mb-1 { margin-bottom: 1em; }
.mb-2 { margin-bottom: 2em; }
.mb-3 { margin-bottom: 3em; }

.mt-1 { margin-top: 1em; }
.mt-2 { margin-top: 2em; }
.mt-3 { margin-top: 3em; }
