/* 全局重置与基础设置 */
@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@400;600;700;800&family=JetBrains+Mono&family=Noto+Sans+SC:wght@400;700;900&display=swap');

:root {
    --primary-color: #6E9450; /* 抹茶绿 */
    --primary-hover: #5B7A42;
    --text-main: #4A4A4A;
    --text-muted: #827e78;
    --bg-main: #FAF3EA; /* 奶油白 */
    --bg-card: #FFFFFF;
    --border-color: #E8E2D9;
    --font-family: 'Baloo 2', 'Noto Sans SC', sans-serif;
    --font-code: 'JetBrains Mono', monospace;
    --paw-pink: #E8C3C4; /* 肉垫粉 */
}

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

body {
    font-family: var(--font-family);
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

h1, h2, h3 {
    font-weight: 900;
}

/* 布局与容器 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

/* 导航栏 */
header {
    background-color: var(--bg-main);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 2px dashed var(--paw-pink);
}

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

.logo {
    font-size: 26px;
    font-weight: 900;
    color: var(--primary-color);
}

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

.nav-menu a {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-cta {
    background-color: var(--primary-color);
    color: #fff;
    padding: 10px 24px;
    border-radius: 25px;
    font-weight: 700;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s;
}

.nav-cta:hover {
    background-color: var(--primary-hover);
    transform: scale(1.05);
}

/* 主视觉区 (Hero) */
.hero {
    text-align: center;
    padding: 80px 20px 60px;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 30px auto;
}

.hero-buttons {
    display: flex; 
    gap: 20px; 
    justify-content: center; 
    flex-wrap: wrap;
    margin-top: 30px;
}

.btn-large {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    padding: 18px 48px;
    border-radius: 50px;
    box-shadow: 0 8px 25px rgba(110, 148, 80, 0.25);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s;
}

.btn-large:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 12px 30px rgba(110, 148, 80, 0.35);
}
.btn-large:active {
    transform: scale(0.95);
    transition: transform 0.1s;
}

.btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: var(--primary-color);
    font-size: 20px;
    font-weight: 700;
    padding: 16px 46px;
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s, color 0.3s;
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-5px) scale(1.03);
}
.btn-secondary:active {
    transform: scale(0.95);
    transition: transform 0.1s;
}

/* 统计数据区 */
.hero-stats {
    margin-top: 40px; 
    display: flex; 
    justify-content: center; 
    gap: 50px; 
    color: var(--text-muted); 
    font-family: var(--font-code);
}
.hero-stats div {
    font-size: 14px;
}
.hero-stats span {
    font-size: 36px; 
    font-weight: 900; 
    color: var(--primary-color);
}

/* 通用区块设置 */
.section {
    padding: 80px 20px;
}

.section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 50px;
}

/* 卡片网格布局 */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

/* 高端宠物品牌风卡片 */
.card, .pricing-card, .review-card {
    background: var(--bg-card);
    padding: 40px 30px;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(110, 148, 80, 0.06);
    text-align: center;
    border: 2px solid transparent;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s, border 0.3s;
    cursor: pointer;
}

/* 像猫伸懒腰般的按压回弹 */
.card:hover, .pricing-card:hover, .review-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(110, 148, 80, 0.12);
    border-color: rgba(110, 148, 80, 0.15);
}

.card:active, .pricing-card:active, .review-card:active {
    transform: scale(0.96);
    transition: transform 0.15s;
}

.card-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.card h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.card p {
    color: var(--text-muted);
}

/* 价格表 */
.pricing-card.popular {
    border: 2px solid var(--primary-color);
    transform: scale(1.05);
}
.pricing-card.popular:hover { transform: translateY(-8px) scale(1.07); }
.pricing-card.popular:active { transform: scale(1.02); transition: transform 0.15s; }

.badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--paw-pink);
    color: var(--text-main);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 900;
}

.price {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary-color);
    margin: 20px 0;
    font-family: var(--font-code);
}

.price span {
    font-size: 16px;
    color: var(--text-muted);
    font-weight: normal;
    font-family: var(--font-family);
}

.pricing-features {
    list-style: none;
    margin: 30px 0;
    text-align: left;
}

.pricing-features li {
    margin-bottom: 15px;
    color: var(--text-muted);
}

.pricing-features li::before {
    content: '🐾';
    color: var(--paw-pink);
    font-size: 14px;
    margin-right: 10px;
}

