/* ==========================================
   宠物英雄故事专题 - 完整独立样式 V2
   主色调：FF6600 | 背景色：FFFFFF / F5F5F5
   优化：增加阴影层次、圆角统一、交互反馈
   ========================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "PingFang SC", "Microsoft YaHei", "华文楷书", "KaiTi", "Noto Serif SC", "Songti SC", "SimHei", "Georgia", "Times New Roman", serif;
    background: #F5F5F5;
    color: #333333;
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (max-width: 768px) {
    .container { padding: 0 16px; }
}

/* ========== 头部导航（主站风格） ========== */
.header {
    background: #FFFFFF;
    box-shadow: 0 1px 0 0 #EEEEEE, 0 2px 8px rgba(0,0,0,0.03);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 24px;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: 20px;
    font-weight: 600;
    color: #FF6600;
}

.logo-icon { font-size: 28px; }

.nav { display: flex; gap: 36px; }
.nav a {
    text-decoration: none;
    color: #666666;
    font-weight: 500;
    transition: all 0.2s;
    position: relative;
    padding: 4px 0;
}
.nav a:hover { color: #FF6600; }
.nav a.active { 
    color: #FF6600;
    font-weight: 600;
}
.nav a.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #FF6600;
    border-radius: 2px;
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #FF6600;
    padding: 8px;
}

