/* style.css - 胖胖小窝公共样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(145deg, #f9f3e6 0%, #ffe6d5 100%);
    min-height: 100vh;
    font-family: 'Segoe UI', 'Roboto', 'Noto Sans', system-ui, -apple-system, 'Helvetica Neue', sans-serif;
    padding: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

body::before {
    content: "🐾🐾🐾";
    font-size: 140px;
    position: fixed;
    bottom: 10px;
    right: 10px;
    opacity: 0.08;
    pointer-events: none;
    white-space: pre;
    letter-spacing: 20px;
    z-index: 0;
}

body::after {
    content: "🐱";
    font-size: 180px;
    position: fixed;
    top: 0;
    left: 0;
    opacity: 0.06;
    pointer-events: none;
    z-index: 0;
}

/* 导航栏 */
.navbar {
    width: 100%;
    max-width: 900px;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 60px;
    padding: 12px 24px;
    margin-bottom: 24px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 10;
}

.navbar a {
    text-decoration: none;
    color: #7a5a3e;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 40px;
    transition: all 0.2s;
}

.navbar a:hover, .navbar a.active {
    background: #ffb882;
    color: #4a2a1a;
    transform: translateY(-2px);
}

/* 卡片容器 */
.card {
    max-width: 900px;
    width: 100%;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 64px 48px 72px 48px;
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 245, 225, 0.8) inset;
    overflow: hidden;
    position: relative;
    z-index: 2;
    margin-bottom: 30px;
}

/* 头部 */
.cat-header {
    background: #ffb882;
    padding: 24px 28px 20px 28px;
    text-align: center;
    border-bottom: 3px solid #f09c54;
}

.cat-emoji {
    font-size: 68px;
    filter: drop-shadow(4px 6px 0 #c06c2e);
    margin-bottom: 8px;
}

.cat-name {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #4a2a1a;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fff0e0;
    padding: 6px 24px;
    border-radius: 60px;
    box-shadow: inset 0 1px 2px #ffe0c0, 0 6px 12px rgba(0,0,0,0.05);
}

.cat-name span {
    font-size: 1.8rem;
}

/* 内容区 */
.content {
    padding: 32px 32px 24px;
}

/* 文章排版 */
.article h2 {
    color: #4a2a1a;
    margin-bottom: 16px;
    font-size: 1.6rem;
    border-left: 6px solid #f7b05e;
    padding-left: 14px;
}

.article h3 {
    color: #7a5a3e;
    margin: 24px 0 12px;
    font-size: 1.2rem;
}

.article p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #4e3b2a;
    margin-bottom: 16px;
}

.article ul, .article ol {
    margin-left: 24px;
    margin-bottom: 16px;
    color: #4e3b2a;
    line-height: 1.8;
}

.article li {
    margin-bottom: 6px;
}

.article img {
    max-width: 100%;
    border-radius: 20px;
    margin: 16px 0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* 文章列表（首页用） */
.article-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.article-card {
    background: #fef5e8;
    border-radius: 32px;
    padding: 20px;
    border-left: 6px solid #f7b05e;
    transition: all 0.2s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    background: #fffaf2;
}

.article-card h3 {
    color: #4a2a1a;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.article-card p {
    font-size: 0.9rem;
    color: #7a5a3e;
    line-height: 1.5;
}

/* 信息面板 */
.info-panel {
    background: #e7dccf;
    border-radius: 48px;
    padding: 20px 28px;
    margin-bottom: 32px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    box-shadow: inset 0 1px 3px #fff6ea, 0 8px 18px rgba(0,0,0,0.05);
}

.info-item {
    flex: 1;
    min-width: 140px;
    background: #fffaf2;
    border-radius: 36px;
    padding: 16px 12px;
    text-align: center;
}

.info-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    color: #b47c44;
    margin-bottom: 8px;
}

.info-value {
    font-size: 1rem;
    font-weight: 600;
    color: #3b2c1e;
    word-break: break-word;
}

/* 统计面板 */
.stats-section {
    background: #f4ede4;
    border-radius: 48px;
    padding: 20px 28px;
    margin-bottom: 28px;
}

.stats-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 1.2rem;
    color: #4a2a1a;
    margin-bottom: 16px;
}

.stats-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.stats-total {
    flex: 1;
    min-width: 120px;
    background: #fffaf2;
    border-radius: 36px;
    padding: 12px 16px;
    text-align: center;
}

.stats-total .label {
    font-size: 0.75rem;
    color: #b47c44;
    letter-spacing: 1px;
}

.stats-total .number {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2d1f12;
}

.stats-countries {
    flex: 2;
    min-width: 200px;
    background: #fffaf2;
    border-radius: 36px;
    padding: 12px 16px;
}

.stats-countries .label {
    font-size: 0.75rem;
    color: #b47c44;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.country-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    font-size: 0.9rem;
    color: #3b2c1e;
}

/* 页脚 */
.footer-note {
    font-size: 0.8rem;
    text-align: center;
    color: #b59273;
    padding: 20px 10px;
    border-top: 1px dashed #f0dcc8;
    margin-top: 12px;
    width: 100%;
    max-width: 900px;
}

/* 响应式 */
@media (max-width: 700px) {
    .article-list { grid-template-columns: 1fr; }
    .cat-name { font-size: 1.5rem; }
    .info-panel { flex-direction: column; gap: 12px; }
    .content { padding: 20px; }
    .stats-grid { flex-direction: column; }
}