
/* 全局变量与重置 */
:root {
    --primary-color: #ff9f43; /* 温暖橙 */
    --secondary-color: #54a0ff; /* 天空蓝 */
    --accent-color: #ee5253; /* 爱心红 */
    --text-dark: #2d3436;
    --text-light: #636e72;
    --bg-white: #ffffff;
    --bg-light: #f7f1e3;
    --font-main: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

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

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-white);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.logo span {
    color: var(--text-dark);
}

.navbar nav a {
    margin-left: 2rem;
    font-weight: 500;
    color: var(--text-dark);
}

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

.btn-donate {
    padding: 0.5rem 1.2rem;
    background: var(--accent-color);
    color: white;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.btn-donate:hover {
    background: #e04040;
    transform: translateY(-2px);
}

/* 英雄区域 */
.hero {
    height: 100vh;
    background: url('https://picsum.photos/1920/1080?grayscale') no-repeat center center/cover;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

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

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-primary {
    padding: 1rem 2.5rem;
    background: var(--primary-color);
    color: white;
    border-radius: 50px;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(255, 159, 67, 0.4);
}

.btn-primary:hover {
    background: #e68a35;
    transform: translateY(-3px);
}

.btn-secondary {
    padding: 1rem 2.5rem;
    background: transparent;
    border: 2px solid white;
    color: white;
    border-radius: 50px;
    font-weight: bold;
}

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

.scroll-hint {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    font-size: 0.9rem;
    opacity: 0.8;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateX(-50%) translateY(0);}
    40% {transform: translateX(-50%) translateY(-10px);}
    60% {transform: translateX(-50%) translateY(-5px);}
}

/* 通用部分样式 */
.section-container {
    padding: 5rem 5%;
}

.bg-light {
    background-color: var(--bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.section-header p {
    color: var(--text-light);
}

/* 宠物网格 */
.pet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.pet-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pet-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.pet-img {
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.tag {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    color: white;
}

.tag.urgent { background: var(--accent-color); }
.tag.new { background: var(--secondary-color); }
.tag.special { background: #a29bfe; }
.tag.cute { background: #fd79a8; }

.pet-info {
    padding: 1.5rem;
}

.pet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.pet-header h3 {
    font-size: 1.3rem;
}

.gender {
    font-size: 0.9rem;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
}

.gender.male { background: #e3f2fd; color: #2196f3; }
.gender.female { background: #fce4ec; color: #e91e63; }

.breed {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}

.desc {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.pet-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
    padding-top: 1rem;
}

.location {
    font-size: 0.85rem;
    color: #999;
}

.btn-adopt {
    padding: 0.5rem 1.2rem;
    background: var(--primary-color);
    color: white;
    border-radius: 20px;
    font-size: 0.9rem;
}

.btn-adopt:hover {
    background: #e68a35;
}

/* 成功故事 */
.story-list {
    max-width: 900px;
    margin: 0 auto;
}

.story-item {
    display: flex;
    background: white;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.03);
}

.story-img {
    width: 200px;
    flex-shrink: 0;
}

.story-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.story-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.meta {
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 0.8rem;
}

.story-content p {
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
}

/* 志愿者网格 */
.volunteer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.vol-card {
    text-align: center;
    padding: 2rem;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    transition: all 0.3s;
}

.vol-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 20px rgba(255, 159, 67, 0.1);
}

.vol-card .icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.vol-card h3 {
    margin-bottom: 0.8rem;
    color: var(--text-dark);
}

.vol-card p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* 页脚 */
footer {
    background: #2d3436;
    color: white;
    padding: 4rem 5% 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-col h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.footer-col h4 {
    margin-bottom: 1rem;
    color: #dfe6e9;
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-col ul li a {
    color: #b2bec3;
    font-size: 0.9rem;
}

.footer-col ul li a:hover {
    color: white;
}

.social-links a {
    margin-right: 1rem;
    color: #b2bec3;
}

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

.copyright {
    text-align: center;
    border-top: 1px solid #444;
    padding-top: 2rem;
    color: #636e72;
    font-size: 0.8rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.2rem; }
    .hero-actions { flex-direction: column; }
    .navbar nav { display: none; }
    .story-item { flex-direction: column; }
    .story-img { width: 100%; height: 200px; }
}
