/*
Theme Name: Ping An A Fu
Theme URI: https://afu.pethelper.cn
Description: Custom theme for Ping An A Fu - 23 Years of Saving Strays
Author: Pethelper
Author URI: https://afu.pethelper.cn
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pinganafu
*/

:root {
    --primary: #E07B39;
    --primary-dark: #C46A2F;
    --secondary: #2C5F4D;
    --warm-bg: #FFF8F3;
    --text-dark: #2D3748;
    --text-light: #718096;
    --white: #FFFFFF;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.12);
    --apple-bg: #F5F5F7;
    --apple-card: #FFFFFF;
    --apple-text: #1D1D1F;
    --apple-text-secondary: #86868B;
    --apple-blue: #0071E3;
    --apple-blue-hover: #0077ED;
    --apple-gray: #F5F5F7;
    --apple-border: rgba(0,0,0,0.08);
    --hero-bg: linear-gradient(180deg, #FAFAFA 0%, #F5F5F7 100%);
    --video-bg: linear-gradient(180deg, #1C1C1E 0%, #000000 100%);
    --animals-bg: #F5F5F7;
    --feed-bg: #FFFFFF;
    --adoption-bg: #FAFAFA;
    --donate-bg: linear-gradient(180deg, #1D1D1F 0%, #000000 100%);
    --hero-text: #1D1D1F;
    --hero-text-secondary: #86868B;
    --video-text: #FFFFFF;
    --video-text-secondary: #86868B;
    --animals-text: #1D1D1F;
    --animals-text-secondary: #86868B;
    --feed-text: #1D1D1F;
    --feed-text-secondary: #86868B;
    --adoption-text: #1D1D1F;
    --adoption-text-secondary: #86868B;
    --donate-text: #FFFFFF;
    --donate-text-secondary: #86868B;
}

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

html, body {
    min-height: 100%;
    background: var(--apple-bg);
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', 'Noto Sans SC', sans-serif;
    color: var(--apple-text);
    line-height: 1.6;
}

section {
    width: 100%;
    position: relative;
}

/* Navigation */
nav.site-nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 1px 0 rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--apple-text);
}

.logo i { color: var(--primary); }

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--apple-text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
    font-weight: 500;
}

.nav-links a:hover { color: var(--apple-text); }

.lang-switcher {
    display: flex;
    gap: 0.25rem;
    background: var(--apple-gray);
    border-radius: 8px;
    padding: 0.15rem;
}

.lang-btn {
    padding: 0.35rem 0.75rem;
    border: none;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    background: transparent;
    color: var(--apple-text-secondary);
    transition: all 0.2s;
    font-weight: 500;
}

.lang-btn.active {
    background: white;
    color: var(--apple-text);
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.donate-btn {
    background: var(--primary);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s;
}

.donate-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* Hero Section */
.hero {
    padding: 8rem 2.5rem 5rem;
    background: var(--hero-bg);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 700;
    color: var(--hero-text);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--hero-text-secondary);
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.hero-stats {
    display: flex;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--hero-text-secondary);
    margin-top: 0.25rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary);
    color: white;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: var(--apple-text);
    padding: 0.875rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid var(--apple-border);
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
}

.btn-secondary:hover {
    background: white;
    border-color: var(--apple-text-secondary);
}

/* Image Carousel */
.image-carousel {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 500px;
    box-shadow: var(--shadow-hover);
}

.carousel-container {
    position: relative;
    height: 100%;
    width: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    pointer-events: none;
}

.carousel-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.carousel-image {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    border-radius: 20px;
    position: relative;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.3) 100%);
    border-radius: 20px;
}

.carousel-icon {
    font-size: 10rem;
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.carousel-caption {
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    background: rgba(224,123,57,0.9);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    box-shadow: var(--shadow);
    margin-bottom: 50px;
    z-index: 5;
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 10;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s;
}

.carousel-dot.active {
    background: var(--primary);
    transform: scale(1.2);
}

.carousel-dot:hover {
    background: var(--primary-dark);
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--primary);
    box-shadow: var(--shadow);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.carousel-nav:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev { left: 15px; }
.carousel-next { right: 15px; }

/* Video Section */
.video-section {
    padding: 6rem 2.5rem;
    background: var(--video-bg);
    color: var(--video-text);
}

.video-container {
    max-width: 1200px;
    margin: 0 auto;
}

.video-section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 0.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.video-section .subtitle {
    text-align: center;
    color: var(--video-text-secondary);
    margin-bottom: 2.5rem;
    font-size: 1.125rem;
}

.story-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.story-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50px;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.95rem;
    font-weight: 500;
}