.btn-block {
    display: block;
    width: 100%;
    background-color: var(--primary-color);
    color: #fff;
    padding: 15px 0;
    border-radius: 20px;
    font-size: 18px;
    font-weight: 700;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s;
}

.btn-block:hover {
    background-color: var(--primary-hover);
    transform: scale(1.03);
}
.btn-block:active {
    transform: scale(0.97);
    transition: transform 0.1s;
}

/* 用户评价 */
.stars {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 20px;
}

.review-text {
    font-style: italic;
    margin-bottom: 20px;
    color: var(--text-main);
}

.reviewer {
    font-weight: 700;
    color: var(--text-muted);
}

/* FAQ 手风琴效果 */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

details {
    background: var(--bg-card);
    margin-bottom: 15px;
    border-radius: 20px;
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    overflow: hidden;
}

summary {
    padding: 20px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    content: '🧶';
    font-size: 20px;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

details[open] summary::after {
    transform: rotate(180deg) scale(1.2);
}

.faq-content {
    padding: 0 20px 20px 20px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* 动效：滚动的毛线球 */
.yarn-ball {
    position: fixed;
    bottom: 30px;
    left: -50px;
    font-size: 40px;
    animation: rollYarn 18s linear infinite;
    z-index: 999;
    pointer-events: none;
}

@keyframes rollYarn {
    0% { transform: translateX(-50px) rotate(0deg); }
    100% { transform: translateX(110vw) rotate(1080deg); }
}

/* 动效：脚印浮现 */
.paw-print {
    position: absolute;
    color: var(--paw-pink);
    font-size: 24px;
    opacity: 0;
    pointer-events: none;
    z-index: 0;
    animation: pawFade 3s forwards;
}

@keyframes pawFade {
    0% { opacity: 0; transform: scale(0.5); }
    20% { opacity: 0.8; transform: scale(1.1); }
    30% { transform: scale(1); }
    80% { opacity: 0.8; }
    100% { opacity: 0; }
}

/* 页脚 */
footer {
    background-color: var(--bg-main);
    color: var(--text-main);
    padding: 60px 20px 30px;
    text-align: center;
    border-top: 2px dashed var(--paw-pink);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-main);
    font-weight: 700;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.copyright {
    color: var(--text-muted);
    font-size: 14px;
    font-family: var(--font-code);
}

/* 内页通用样式 */
.page-header {
    background: var(--primary-color);
    color: #fff;
    padding: 60px 20px;
    text-align: center;
}

.page-header h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.page-content {
    background: var(--bg-card);
    max-width: 800px;
    margin: -30px auto 60px;
    padding: 50px;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(110, 148, 80, 0.08);
}

.page-content h2 { margin-top: 30px; margin-bottom: 15px; color: var(--text-main); }
.page-content p { margin-bottom: 20px; color: var(--text-muted); }
.page-content ul { margin-left: 20px; margin-bottom: 20px; color: var(--text-muted); }

/* 响应式适配 @media */
@media (max-width: 992px) {
    .pricing-card.popular { transform: none; }
    .pricing-card.popular:hover { transform: translateY(-8px) scale(1.02); }
}

@media (max-width: 768px) {
    .nav-container { flex-wrap: wrap; height: auto; padding: 15px 0; gap: 15px; }
    .nav-menu { width: 100%; justify-content: center; gap: 15px; order: 3; font-size: 14px; margin-top: 10px; }
    .hero { padding: 40px 20px; }
    .hero h1 { font-size: 32px; }
    .hero-stats { flex-direction: column; gap: 20px; }
    .grid-3, .grid-2 { grid-template-columns: 1fr; gap: 20px; }
    
    .btn-large, .btn-secondary, .btn-block, .nav-cta {
        padding-top: 15px;
        padding-bottom: 15px;
        min-height: 48px;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .section { padding: 50px 20px; }
    .nav-cta { padding: 8px 16px; }
    .page-content { padding: 30px 20px; margin-top: 0; border-radius: 0; }
    .footer-links { flex-direction: column; gap: 15px; }
}

/* --- 辅助功能与 A11Y --- */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px 16px;
    z-index: 1000;
    transition: top 0.3s;
    font-weight: bold;
}
.skip-link:focus {
    top: 0;
}
*:focus-visible {
    outline: 2px dashed var(--primary-color);
    outline-offset: 2px;
}
[id], .section {
    scroll-margin-top: 100px;
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
