/*
Theme Name: POD Astra Child
Theme URI: https://你的域名.com
Description: Astra子主题，用于POD独立站定制开发
Author: Your Name
Author URI: https://你的域名.com
Template: astra
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: astra-child
Tags: e-commerce, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ============================================
   品牌色变量
   ============================================ */
:root {
    --pod-primary: #2C3E50;      /* 深蓝 - 主色 */
    --pod-secondary: #E67E22;    /* 橙色 - 强调色 */
    --pod-accent: #27AE60;       /* 绿色 - 成功/促销 */
    --pod-bg: #FDF6E3;           /* 米白 - 背景 */
    --pod-text: #2C3E50;         /* 文字色 */
    --pod-text-light: #7F8C8D;   /* 浅色文字 */
    --pod-border: #E0D5C0;       /* 边框色 */
    --pod-radius: 8px;            /* 圆角 */
    --pod-shadow: 0 2px 8px rgba(44, 62, 80, 0.1);
}

/* ============================================
   全局样式
   ============================================ */
body {
    background-color: var(--pod-bg);
    color: var(--pod-text);
    font-family: 'Georgia', serif;
}

/* 链接 */
a {
    color: var(--pod-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover {
    color: var(--pod-secondary);
}

/* 按钮 */
.button,
button,
input[type="submit"],
.wp-block-button__link {
    background-color: var(--pod-primary);
    color: #fff;
    border: none;
    border-radius: var(--pod-radius);
    padding: 12px 28px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}
.button:hover,
button:hover,
input[type="submit"]:hover,
.wp-block-button__link:hover {
    background-color: var(--pod-secondary);
    transform: translateY(-2px);
    box-shadow: var(--pod-shadow);
}

/* ============================================
   头部导航
   ============================================ */
.site-header {
    background-color: #fff;
    box-shadow: var(--pod-shadow);
}

.main-header-menu .menu-link {
    color: var(--pod-text);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
}
.main-header-menu .menu-link:hover {
    color: var(--pod-secondary);
}

/* ============================================
   Hero区域（首页大图）
   ============================================ */
.pod-hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
    background-color: var(--pod-primary);
}
.pod-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.pod-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(44, 62, 80, 0.75) 0%, rgba(44, 62, 80, 0.55) 50%, rgba(44, 62, 80, 0.8) 100%);
    z-index: 1;
}
.pod-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 40px 20px;
}
.pod-hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}
.pod-hero p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.9;
}
.pod-hero .button {
    background-color: var(--pod-secondary);
    font-size: 18px;
    padding: 16px 40px;
}

/* ============================================
   商品网格
   ============================================ */
.pod-products-section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}
.pod-section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--pod-primary);
}
.pod-section-subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--pod-text-light);
    margin-bottom: 40px;
}
.pod-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
}
.pod-product-card {
    background: #fff;
    border-radius: var(--pod-radius);
    overflow: hidden;
    box-shadow: var(--pod-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.pod-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(44, 62, 80, 0.15);
}
/* 分类卡片图片hover放大 */
.pod-category-card .pod-category-img {
    overflow: hidden;
}
.pod-category-card .pod-category-img img {
    transition: transform 0.5s ease;
}
.pod-category-card:hover .pod-category-img img {
    transform: scale(1.08);
}

/* 如何定制3步流程 */
.pod-howto-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}
.pod-howto-step {
    background: #fff;
    border-radius: var(--pod-radius);
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--pod-shadow);
    position: relative;
    transition: transform 0.3s ease;
}
.pod-howto-step:hover {
    transform: translateY(-5px);
}
.pod-howto-num {
    width: 56px;
    height: 56px;
    line-height: 56px;
    border-radius: 50%;
    background: var(--pod-secondary);
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    margin: 0 auto 20px;
}
.pod-howto-step h3 {
    color: var(--pod-primary);
    font-size: 20px;
    margin-bottom: 12px;
}
.pod-howto-step p {
    color: var(--pod-text-light);
    font-size: 14px;
    line-height: 1.6;
}
.pod-product-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    background-color: var(--pod-bg);
}
.pod-product-info {
    padding: 20px;
}
.pod-product-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--pod-text);
    line-height: 1.4;
    min-height: 45px;
}
.pod-product-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--pod-secondary);
    margin-bottom: 12px;
}
.pod-product-button {
    width: 100%;
    text-align: center;
    display: block;
}

/* ============================================
   节日分类标签
   ============================================ */
.pod-holiday-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
}
.pod-holiday-tag {
    padding: 8px 20px;
    background: #fff;
    border: 2px solid var(--pod-border);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--pod-text);
    cursor: pointer;
    transition: all 0.3s ease;
}
.pod-holiday-tag:hover,
.pod-holiday-tag.active {
    background-color: var(--pod-primary);
    color: #fff;
    border-color: var(--pod-primary);
}

/* ============================================
   WooCommerce商品页优化
   ============================================ */
.woocommerce div.product .product_title {
    color: var(--pod-primary);
    font-size: 32px;
}
.woocommerce div.product p.price,
.woocommerce div.product span.price {
    color: var(--pod-secondary);
    font-size: 28px;
    font-weight: 700;
}
.woocommerce #respond input#submit.alt,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
    background-color: var(--pod-secondary);
    border-radius: var(--pod-radius);
    padding: 14px 32px;
    font-size: 16px;
}
.woocommerce #respond input#submit.alt:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover {
    background-color: var(--pod-primary);
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
    background-color: var(--pod-primary);
    color: #fff;
    padding: 50px 20px 20px;
}
.site-footer a {
    color: rgba(255, 255, 255, 0.8);
}
.site-footer a:hover {
    color: var(--pod-secondary);
}
.pod-footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 30px;
}
.pod-footer-col h4 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.pod-footer-col ul {
    list-style: none;
    padding: 0;
}
.pod-footer-col li {
    margin-bottom: 8px;
}
.pod-footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

/* ============================================
   保障说明栏（Footer政策条）
   ============================================ */
.pod-policy-bar {
    background: var(--pod-primary);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding: 24px 20px 30px;
    text-align: center;
}
.pod-policy-inner {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 18px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
}
.pod-policy-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 24px;
    font-size: 13px;
}
.pod-policy-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: underline;
}
.pod-policy-links a:hover {
    color: var(--pod-secondary);
}

/* 商品页印刷时效说明 */
.pod-ship-note {
    background: #faf8f3;
    border: 1px solid var(--pod-border);
    border-radius: var(--pod-radius);
    padding: 14px 16px;
    margin: 14px 0;
    display: grid;
    gap: 8px;
    font-size: 14px;
}
.pod-ship-note-item {
    display: flex;
    align-items: center;
    gap: 8px;
}
.pod-ship-icon {
    font-size: 16px;
}

/* 结算页印刷说明 */
.pod-checkout-note {
    background: #faf8f3;
    border: 1px solid var(--pod-border);
    border-left: 4px solid var(--pod-secondary);
    border-radius: var(--pod-radius);
    padding: 16px 18px;
    margin: 16px 0;
    font-size: 14px;
    line-height: 1.6;
}
.pod-checkout-note p {
    margin: 6px 0;
}

/* ============================================
   响应式
   ============================================ */
@media (max-width: 768px) {
    .pod-hero h1 {
        font-size: 32px;
    }
    .pod-hero p {
        font-size: 16px;
    }
    .pod-section-title {
        font-size: 28px;
    }
    .pod-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
    }
    .pod-product-image {
        height: 180px;
    }
    .pod-howto-steps {
        grid-template-columns: 1fr;
    }
    .pod-category-img {
        height: 180px !important;
    }
    .pod-products-section .pod-products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