.story-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.story-tab:hover:not(.active) {
    background: rgba(255,255,255,0.15);
}

.story-content { display: none; }
.story-content.active { display: block; }

.video-layout {
    display: flex;
    gap: 1.5rem;
}

.video-sidebar {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100px;
}

.video-selector {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.75rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.video-selector.active {
    background: rgba(224,123,57,0.2);
    border-color: var(--primary);
}

.video-selector:hover:not(.active) {
    background: rgba(255,255,255,0.1);
}

.video-thumb {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.video-label {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
    text-align: center;
}

.video-main { flex: 1; }

.video-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #000;
    border-radius: 20px;
    overflow: hidden;
}

.video-stats-bar {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 1rem 0;
    margin-top: 0.5rem;
}

.video-stat-item {
    color: var(--video-text-secondary);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.video-stat-divider {
    width: 1px;
    height: 20px;
    background: rgba(255,255,255,0.2);
}

.video-like-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50px;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.video-like-btn:hover { background: rgba(255,255,255,0.15); }

.video-like-btn.liked {
    background: rgba(224,123,57,0.2);
    border-color: var(--primary);
    color: var(--primary);
}

.video-fallback { text-align: center; margin-top: 1rem; }

/* Timeline */
.timeline-pagination {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.timeline-page-btn {
    padding: 0.625rem 1.5rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50px;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
    font-weight: 500;
}

.timeline-page-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.timeline-page { display: none; }
.timeline-page.active { display: block; }

.timeline-container {
    background: rgba(255,255,255,0.05);
    border-radius: 20px;
    padding: 2rem;
    max-height: 600px;
    overflow-y: auto;
}

.timeline-container::-webkit-scrollbar { width: 6px; }
.timeline-container::-webkit-scrollbar-track { background: transparent; }
.timeline-container::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 3px;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.timeline-item:last-child { border-bottom: none; }

.timeline-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    flex-shrink: 0;
    margin-top: 0.5rem;
}

.timeline-year {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    min-width: 70px;
}

.timeline-text h4 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.timeline-text p {
    color: var(--video-text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--apple-text-secondary);
}

/* Animals Section */
.animals {
    padding: 6rem 2.5rem;
    background: var(--animals-bg);
}

.animals .container,
.feed .container,
.adoption .container,
.donate .container {
    max-width: 1200px;
    margin: 0 auto;
}

.animals-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.animal-card {
    background: var(--apple-card);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.animal-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.animal-image {
    height: 250px;
    position: relative;
    overflow: hidden;
}

.animal-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.3) 100%);
}

.animal-card-stats {
    position: absolute;
    bottom: 10px;
    left: 10px;
    display: flex;
    gap: 0.75rem;
    z-index: 2;
}

.animal-card-stats span {
    background: rgba(0,0,0,0.5);
    color: white;
    padding: 0.25rem 0.625rem;
    border-radius: 20px;
    font-size: 0.8rem;
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.share-buttons {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 2;
}

.animal-card:hover .share-buttons { opacity: 1; }

.share-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: transform 0.2s;
}