.mobile-nav {
    display: none;
    flex-direction: column;
    background: #FFFFFF;
    padding: 16px 24px;
    border-top: 1px solid #EEEEEE;
}
.mobile-nav a { 
    padding: 14px 0; 
    text-decoration: none; 
    color: #666666; 
    border-bottom: 1px solid #EEEEEE;
    font-size: 15px;
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { color: #FF6600; }
.mobile-nav.active { display: flex; }

@media (max-width: 768px) {
    .nav { display: none; }
    .mobile-nav-toggle { display: block; }
}

/* ========== 按钮通用样式 ========== */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 48px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 15px;
}
.btn-primary {
    background: #FF6600;
    color: white;
    box-shadow: 0 4px 12px rgba(255,102,0,0.25);
}
.btn-primary:hover {
    background: #E55C00;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255,102,0,0.3);
}
.btn-outline {
    border: 1.5px solid #FF6600;
    color: #FF6600;
    background: transparent;
}
.btn-outline:hover { 
    background: #FF6600; 
    color: white; 
    transform: translateY(-2px);
}
.btn-secondary {
    background: #FFFFFF;
    color: #FF6600;
    border: 1px solid #EEEEEE;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}
.btn-secondary:hover {
    border-color: #FF6600;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

/* ========== 主视觉 Hero V2 ========== */
.hero {
    background: linear-gradient(135deg, #FF6600 0%, #FF8533 50%, #FFA366 100%);
    padding: 90px 0;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '🐕 🐈 🐾';
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-size: 80px;
    opacity: 0.08;
    pointer-events: none;
}
.hero-icon { font-size: 72px; margin-bottom: 24px; animation: float 3s ease-in-out infinite; }
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.hero h1 {
    font-size: clamp(36px, 8vw, 56px);
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.hero-sub {
    font-size: clamp(18px, 4vw, 24px);
    opacity: 0.95;
    margin-bottom: 12px;
}
.hero-desc { font-size: 16px; opacity: 0.85; margin-bottom: 32px; }

/* ========== 分类区域 V2 ========== */
.section-title { text-align: center; margin-bottom: 56px; }
.section-title h2 { 
    font-size: 32px; 
    color: #FF6600; 
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
}
.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #FF6600;
    border-radius: 3px;
}
.section-title p { color: #999999; font-size: 15px; }
.categories { padding: 80px 0; background: #FFFFFF; }

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}
.category-card {
    background: #FFFFFF;
    border-radius: 24px;
    padding: 36px 24px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #F0F0F0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}
.category-card:hover { 
    transform: translateY(-8px); 
    box-shadow: 0 20px 35px -12px rgba(255,102,0,0.15); 
    border-color: #FF6600;
}
.category-icon { font-size: 56px; margin-bottom: 20px; transition: transform 0.3s; }
.category-card:hover .category-icon { transform: scale(1.05); }
.category-card h3 { font-size: 22px; margin-bottom: 12px; color: #333333; font-weight: 600; }
.category-card p { color: #999999; font-size: 14px; margin-bottom: 18px; line-height: 1.5; }
.category-count {
    display: inline-block;
    padding: 5px 14px;
    background: #FFF5EE;
    border-radius: 30px;
    font-size: 12px;
    color: #FF6600;
    font-weight: 500;
}

/* ========== 精选推荐 V2 ========== */
.featured { padding: 80px 0; background: #F8F8F8; }
.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
    gap: 30px;
}
.featured-card {
    background: #FFFFFF;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
}
.featured-card:hover { 
    transform: translateY(-6px); 
    box-shadow: 0 20px 30px -12px rgba(0,0,0,0.12);
}
.featured-img { 
    height: 210px; 
    background-size: cover; 
    background-position: center;
    transition: transform 0.5s ease;
}
.featured-card:hover .featured-img { transform: scale(1.02); }
.featured-content { padding: 24px 24px 28px; }
.featured-tag {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 500;
    margin-bottom: 14px;
    background: #FFF5EE;
    color: #FF6600;
}
.featured-content h3 { 
    font-size: 20px; 
    margin-bottom: 12px; 
    color: #333333;
    font-weight: 600;
    line-height: 1.4;
}
.featured-content p { 
    color: #888888; 
    margin-bottom: 18px; 
    font-size: 14px;
    line-height: 1.6;
}
.btn-link { 
    color: #FF6600; 
    text-decoration: none; 
    font-weight: 500;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s;
}
.btn-link:hover { gap: 10px; text-decoration: none; }

/* ========== 纪念墙 V2 ========== */
.memorial-wall {
    background: linear-gradient(135deg, #2C2C2C 0%, #3A3A3A 100%);
    padding: 80px 0;
    text-align: center;
    color: white;
}
.memorial-icon { font-size: 56px; margin-bottom: 20px; opacity: 0.9; }
.memorial-wall h2 { font-size: 32px; margin-bottom: 16px; font-weight: 600; }
.memorial-quote {
    font-style: italic;
    font-size: 18px;
    margin: 32px auto;
    max-width: 600px;
    padding: 20px 28px;
    border-top: 1px solid rgba(255,255,255,0.15);
    border-bottom: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.03);
    border-radius: 60px;
}

/* ========== 专题页 Hero V2 ========== */
.theme-hero { 
    padding: 70px 0; 
    text-align: center; 
    color: white;
    position: relative;
    overflow: hidden;
}
.loyal-hero, .heroic-hero, .hero-hero, .warm-hero { 
    background: linear-gradient(135deg, #FF6600 0%, #FF8833 100%);
}
.theme-icon { font-size: 64px; margin-bottom: 24px; filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1)); }
.theme-hero h1 { font-size: clamp(32px, 6vw, 48px); margin-bottom: 16px; font-weight: 700; }
.theme-subtitle { font-size: 18px; opacity: 0.95; margin-bottom: 12px; }
.theme-desc { font-size: 15px; opacity: 0.85; max-width: 580px; margin: 0 auto; }

/* ========== 故事列表 V2 ========== */
.story-list { padding: 70px 0; background: #F5F5F5; }
.story-grid { display: flex; flex-direction: column; gap: 35px; }
.story-card {
    display: flex;
    gap: 30px;
    background: #FFFFFF;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
}
.story-card:hover { 
    transform: translateY(-4px); 
    box-shadow: 0 16px 28px -10px rgba(0,0,0,0.12);
}
.story-img { flex-shrink: 0; width: 280px; height: 230px; overflow: hidden; }
.story-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.story-card:hover .story-img img { transform: scale(1.05); }
.story-content { flex: 1; padding: 32px 32px 32px 0; }
.story-location { 
    font-size: 13px; 
    color: #FF6600; 
    margin-bottom: 12px;
    display: inline-block;
    background: #FFF5EE;
    padding: 4px 12px;
    border-radius: 20px;
}
.story-content h2 { 
    font-size: 24px; 
    color: #333333; 
    margin-bottom: 16px;
    font-weight: 600;
    transition: color 0.2s;
}
.story-card:hover .story-content h2 { color: #FF6600; }
.story-content p { color: #777777; line-height: 1.75; margin-bottom: 20px; font-size: 15px; }
.story-meta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.story-tag {
    display: inline-block;
    padding: 5px 14px;
    background: #F5F5F5;
    border-radius: 30px;
    font-size: 12px;
    color: #888888;
}
.story-date { font-size: 13px; color: #AAAAAA; }

@media (max-width: 768px) {
    .story-card { flex-direction: column; gap: 0; }
    .story-img { width: 100%; height: 200px; }
    .story-content { padding: 24px; }
    .story-content h2 { font-size: 20px; }
}

/* ========== 页脚 V2 ========== */
.footer {
    background: #2A2A2A;
    color: #AAAAAA;
    padding: 56px 0 28px;
}
.footer-content { text-align: center; }
.footer-logo { margin-bottom: 28px; }
.footer-logo span { font-size: 20px; font-weight: 600; color: #FF6600; }
.footer-logo p { font-size: 13px; margin-top: 8px; opacity: 0.7; }
.footer-links {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}
.footer-links a { color: #AAAAAA; text-decoration: none; font-size: 14px; transition: color 0.2s; }
.footer-links a:hover { color: #FF6600; }
.footer-copyright { font-size: 12px; border-top: 1px solid #444444; padding-top: 28px; opacity: 0.6; }

/* ========== 分页样式 V2 ========== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin: 50px 0 20px;
    padding: 20px;
}

.pagination a {
    display: inline-block;
    padding: 10px 24px;
    background: #FFFFFF;
    border-radius: 40px;
    text-decoration: none;
    color: #FF6600;
    transition: all 0.2s;
    border: 1px solid #EEEEEE;
    font-size: 14px;
    font-weight: 500;
}

.pagination a:hover {
    background: #FF6600;
    color: white;
    border-color: #FF6600;
}

.page-current {
    padding: 10px 20px;
    background: #FF6600;
    color: white;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 500;
}

/* ========== 加载动画 ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.category-card, .featured-card, .story-card {
    animation: fadeInUp 0.5s ease forwards;
}
/* 电脑端隐藏 Emoji，显示文字 */
@media (min-width: 769px) {
    .tribute-icon-mobile {
        display: none;
    }
    .tribute-icon-pc {
        display: inline-block;
    }
}

/* 手机端隐藏文字，显示 Emoji */
@media (max-width: 768px) {
    .tribute-icon-mobile {
        display: inline-block;
    }
    .tribute-icon-pc {
        display: none;
    }
}