/*
Theme Name: Pure Pals Lab
Theme URI: https://purepalslab.com
Author: Pure Pals Lab
Author URI: https://purepalslab.com
Description: Custom WordPress theme for Pure Pals Lab dog supplements.
Version: 1.0
License: GPL-2.0-or-later
Text Domain: purepalslab
*/

:root {
  --primary: #1A5276;
  --primary-light: #2980B9;
  --accent: #3498DB;
  --accent-hover: #2E86C1;
  --light-bg: #f4f8fb;
  --white: #ffffff;
  --text: #1e2b37;
  --gray: #5a6c7a;
  --star: #f5a623;
  --border-light: #e0e8f0;
  --footer-bg: #0d2b3e;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Poppins', sans-serif; background: var(--white); color: var(--text); line-height: 1.6; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* 促销条 */
.promo-bar { background: var(--primary); color: white; text-align: center; padding: 10px 20px; font-size: 0.9rem; font-weight: 500; letter-spacing: 0.5px; }
.promo-bar span { color: #7ec8e3; font-weight: 700; }

/* 导航栏 */
.navbar { background: white; box-shadow: 0 2px 15px rgba(0,0,0,0.04); position: sticky; top: 0; z-index: 100; }
.navbar .container { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.logo { font-size: 1.8rem; font-weight: 700; color: var(--primary); text-decoration: none; display: flex; align-items: center; gap: 8px; }
.logo i { color: var(--accent); font-size: 2rem; }
.nav-links { display: flex; list-style: none; gap: 2rem; align-items: center; }
.nav-links a { text-decoration: none; color: var(--text); font-weight: 500; cursor: pointer; transition: color 0.2s; font-size: 0.95rem; }
.nav-links a:hover { color: var(--accent); }
.nav-icons { display: flex; gap: 1.2rem; font-size: 1.2rem; color: var(--primary); cursor: pointer; align-items: center; }
.cart-count { background: var(--accent); color: white; border-radius: 50%; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: 700; margin-left: -8px; margin-top: -8px; }
.menu-toggle { display: none; background: none; border: none; font-size: 1.8rem; color: var(--primary); cursor: pointer; }

/* 页面容器 */
.page { display: none; padding: 40px 0; min-height: 70vh; }
.page.active { display: block; }

/* 英雄区 */
.hero { background: linear-gradient(160deg, #eaf2f8 0%, #f7fafd 40%, #e8f0f6 100%); padding: 60px 0 50px; }
.hero .container { display: flex; align-items: center; flex-wrap: wrap; gap: 2.5rem; }
.hero-text { flex: 1 1 420px; }
.hero-text h1 { font-size: 2.9rem; font-weight: 700; color: var(--primary); line-height: 1.15; margin-bottom: 1.2rem; }
.hero-text h1 span { color: var(--accent); position: relative; }
.hero-text h1 span::after { content: ''; position: absolute; bottom: 2px; left: 0; width: 100%; height: 4px; background: #b8d8f0; border-radius: 2px; z-index: -1; }
.hero-text p { font-size: 1.1rem; color: var(--gray); margin-bottom: 2rem; max-width: 480px; }
.btn { display: inline-block; background: var(--accent); color: white; padding: 14px 32px; border-radius: 40px; font-weight: 600; text-decoration: none; border: none; cursor: pointer; transition: all 0.3s; box-shadow: 0 8px 22px rgba(52,152,219,0.3); font-size: 1rem; }
.btn:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(52,152,219,0.4); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); box-shadow: none; margin-left: 12px; }
.btn-outline:hover { background: var(--primary); color: white; }
.hero-image { flex: 1 1 380px; text-align: center; }
.hero-image img { max-width: 100%; border-radius: 30px; box-shadow: 20px 20px 0 #d0dde8; }

/* 信任条 */
.trust-strip { background: var(--primary); color: white; padding: 20px 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 2.5rem; font-weight: 600; font-size: 0.95rem; text-align: center; }
.trust-strip span { display: flex; align-items: center; gap: 8px; }
.trust-strip i { color: #7ec8e3; font-size: 1.1rem; }

/* 板块标题 */
.section-title { text-align: center; margin: 3.5rem 0 2.5rem; }
.section-title h2 { font-size: 2.2rem; font-weight: 700; color: var(--primary); margin-bottom: 0.5rem; }
.section-title p { color: var(--gray); font-size: 1.05rem; }

/* 产品卡片 */
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.8rem; margin: 10px 0 30px; }
.product-card { background: white; border-radius: 18px; padding: 1.8rem 1.5rem; text-align: center; box-shadow: 0 8px 24px rgba(0,0,0,0.04); transition: all 0.3s; border: 1px solid var(--border-light); display: flex; flex-direction: column; align-items: center; }
.product-card:hover { transform: translateY(-6px); box-shadow: 0 18px 36px rgba(26,82,118,0.1); border-color: #b8d8f0; }
.product-img { width: 100px; height: 100px; background: #eaf2f8; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2.6rem; color: var(--accent); margin-bottom: 1.2rem; overflow: hidden; }
.product-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.product-card h3 { font-size: 1.25rem; color: var(--primary); margin-bottom: 0.4rem; font-weight: 600; }
.product-card .tagline { font-size: 0.85rem; color: var(--gray); margin-bottom: 0.6rem; }
.stars { color: var(--star); font-size: 0.9rem; margin: 0.4rem 0; letter-spacing: 1px; }
.stars span { color: var(--gray); font-size: 0.8rem; margin-left: 4px; }
.price { font-weight: 700; font-size: 1.5rem; color: var(--primary); margin: 0.8rem 0; }
.price small { font-size: 0.8rem; color: #999; font-weight: 400; text-decoration: line-through; margin-left: 6px; }
.product-card .btn { padding: 10px 26px; font-size: 0.9rem; width: 100%; }

/* 优势区 */
.benefits-row { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: center; text-align: center; margin: 1rem 0 3rem; }
.benefit-item { flex: 1 1 220px; max-width: 260px; }
.benefit-item i { font-size: 2.5rem; color: var(--accent); margin-bottom: 0.8rem; }
.benefit-item h4 { font-size: 1.15rem; font-weight: 600; color: var(--primary); margin-bottom: 0.4rem; }
.benefit-item p { font-size: 0.9rem; color: var(--gray); }

/* 评价区 */
.testimonials-section { background: var(--light-bg); padding: 50px 0 60px; margin-top: 2rem; }
.testimonial-grid { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: center; margin-top: 2rem; }
.testimonial-card { background: white; border-radius: 20px; padding: 2rem 1.8rem; flex: 1 1 300px; max-width: 360px; box-shadow: 0 8px 24px rgba(0,0,0,0.04); position: relative; border: 1px solid var(--border-light); }
.testimonial-card .quote-icon { color: #c8dae8; font-size: 2.5rem; position: absolute; top: 12px; left: 20px; }
.testimonial-card p { font-style: italic; color: #3a4a56; margin: 1rem 0 1.2rem; line-height: 1.7; }
.testimonial-card .author { display: flex; align-items: center; gap: 10px; }
.author-avatar { width: 44px; height: 44px; border-radius: 50%; background: #d0dde8; display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--primary); }
.author-info strong { display: block; color: var(--primary); font-size: 0.9rem; }
.author-info span { font-size: 0.8rem; color: #999; }
.verified { color: var(--accent); font-size: 0.75rem; }
.verified i { margin-right: 3px; }

/* 博客卡片 */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; margin: 2rem 0; }
.blog-card { background: white; border-radius: 16px; overflow: hidden; box-shadow: 0 6px 20px rgba(0,0,0,0.04); cursor: pointer; transition: 0.2s; border: 1px solid var(--border-light); }
.blog-card:hover { box-shadow: 0 14px 30px rgba(26,82,118,0.1); transform: translateY(-3px); }
.blog-img { height: 170px; background: #eaf2f8; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.blog-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-content { padding: 1.3rem 1.2rem; }
.blog-content h3 { font-size: 1.15rem; color: var(--primary); margin-bottom: 0.5rem; }
.blog-content p { color: var(--gray); font-size: 0.9rem; }
.blog-content .read-more { color: var(--accent); font-weight: 600; font-size: 0.85rem; margin-top: 0.6rem; display: inline-block; }

/* 关于 & FAQ */
.about-flex { display: flex; flex-wrap: wrap; gap: 2.5rem; align-items: center; margin: 2rem 0; }
.about-text { flex: 1 1 400px; }
.about-text h2 { font-size: 2rem; color: var(--primary); margin-bottom: 1rem; }
.about-text p { margin-bottom: 1rem; color: var(--gray); }
.about-image { flex: 1 1 400px; text-align: center; }
.about-image img { border-radius: 20px; max-width: 100%; }
.cert-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 15px; }
.cert-badges span { background: #eaf2f8; padding: 7px 18px; border-radius: 20px; font-size: 0.85rem; font-weight: 600; color: var(--primary); }
.faq-item { border-bottom: 1px solid var(--border-light); padding: 1.2rem 0; }
.faq-question { font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; color: var(--primary); font-size: 1.05rem; }
.faq-question i { transition: transform 0.3s; color: var(--accent); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; color: var(--gray); }
.faq-answer.open { max-height: 200px; margin-top: 0.6rem; }

/* 订阅 */
.newsletter { background: var(--primary); color: white; padding: 50px 20px; text-align: center; border-radius: 20px; margin: 3rem auto; max-width: 900px; }
.newsletter h3 { font-size: 1.8rem; margin-bottom: 0.8rem; }
.newsletter p { margin-bottom: 1.5rem; opacity: 0.85; }
.newsletter-form { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.newsletter-form input { padding: 14px 20px; border-radius: 40px; border: none; width: 300px; max-width: 90%; font-family: inherit; font-size: 0.95rem; }

/* 页脚 */
footer { background: var(--footer-bg); color: #c4cdd6; padding: 50px 0 20px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 2rem; margin-bottom: 2rem; }
.footer-col h4 { color: white; margin-bottom: 1rem; font-size: 1rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.5rem; font-size: 0.9rem; }
.footer-col ul li a { color: #b0bec5; text-decoration: none; cursor: pointer; }
.footer-col ul li a:hover { color: #7ec8e3; }
.social i { font-size: 1.5rem; margin-right: 15px; color: #b0bec5; cursor: pointer; }
.social i:hover { color: #7ec8e3; }
.copyright { text-align: center; font-size: 0.8rem; color: #8a979f; margin-top: 2rem; }
.copyright .disclaimer { margin-top: 8px; font-size: 0.7rem; color: #77858e; }

@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 70px; left: 0; width: 100%; background: white; padding: 1.5rem; box-shadow: 0 5px 15px rgba(0,0,0,0.1); z-index: 99; }
  .nav-links.open { display: flex; }
  .menu-toggle { display: block; }
  .hero-text h1 { font-size: 2.1rem; }
  .hero { padding: 40px 0; }
  .btn-outline { margin-left: 0; margin-top: 10px; }
  .trust-strip { gap: 1.5rem; font-size: 0.85rem; }
}