.share-btn:hover { transform: scale(1.1); }
.share-btn.facebook { background: #1877F2; }
.share-btn.twitter { background: #1DA1F2; }
.share-btn.youtube { background: #FF0000; }

.animal-info {
    padding: 1.25rem;
}

.animal-info h3 {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.animal-info p {
    color: var(--apple-text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.animal-meta {
    display: flex;
    gap: 0.75rem;
}

.animal-tag {
    background: var(--apple-gray);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--apple-text-secondary);
}

.animal-gender {
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.animal-gender.male { color: #007AFF; }
.animal-gender.female { color: #FF2D55; }

.more-container {
    text-align: center;
    margin-top: 2.5rem;
}

.btn-more {
    background: transparent;
    border: 1px solid var(--apple-border);
    padding: 0.875rem 2rem;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--apple-text);
    transition: all 0.3s;
}

.btn-more:hover {
    background: white;
    border-color: var(--apple-text-secondary);
}

/* Feed Section */
.feed {
    padding: 6rem 2.5rem;
    background: var(--feed-bg);
}

.base-nav {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.base-tab {
    padding: 0.625rem 1.5rem;
    background: var(--apple-gray);
    border: 1px solid var(--apple-border);
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--apple-text-secondary);
    transition: all 0.3s;
}

.base-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.base-tab:hover:not(.active) {
    background: white;
    border-color: var(--apple-text-secondary);
}

.feed-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.feed-demo {
    background: var(--apple-card);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.feed-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: #1D1D1F;
    color: white;
}

.feed-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.live-indicator {
    width: 8px;
    height: 8px;
    background: #FF3B30;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.feed-viewers {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.feed-video {
    height: 200px;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feed-video-content {
    text-align: center;
    color: rgba(255,255,255,0.5);
}

.feed-video-content i {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    display: block;
}

.feed-controls {
    display: flex;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
}

.feed-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s;
}

.feed-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.feed-info {
    padding: 0.75rem 1.25rem;
    background: var(--apple-gray);
    font-size: 0.8rem;
    color: var(--apple-text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Adoption Section */
.adoption {
    padding: 6rem 2.5rem;
    background: var(--adoption-bg);
}

.adoption-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.adoption-card {
    background: var(--apple-card);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.adoption-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.adoption-image {
    height: 220px;
    position: relative;
    overflow: hidden;
}

.adoption-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.2) 100%);
}

.adoption-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #34C759;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.adoption-info {
    padding: 1.25rem;
}

.adoption-info h3 {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.adoption-info p {
    color: var(--apple-text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.adoption-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--apple-text-secondary);
}

.adoption-meta span {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.btn-adopt {
    width: 100%;
    padding: 0.75rem;
    background: var(--secondary);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-adopt:hover {
    background: #234E3F;
    transform: translateY(-1px);
}

/* Donate Section */
.donate {
    padding: 6rem 2.5rem;
    background: var(--donate-bg);
    color: var(--donate-text);
}

.donate .section-header h2 { color: white; }
.donate .section-header p { color: var(--donate-text-secondary); }

.donation-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.donation-card {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
}

.donation-card:hover {
    background: rgba(255,255,255,0.12);
    transform: translateY(-4px);
}

.donation-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.donation-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.donation-card p {
    color: var(--donate-text-secondary);
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
}

.donation-amount {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

/* Footer */
footer.site-footer {
    background: var(--apple-text);
    color: white;
    padding: 5rem 2rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-section h4 {
    margin-bottom: 1.25rem;
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.footer-section p,
.footer-section a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.9375rem;
    line-height: 1.6;
}

.footer-section a:hover { color: white; }

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--apple-blue);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
    font-size: 0.875rem;
}

/* Animal Modal */
.animal-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(10px);
    z-index: 2000;
    padding: 2rem;
    overflow-y: auto;
    align-items: center;
    justify-content: center;
}

.animal-modal.active {
    display: flex;
}

.animal-modal-content {
    background: white;
    border-radius: 24px;
    max-width: 900px;
    width: 100%;
    position: relative;
    overflow: hidden;
    max-height: 90vh;
    overflow-y: auto;
}

.animal-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0,0,0,0.1);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    z-index: 10;
    transition: all 0.3s;
}

.animal-modal-close:hover { background: rgba(0,0,0,0.2); }

.animal-modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2rem;
}

.animal-modal-main-image {
    height: 300px;
    border-radius: 16px;
    overflow: hidden;
}

.animal-modal-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.animal-modal-thumbnails {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.modal-thumb {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.modal-thumb.active { border-color: var(--primary); }
.modal-thumb img { width: 100%; height: 100%; object-fit: cover; }

.animal-modal-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.animal-modal-stats {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.modal-stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--apple-text-secondary);
    font-size: 0.95rem;
}

.modal-like-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--apple-gray);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.modal-like-btn:hover { background: #ECECEC; }
.modal-like-btn.liked { background: #FFE5E5; color: #FF2D55; }

.animal-modal-story h3,
.animal-modal-video h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.animal-modal-story p {
    color: var(--apple-text-secondary);
    line-height: 1.7;
    font-size: 0.95rem;
}

.modal-video-wrapper {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.animal-modal-share h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.modal-share-buttons {
    display: flex;
    gap: 0.75rem;
}

.modal-share-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s;
}

.modal-share-btn:hover { opacity: 0.9; transform: translateY(-1px); }
.modal-share-btn.facebook { background: #1877F2; }
.modal-share-btn.twitter { background: #1DA1F2; }
.modal-share-btn.wechat { background: #07C160; }

/* Desktop Browser Optimization */
@media (min-width: 1920px) {
    .hero-container,
    .video-container,
    .animals .container,
    .feed .container,
    .adoption .container,
    .donate .container {
        max-width: 1600px;
    }
    .hero-content h1 { font-size: 4.5rem; }
    .section-header h2 { font-size: 3rem; }
    .animals-grid, .adoption-grid { grid-template-columns: repeat(5, 1fr); }
    .feed-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 2560px) {
    .hero-container,
    .video-container,
    .animals .container,
    .feed .container,
    .adoption .container,
    .donate .container {
        max-width: 2000px;
    }
    .hero-content h1 { font-size: 5rem; }
    .section-header h2 { font-size: 3.5rem; }
    .animals-grid, .adoption-grid { grid-template-columns: repeat(6, 1fr); }
    .feed-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 3440px) {
    .hero-container,
    .video-container,
    .animals .container,
    .feed .container,
    .adoption .container,
    .donate .container {
        max-width: 2400px;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .animals-grid, .adoption-grid { grid-template-columns: repeat(2, 1fr); }
    .donation-options { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .hero-container { grid-template-columns: 1fr; text-align: center; }
    .hero-content h1 { font-size: 2.5rem; }
    .hero-stats { justify-content: center; }
    .hero-cta { justify-content: center; }
    .nav-links { display: none; }
    .animals-grid, .adoption-grid, .feed-grid { grid-template-columns: 1fr; }
    .donation-options { grid-template-columns: 1fr; }
    .share-buttons { opacity: 1; }

    .story-tabs { flex-direction: column; align-items: center; }
    .story-tab { width: 100%; max-width: 300px; justify-content: center; }

    .timeline-pagination { flex-direction: column; align-items: center; }
    .timeline-page-btn { width: 100%; max-width: 200px; }
    .timeline-container { padding: 1.5rem; max-height: 500px; }
    .timeline-item { flex-direction: column; gap: 0.5rem; }
    .timeline-dot { display: none; }
    .timeline-year { align-self: flex-start; }

    .video-layout { flex-direction: column; }
    .video-sidebar {
        flex-direction: row;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    .video-selector { flex: 1; min-width: 70px; max-width: 100px; padding: 0.5rem; }
    .video-thumb { width: 30px; height: 30px; margin-bottom: 0.25rem; }
    .video-label { font-size: 0.75rem; }
    .video-stats-bar { gap: 1rem; padding: 0.75rem; }
    .video-stat-item { font-size: 0.85rem; }
    .video-like-btn { padding: 0.4rem 1rem; font-size: 0.85rem; }

    .animal-modal.active { padding: 1rem; }
    .animal-modal-body {
        grid-template-columns: 1fr;
        padding: 1.5rem;
        gap: 1.5rem;
    }
    .animal-modal-main-image { height: 200px; }
    .modal-thumb { width: 60px; height: 60px; }
    .animal-modal-close { top: 10px; right: 10px; width: 35px; height: 35px; font-size: 1rem; }
    .animal-modal-header h2 { font-size: 1.5rem; }
    .animal-modal-stats { flex-wrap: wrap; gap: 1rem; }
    .modal-share-buttons { justify-content: center; }
    .modal-share-btn { padding: 0.5rem 1rem; font-size: 0.85rem; }

    .image-carousel { height: 350px; }
    .carousel-icon { font-size: 6rem; }
    .carousel-caption { font-size: 1rem; padding: 0.5rem 1rem; }
    .carousel-nav { width: 40px; height: 40px; font-size: 1rem; }
}

/* Language Toggle */
body.lang-cn .lang-cn { display: inline; }
.lang-cn { display: none; }
