/* 爱宠领养 - 统一样式文件 */

/* CSS变量 */
:root {
    --primary: #07c160;
    --primary-dark: #05903c;
    --primary-light: #e8f5e9;
    --secondary: #ff9800;
    --secondary-dark: #f57c00;
    --bg: #f5f7fa;
    --bg-white: #ffffff;
    --text: #333333;
    --text-secondary: #666666;
    --text-muted: #999999;
    --border: #e8e8e8;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
    --shadow-hover: 4px 4px 4px 4px rgba(0,0,0,0.12);
    --radius: 12px;
    --radius-sm: 8px;
}

/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

img {
    max-width: 100%;
    display: block;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

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

ul {
    list-style: none;
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
.navbar {
    background: var(--bg-white);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.logo i {
    font-size: 28px;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-size: 15px;
    color: var(--text-secondary);
    transition: color 0.3s;
    padding: 8px 0;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    gap: 12px;
}

/* 按钮 */
.btn {
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    line-height: 1.4;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(126, 217, 87, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

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

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

.btn-block {
    width: 100%;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 16px;
}

.btn-xl {
    padding: 16px;
    font-size: 16px;
}

/* 主内容区 */
.main-content {
    padding-top: 90px;
}

.page {
    padding-bottom: 40px;
}

/* 页面标题 */
.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, #00bfa5 100%);
    padding: 40px 20px 60px;
    color: white;
    text-align: center;
    border-radius: 16px;
    margin-bottom: 20px;
}

.page-header h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
}

.page-header p {
    font-size: 16px;
    opacity: 0.9;
}

.page-header-danger {
    background: linear-gradient(135deg, #e53935 0%, #ff5722 100%);
}

/* 卡片 */
.card {
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all 0.3s;
    padding: 20px;
}

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

/* 标签 */
.tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
}

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

.tag-secondary {
    background: #fff3e0;
    color: var(--secondary);
}

.tag-success {
    background: #e8f5e9;
    color: #2e7d32;
}

.tag-warning {
    background: #fff3e0;
    color: #f57c00;
}

.tag-danger {
    background: #ffebee;
    color: #c62828;
}

.tag-default {
    background: #f5f5f5;
    color: #666;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background: white;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
    color: var(--text-secondary);
    white-space: nowrap;
}

.pagination a:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.pagination span.active {
    background: var(--primary);
    color: white;
}

.pagination .prev,
.pagination .next {
    padding: 10px 20px;
}

/* 统计数字 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 40px;
}

.stat-item {
    text-align: center;
    padding: 24px;
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.stat-icon i {
    font-size: 28px;
    color: var(--primary);
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
}
        /* 微信小程序弹窗 */
        .qr-modal {
            display: none;
            position: fixed;
            top: 0; left: 0;
            width: 100%; height: 100%;
            background: rgba(0, 0, 0, 0.6);
            z-index: 9999;
            justify-content: center;
            align-items: center;
            backdrop-filter: blur(4px);
        }
        .qr-modal.show { display: flex; }
        .qr-modal-content {
            background: white;
            border-radius: 20px;
            padding: 0;
            width: 380px;
            max-width: 90%;
            position: relative;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
        }
        .qr-modal-close {
            position: absolute;
            top: 15px; right: 15px;
            width: 32px; height: 32px;
            border: none;
            background: rgba(0, 0, 0, 0.1);
            border-radius: 50%;
            font-size: 20px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #666;
            z-index: 10;
        }
        .qr-modal-header {
            background: linear-gradient(135deg, var(--primary) 0%, #00bfa5 100%);
            color: white;
            padding: 30px 20px 25px;
            text-align: center;
        }
        .qr-modal-header i { font-size: 40px; margin-bottom: 10px; }
        .qr-modal-header h3 { font-size: 22px; font-weight: 600; margin: 0; }
        .qr-modal-body { padding: 30px 20px; text-align: center; }
        .qrcode-box {
            background: white;
            border-radius: 12px;
            padding: 15px;
            display: inline-block;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
            margin-bottom: 20px;
        }
        .qrcode-box img { width: 200px; height: 200px; display: block; }
        .qr-placeholder {
            width: 200px; height: 200px;
            background: linear-gradient(135deg, #f5f7fa 0%, #e4e8eb 100%);
            border-radius: 8px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            color: #999;
        }
        .qr-placeholder i { font-size: 60px; margin-bottom: 10px; }
        .qr-tip { color: #666; font-size: 14px; line-height: 1.6; }

        @media (max-width: 768px) {
            .nav-links { display: none; }
            .page-header { padding: 110px 20px 40px; }
            .page-header h1 { font-size: 28px; }
            .content-card { padding: 25px; }
            .steps { grid-template-columns: 1fr 1fr; }
            .step::after { display: none; }
            .guide-grid { grid-template-columns: 1fr; }
            .tips-grid { grid-template-columns: 1fr; }
            .category-btn { padding: 10px 18px; font-size: 13px; }
            .contact-buttons { flex-direction: column; }
        }
        @media (max-width: 480px) {
            .qr-modal-content { width: 95%; margin: 20px; }
            .qrcode-box img { width: 160px; height: 160px; }
        }
/* 底部 */
.footer {
    background: #1a1a2e;
    color: white;
    padding: 60px 0 30px;
    margin-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
}

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

.footer-desc {
    color: #999;
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

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

.footer-social a:hover {
    background: var(--primary);
}

.footer-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: white;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #999;
    font-size: 14px;
    transition: color 0.3s;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    text-align: center;
    color: #666;
    font-size: 14px;
}

.footer-link {
    color: var(--primary);
}

/* =============== 通用排版工具类 =============== */

/* 文字工具类 */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-primary { color: var(--primary); }
.text-danger { color: #c62828; }
.text-warning { color: #f57c00; }
.text-success { color: var(--primary); }

.font-bold { font-weight: 600; }
.font-700 { font-weight: 700; }

.fs-12 { font-size: 12px; }
.fs-13 { font-size: 13px; }
.fs-14 { font-size: 14px; }
.fs-15 { font-size: 15px; }
.fs-16 { font-size: 16px; }
.fs-18 { font-size: 18px; }
.fs-20 { font-size: 20px; }
.fs-24 { font-size: 24px; }
.fs-28 { font-size: 28px; }
.fs-36 { font-size: 36px; }

/* 间距工具类 */
.mt-0 { margin-top: 0 !important; }
.mt-4 { margin-top: 4px; }
.mt-5 { margin-top: 5px; }
.mt-8 { margin-top: 8px; }
.mt-10 { margin-top: 10px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mt-24 { margin-top: 24px; }
.mt-30 { margin-top: 30px; }
.mt-40 { margin-top: 40px; }

.mb-0 { margin-bottom: 0 !important; }
.mb-4 { margin-bottom: 4px; }
.mb-5 { margin-bottom: 5px; }
.mb-8 { margin-bottom: 8px; }
.mb-10 { margin-bottom: 10px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
.mb-24 { margin-bottom: 24px; }
.mb-30 { margin-bottom: 30px; }
.mb-40 { margin-bottom: 40px; }

.mr-4 { margin-right: 4px; }
.mr-5 { margin-right: 5px; }
.mr-8 { margin-right: 8px; }
.mr-10 { margin-right: 10px; }
.mr-12 { margin-right: 12px; }
.mr-16 { margin-right: 16px; }
.mr-20 { margin-right: 20px; }

.ml-4 { margin-left: 4px; }
.ml-5 { margin-left: 5px; }
.ml-8 { margin-left: 8px; }
.ml-10 { margin-left: 10px; }
.ml-12 { margin-left: 12px; }
.ml-16 { margin-left: 16px; }

.p-0 { padding: 0 !important; }
.p-12 { padding: 12px; }
.p-16 { padding: 16px; }
.p-20 { padding: 20px; }
.p-30 { padding: 30px; }

.py-12 { padding-top: 12px; padding-bottom: 12px; }
.py-16 { padding-top: 16px; padding-bottom: 16px; }
.py-20 { padding-top: 20px; padding-bottom: 20px; }
.py-30 { padding-top: 30px; padding-bottom: 30px; }

.px-16 { padding-left: 16px; padding-right: 16px; }
.px-20 { padding-left: 20px; padding-right: 20px; }

.gap-5 { gap: 5px; }
.gap-8 { gap: 8px; }
.gap-10 { gap: 10px; }
.gap-12 { gap: 12px; }
.gap-15 { gap: 15px; }
.gap-16 { gap: 16px; }
.gap-20 { gap: 20px; }
.gap-24 { gap: 24px; }
.gap-30 { gap: 30px; }

/* flex布局工具类 */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-start { justify-content: flex-start; }
.justify-end { justify-content: flex-end; }
.flex-center { display: flex; align-items: center; justify-content: center; }

/* 通用宽度/高度 */
.w-100 { width: 100%; }
.w-auto { width: auto; }
.h-auto { height: auto; }
.min-h-120 { min-height: 120px; }

/* 显示/隐藏 */
.block { display: block; }
.inline-block { display: inline-block; }
.hidden { display: none; }

/* 圆角 */
.rounded { border-radius: var(--radius); }
.rounded-sm { border-radius: var(--radius-sm); }
.rounded-full { border-radius: 50%; }

/* 阴影 */
.shadow { box-shadow: var(--shadow); }
.shadow-hover { box-shadow: var(--shadow-hover); }

/* 背景色 */
.bg-white { background: var(--bg-white); }
.bg-primary-light { background: var(--primary-light); }

/* 边框 */
.border-top {
    border-top: 1px solid var(--border);
    padding-top: 12px;
}

/* 圆形头像 */
.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-sm {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-md {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-lg {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-xl {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
}

/* 图标容器 */
.icon-circle {
    width: 40px;
    height: 40px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 18px;
    flex-shrink: 0;
}

.icon-circle-sm {
    width: 32px;
    height: 32px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 14px;
    flex-shrink: 0;
}

.icon-circle-lg {
    width: 56px;
    height: 56px;
    background: var(--primary-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 24px;
    flex-shrink: 0;
}

.icon-circle-xl {
    width: 60px;
    height: 60px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: var(--primary);
    font-size: 28px;
}

/* ============ Banner 轮播 ============ */
.banner-section {
    border-radius: 20px;
    margin-bottom: 0px;
    position: relative;
    overflow: hidden;
}

.banner-container {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    margin-bottom: 40px;
}

.banner-slider {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 20px;
}

.banner-wrapper {
    display: flex;
    transition: transform 0.5s ease;
    height: 300px;
}

.banner-item {
    min-width: 100%;
    flex-shrink: 0;
    display: block;
    position: relative;
}

.banner-item.active {
    opacity: 1;
    z-index: 1;
}

.banner-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.banner-default {
    width: 100%;
    height: 300px;
    border-radius: 20px;
    overflow: hidden;
}

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

.banner-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.banner-dot,
.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.banner-dot.active,
.dot.active {
    width: 24px;
    border-radius: 5px;
    background: white;
}

.banner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(0,0,0,0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 5;
}

.banner-container:hover .banner-arrow {
    opacity: 1;
}

.banner-arrow:hover {
    background: rgba(0,0,0,0.5);
}

.banner-arrow.prev {
    left: 20px;
}

.banner-arrow.next {
    right: 20px;
}

/* 公告滚动 */
.announcement-section {
    background: white;
    border-radius: 12px;
    padding: 12px 20px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.announcement-bar {
    background: linear-gradient(90deg, #fff3e0 0%, #ffe0b2 100%);
    padding: 12px 0;
    overflow: hidden;
}

.announcement-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.announcement-content i {
    color: var(--primary);
    font-size: 18px;
}

.announcement-label {
    background: var(--primary);
    color: white;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    flex-shrink: 0;
}

.announcement-scroll {
    flex: 1;
    height: 24px;
    overflow: hidden;
    position: relative;
}

.announcement-list {
    position: absolute;
    top: 0;
    left: 0;
    transition: top 0.5s ease;
}

.announcement-item {
    height: 24px;
    line-height: 24px;
    font-size: 14px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.announcement-text {
    color: var(--text);
}

.announcement-link {
    color: var(--primary);
    margin: 0 10px;
}

.announcement-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.no-announcement {
    color: var(--text-muted);
    font-size: 14px;
    flex: 1;
}

/* ============ 宠物卡片 ============ */
.pets-section {
    margin-bottom: 40px;
}

.pets-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.pet-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    width: 100%;
}

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

.pet-image-wrap {
    position: relative;
    height: 200px;
    width: 100%;
    overflow: hidden;
}

.pet-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gender-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    background: rgba(0,0,0,0.5);
    z-index: 2;
}

.gender-tag.male {
    background: rgba(78, 205, 196, 0.9);
}

.gender-tag.female {
    background: rgba(255, 107, 107, 0.9);
}

.pet-info {
    padding: 15px;
}

.pet-name {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.pet-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 8px;
}

.meta-item {
    font-size: 13px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
}

.pet-location {
    font-size: 13px;
    color: #999;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.pet-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 12px;
}

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

.adopt-status {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    color: white;
    background: var(--primary);
    display: inline-block;
}

.adopt-status.pending {
    background: #FF9800;
}

.adopt-status.adopted {
    background: #999;
}

/* ============ 社区动态 ============ */
.community-section {
    margin-bottom: 40px;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.post-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

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

.post-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.user-info {
    flex: 1;
    min-width: 0;
}

.user-name {
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    font-size: 14px;
}

.user-name .tag {
    font-size: 11px;
    padding: 2px 8px;
}

.post-time {
    font-size: 12px;
    color: #999;
}

.post-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.post-content {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 15px;
}

.post-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 15px;
}

.post-images img,
.post-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    max-height: 200px;
    height: auto;
}

.post-image-height {
    height: 80px;
}

.post-footer {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: #999;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.post-stats {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: #999;
}

.post-stats span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ============ 知识推荐 ============ */
.knowledge-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.knowledge-item {
    display: flex;
    gap: 15px;
    padding: 20px;
    border-radius: 12px;
    transition: all 0.3s;
    background: white;
    box-shadow: var(--shadow);
    align-items: flex-start;
}

.knowledge-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.knowledge-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 20px;
    flex-shrink: 0;
}

.knowledge-info {
    flex: 1;
    min-width: 0;
}

.knowledge-info h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.knowledge-info p {
    font-size: 13px;
    color: #999;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
}

.knowledge-meta {
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.knowledge-meta-time {
    color: #999;
    font-size: 12px;
}

/* ============ 文章详情页 ============ */
.article-detail {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.article-detail-header {
    margin-bottom: 30px;
}

.article-detail-category {
    display: inline-block;
    padding: 6px 16px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 20px;
    font-size: 14px;
    margin-bottom: 15px;
}

.article-detail-title {
    font-size: 32px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 20px;
}

.article-detail-meta {
    display: flex;
    gap: 20px;
    color: #999;
    font-size: 14px;
    flex-wrap: wrap;
}

.article-detail-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-detail-cover {
    margin-bottom: 30px;
}

.article-detail-cover img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 12px;
}

.article-detail-content {
    line-height: 2;
    font-size: 16px;
    color: #333;
}

.article-detail-summary {
    padding: 20px;
    background: var(--bg);
    border-radius: 8px;
    margin-bottom: 20px;
    color: #666;
}

.article-detail-body {
    line-height: 2;
}

.article-detail-tags {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}

.article-detail-tags-label {
    color: #999;
    font-size: 14px;
}

.article-detail-tag {
    padding: 6px 14px;
    background: var(--bg);
    border-radius: 20px;
    font-size: 13px;
    color: #666;
}

.article-detail-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--border);
}

.article-detail-actions .btn {
    flex: 1;
    padding: 14px;
}

.empty-state-lg {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.empty-state-lg .empty-image {
    width: 120px;
}

.empty-state-lg .empty-title {
    font-size: 24px;
}

.empty-state-lg .empty-desc {
    margin-bottom: 20px;
}

/* ============ 社区帖子详情 ============ */
.post-detail {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.post-detail-user {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border);
    align-items: flex-start;
}

.post-detail-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.post-detail-user-info {
    flex: 1;
    min-width: 0;
}

.post-detail-user-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
    flex-wrap: wrap;
}

.post-detail-username {
    font-weight: 600;
    font-size: 16px;
}

.post-detail-badge {
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    color: white;
}

.post-detail-badge-official {
    background: var(--primary);
}

.post-detail-badge-pinned {
    background: #ff9800;
}

.post-detail-badge-hot {
    background: #e53935;
}

.post-detail-badge-vip {
    background: linear-gradient(135deg, #ffd700, #ff8c00);
}

.post-detail-user-meta {
    display: flex;
    gap: 15px;
    color: #999;
    font-size: 13px;
}

.post-detail-user-meta span {
    display: flex;
    align-items: center;
    gap: 3px;
}

.post-detail-body {
    margin-top: 0;
}

.post-detail-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
}

.post-detail-category {
    display: inline-block;
    padding: 4px 12px;
    background: var(--bg);
    color: var(--primary);
    border-radius: 15px;
    font-size: 13px;
    margin-bottom: 15px;
}

.post-detail-content {
    line-height: 1.8;
    color: #333;
    margin-bottom: 20px;
}

.post-detail-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.post-detail-images img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
}

.post-detail-actions {
    display: flex;
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.post-detail-action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    background: var(--bg);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    color: #666;
    font-size: 14px;
    transition: all 0.3s;
}

.post-detail-action-btn:hover {
    background: var(--primary-light);
}

.post-detail-action-btn.active {
    background: var(--primary-light);
    color: var(--primary);
}

/* ============ 评论区 ============ */
.comments-section {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.comments-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

.comments-count {
    color: #999;
    font-weight: normal;
}

.comments-empty {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.comments-empty i {
    font-size: 48px;
    margin-bottom: 15px;
    display: block;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comment-item {
    display: flex;
    gap: 15px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.comment-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.comment-avatar-md {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.comment-body {
    flex: 1;
    min-width: 0;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.comment-username {
    font-weight: 600;
    font-size: 14px;
}

.comment-time {
    color: #999;
    font-size: 12px;
}

.comment-text {
    line-height: 1.6;
    color: #333;
    margin-bottom: 10px;
}

.comment-actions {
    display: flex;
    gap: 15px;
}

.comment-action-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0;
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 13px;
}

.comment-action-btn.active {
    color: var(--primary);
}

/* ============ 特色功能 ============ */
.features {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 30px;
}

.section-tag {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
    text-align: left;
}

.section-desc {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.section-more {
    font-size: 14px;
    color: var(--primary);
}

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

.feature-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s;
    border: 1px solid var(--border);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-light) 0%, #c8e6c9 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.feature-icon i {
    font-size: 36px;
    color: var(--primary);
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--text);
}

.feature-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============ 统计区域 ============ */
.stats {
    margin-top: 40px;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

/* ============ 关于我们 ============ */
.about {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image-main {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, var(--primary) 0%, #00bfa5 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 60px rgba(7, 193, 96, 0.3);
}

.about-image-main i {
    font-size: 150px;
    color: white;
    opacity: 0.9;
}

.about-image-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--secondary);
    color: white;
    padding: 20px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(255, 152, 0, 0.3);
}

.about-image-badge .number {
    font-size: 36px;
    font-weight: 700;
}

.about-image-badge .text {
    font-size: 14px;
    opacity: 0.9;
}

.about-content {
    padding-right: 20px;
}

.about-content .section-tag {
    background: rgba(7, 193, 96, 0.1);
}

.about-content .section-title {
    text-align: left;
    margin-bottom: 24px;
}

.about-text {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 30px;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.about-feature:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.about-feature-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.about-feature-icon i {
    font-size: 22px;
    color: var(--primary);
}

.about-feature-text h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.about-feature-text p {
    font-size: 13px;
    color: var(--text-muted);
}

.about-cta {
    display: flex;
    gap: 16px;
}

/* ============ 合作伙伴 ============ */
.partners-section {
    text-align: center;
    padding: 40px 0;
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.partners-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.partner-item {
    width: 120px;
    height: 60px;
    background: #f5f5f5;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
}

/* ============ 空状态 ============ */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.empty-state img {
    width: 80px;
    margin: 0 auto 20px;
}

.empty-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text);
}

.empty-desc {
    color: #999;
    font-size: 14px;
}

/* 搜索筛选区 */
.search-section {
    background: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.search-form {
    display: flex;
    gap: 10px;
}

/* 搜索框 */
.search-box {
    position: relative;
    margin-bottom: 20px;
}

.search-input {
    width: 90%;
    padding: 12px 45px 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    background: white;
}
@media (max-width: 768px) {
    .search-input {
        width: 67%;
    }
}
.search-input:focus {
    outline: none;
    border-color: var(--primary);
}

.search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
}
/* ============ 分类筛选 ============ */
.filter-section {
    background: white;
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-tab {
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    background: var(--primary-light);
    color: var(--primary);
    transition: all 0.3s;
    cursor: pointer;
    display: inline-block;
}

.filter-tab:hover,
.filter-tab.active {
    background: var(--primary);
    color: white;
}

/* ============ 分类导航（商城） ============ */
.category-nav {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.category-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    min-width: 100px;
    transition: all 0.3s;
    flex: 1;
}

.category-nav-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.category-nav-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    color: var(--primary);
    font-size: 24px;
}

.category-nav-text {
    font-size: 14px;
    color: var(--text);
}

/* ============ 商品卡片 ============ */
.products-section {
    margin-bottom: 40px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.product-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

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

.product-card-image-wrap {
    position: relative;
    height: 200px;
    width: 100%;
    overflow: hidden;
}

.product-card-image,
.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}

.product-card-info {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 8px;
}

.product-card-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.product-card-price {
    font-size: 20px;
    font-weight: 700;
    color: #e53935;
    margin-bottom: 5px;
}

.product-card-price del {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-muted);
    margin-left: 8px;
}

.product-card-sales {
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}

/* ============ 警告条幅 ============ */
.warning-banner {
    background: linear-gradient(90deg, #ffebee 0%, #ffcdd2 100%);
    padding: 12px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #c62828;
}

.warning-banner i {
    font-size: 18px;
}

/* ============ 黑名单表格 ============ */
.blacklist-table {
    width: 100%;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.blacklist-table table {
    width: 100%;
    border-collapse: collapse;
}

.blacklist-table th,
.blacklist-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.blacklist-table th {
    background: var(--primary-light);
    font-weight: 600;
    color: var(--primary);
}

.blacklist-table tr:last-child td {
    border-bottom: none;
}

.blacklist-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.blacklist-user-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.blacklist-user-name {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ============ 联系我们 ============ */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 30px;
    margin-top: 30px;
}

.contact-info-panel {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item-info {
    flex: 1;
}

.contact-item-info h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text);
}

.contact-item-info p {
    color: #666;
    font-size: 14px;
    margin-bottom: 4px;
}

.contact-item-info a {
    color: var(--primary);
    font-size: 16px;
    font-weight: 600;
}

.contact-item-info a.mail {
    font-size: 14px;
    font-weight: 400;
}

.contact-follow-panel {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.contact-follow-panel h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text);
}

.contact-social-list {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.contact-social-item {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    transition: all 0.3s;
}

.contact-social-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.contact-social-wechat { background: #07c160; }
.contact-social-weibo { background: #e6162d; }
.contact-social-qq { background: #12b7f5; }
.contact-social-tiktok { background: #000; }

.contact-form-panel {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.contact-form-panel h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-success {
    background: white;
    padding: 60px 20px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
}

.contact-success i {
    font-size: 80px;
    color: var(--primary);
    margin-bottom: 20px;
}

.contact-success h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
}

.contact-success p {
    color: #666;
}

.contact-hours-panel {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-top: 20px;
}

.contact-hours-panel h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
}

.contact-hours-list {
    display: grid;
    gap: 12px;
}

.contact-hour-item {
    display: flex;
    justify-content: space-between;
    padding: 12px;
    background: var(--bg);
    border-radius: 8px;
    align-items: center;
}

.contact-hour-item span:first-child {
    color: #666;
}

.contact-hour-item span:last-child {
    font-weight: 600;
}

.contact-hour-item.primary {
    background: var(--primary-light);
}

.contact-hour-item.primary span {
    color: var(--primary);
}

/* ============ 领养留念墙 ============ */
.adoption-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.adoption-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

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

.adoption-pet {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.adoption-pet-image {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
}

.adoption-pet-info {
    flex: 1;
    min-width: 0;
}

.adoption-pet-info h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text);
}

.adoption-info-line {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.adoption-info-line i {
    color: var(--primary);
}

.adoption-people {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}

.adoption-person {
    display: flex;
    align-items: center;
    gap: 12px;
}

.adoption-person img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.adoption-person-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.adoption-person-name {
    font-weight: 600;
    color: var(--text);
}

.adoption-person-role {
    font-size: 12px;
    color: #999;
}

.adoption-arrow {
    color: var(--primary);
    font-size: 24px;
}

/* ============ 详情页面 ============ */
.detail-container {
    display: flex;
    gap: 30px;
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.detail-images {
    flex-shrink: 0;
    flex: 0 0 400px;
    max-width: 400px;
}

.detail-main-image {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 12px;
}

.detail-info {
    flex: 1;
    min-width: 0;
}

.detail-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text);
}

.detail-price {
    font-size: 28px;
    font-weight: 700;
    color: #e53935;
    margin-bottom: 20px;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
}

.detail-meta-item {
    padding: 8px 16px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 20px;
    font-size: 14px;
}

.detail-desc {
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.detail-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.detail-gallery {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.detail-gallery-item {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s;
}

.detail-gallery-item.active {
    border-color: var(--primary);
}

/* ============ 评论区 ============ */
.comments-section {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.comment-form {
    margin-bottom: 30px;
}

.comment-list {
    margin-top: 20px;
}

.comment-item {
    display: flex;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
    align-items: flex-start;
}

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

.comment-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.comment-content {
    flex: 1;
}

.comment-author {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.comment-text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.comment-time {
    font-size: 12px;
    color: var(--text-muted);
}

/* ============ 表单 ============ */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 8px;
}

.form-group label span {
    color: #e53935;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.3s;
    background: white;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
}

textarea.form-input {
    resize: vertical;
    min-height: 120px;
}

.form-input-sm {
    padding: 10px 12px;
    font-size: 14px;
}

.select-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
    background: white;
    cursor: pointer;
    color: var(--text);
}

.select-input:focus {
    outline: none;
    border-color: var(--primary);
}

/* ============ 知识文章详情 ============ */
.article-detail {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.article-detail h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text);
    line-height: 1.4;
}

.article-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
    color: var(--text-muted);
    font-size: 14px;
}

.article-content {
    font-size: 16px;
    line-height: 1.9;
    color: var(--text);
}

.article-content p {
    margin-bottom: 16px;
}

.article-content h2 {
    font-size: 22px;
    margin: 30px 0 16px;
    color: var(--text);
}

.article-content h3 {
    font-size: 18px;
    margin: 24px 0 12px;
    color: var(--text);
}

.article-content ul,
.article-content ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.article-content li {
    margin-bottom: 8px;
}

.article-content img {
    max-width: 100%;
    border-radius: 8px;
    margin: 16px 0;
}

/* ============ 社区帖子详情 ============ */
.post-detail {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.post-detail-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.post-detail-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.post-detail-user-info {
    flex: 1;
}

.post-detail-user-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.post-detail-meta-info {
    color: var(--text-muted);
    font-size: 14px;
}

.post-detail-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text);
    line-height: 1.4;
}

.post-detail-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text);
    margin-bottom: 20px;
}

.post-detail-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.post-detail-images img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
}

.post-detail-stats {
    display: flex;
    gap: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    font-size: 15px;
    color: var(--text-secondary);
}

.post-detail-stats span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.post-detail-stats i {
    color: var(--primary);
}

/* ============ 商品详情 ============ */
.product-detail {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.product-detail-gallery {
    margin-bottom: 30px;
}

.product-detail-main-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 16px;
}

.product-detail-thumbs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.product-detail-thumbs img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s;
}

.product-detail-thumbs img:hover,
.product-detail-thumbs img.active {
    border-color: var(--primary);
}

.product-detail-info h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text);
    line-height: 1.4;
}

.product-detail-price-section {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #fff5f5 0%, #ffe4e4 100%);
    border-radius: 12px;
}

.product-detail-price {
    font-size: 32px;
    font-weight: 700;
    color: #e53935;
}

.product-detail-original-price {
    font-size: 16px;
    color: var(--text-muted);
    text-decoration: line-through;
}

.product-detail-specs {
    margin-bottom: 30px;
}

.product-detail-spec {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.product-detail-spec-label {
    width: 100px;
    color: var(--text-secondary);
    font-weight: 500;
    flex-shrink: 0;
}

.product-detail-spec-value {
    flex: 1;
    color: var(--text);
}

.product-detail-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.product-detail-desc-section {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.product-detail-desc-section h2 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text);
}

.product-detail-desc-content {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* ============ 首页特定样式 ============ */
.banner-stats {
    display: flex;
    justify-content: center;
    gap: 80px;
    margin-top: 20px;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.banner-stats .stat-value {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary);
}

.banner-stats .stat-label {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 5px;
}

/* 首页标题区 */
.home-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.home-section-header .section-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0;
}

/* 空状态图片 */
.empty-image {
    width: 80px;
    margin: 0 auto 20px;
}

/* 详情卡片图片 */
.detail-image {
    width: 100%;
    max-width: 400px;
    height: 350px;
    object-fit: cover;
    border-radius: 12px;
}

/* 文章段落 */
.article-paragraph {
    margin-bottom: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
    font-size: 15px;
}

/* VIP标签渐变 */
.tag-vip {
    background: linear-gradient(135deg, #ffd700, #ffb347);
    color: white;
}

/* 分页页码信息 */
.pagination-page-info {
    padding: 10px 20px;
    background: white;
    border-radius: 8px;
}

/* 帖子统计信息 - 覆盖内联样式 */
.post-stats {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: #999;
}

/* 通用工具类 - margin-right */
.mr-5 { margin-right: 5px; }

/* 页头渐变背景 */
.page-header-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, #00bfa5 100%);
}

/* 领养墙卡片内部布局 */
.adoption-pet {
    display: flex;
    gap: 24px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.adoption-pet-image {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
}

.adoption-pet-info {
    flex: 1;
}

.adoption-pet-name {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.adoption-info-line {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.adoption-users {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}

.adoption-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.adoption-arrow {
    color: var(--primary);
    font-size: 24px;
}

/* 黑名单表格 */
.blacklist-table {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.blacklist-table table {
    width: 100%;
    border-collapse: collapse;
}

.blacklist-table th {
    background: var(--bg);
    font-weight: 600;
    padding: 12px 16px;
    text-align: left;
    color: var(--text);
}

.blacklist-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
}

.blacklist-table tr:last-child td {
    border-bottom: none;
}

.blacklist-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* 分页按钮 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.pagination-page-btn {
    padding: 12px 18px;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    color: #666;
    text-decoration: none;
    transition: all 0.2s;
}

.pagination-page-btn:hover {
    background: var(--primary-light);
    color: var(--primary);
}

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

/* 商城分类导航 */
.category-nav {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.category-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    min-width: 100px;
    transition: all 0.3s;
    text-decoration: none;
    color: var(--text);
}

.category-nav-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.category-nav-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    color: var(--primary);
    font-size: 24px;
}

.category-nav-name {
    font-size: 14px;
    color: var(--text);
}

/* 商品区块通用 */
.products-section {
    margin-bottom: 40px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-title {
    font-size: 22px;
    font-weight: 600;
}

.section-link {
    color: var(--primary);
    font-size: 14px;
    text-decoration: none;
}

.section-link:hover {
    text-decoration: underline;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.products-auto-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: var(--text);
    display: block;
}

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

.product-card-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-tag-top {
    position: absolute;
    top: 10px;
    left: 10px;
}

.product-card-image-wrap {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
}

.product-card-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.badge-hot {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #e53935;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
}

.badge-new {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
}

.product-card-info,
.product-card-body {
    padding: 15px;
}

.product-card-name,
.product-card-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-card-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

.product-card-price del {
    font-size: 13px;
    color: #999;
    font-weight: 400;
}

.product-card-price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 8px;
}

.product-card-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

.product-card-original-price {
    font-size: 13px;
    color: #999;
    text-decoration: line-through;
}

.product-card-sales,
.product-card-sales-text {
    color: #999;
    font-size: 13px;
    margin-top: 5px;
}

/* 侧栏+内容布局 */
.layout-sidebar-content {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
}

.sidebar-panel {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    height: fit-content;
}

.sidebar-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

.sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-list li {
    margin-bottom: 10px;
}

.sidebar-link {
    display: block;
    padding: 12px 15px;
    border-radius: 8px;
    color: #666;
    background: transparent;
    font-weight: 400;
    text-decoration: none;
    transition: all 0.2s;
}

.sidebar-link:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.sidebar-link.active {
    color: var(--primary);
    background: var(--primary-light);
    font-weight: 600;
}

/* 排序栏 */
.sort-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    background: white;
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    flex-wrap: wrap;
}

.sort-btn {
    padding: 10px 16px;
    border-radius: 8px;
    color: #666;
    background: var(--bg);
    text-decoration: none;
    transition: all 0.2s;
}

.sort-btn:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.sort-btn.active {
    background: var(--primary);
    color: white;
}

/* 宠物详情页特定样式 */
.pet-detail-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.pet-detail-stat-item {
    background: var(--primary-light);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    color: var(--primary);
}

/* ============ 响应式设计 ============ */
@media (max-width: 1200px) {
    .pets-grid,
    .posts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pets-grid,
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-content {
        padding-right: 0;
        order: 1;
    }

    .about-image {
        order: 0;
    }

    .about-image-main {
        height: 280px;
    }

    .about-image-badge {
        bottom: -15px;
        right: 15px;
        padding: 15px 20px;
    }

    .about-image-badge .number {
        font-size: 28px;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .about-cta {
        flex-direction: column;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        padding: 20px;
        gap: 20px;
    }

    .banner-slider,
    .banner-default {
        height: 200px;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .detail-container {
        flex-direction: column;
    }

    .detail-images {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .detail-main-image {
        width: 100%;
        height: auto;
    }

    .mobile {
        display: none;
    }

    .contact-form-grid {
        grid-template-columns: 1fr;
    }

    .category-nav-item {
        flex: 0 0 calc(50% - 8px);
        min-width: 0;
    }
}

@media (max-width: 768px) {
    .navbar .container {
        height: 60px;
    }

    .nav-links {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

    .pets-grid,
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .page-header {
        padding: 30px 16px 40px;
    }

    .page-header h1 {
        font-size: 28px;
    }

    .banner-slider,
    .banner-default {
        height: 160px;
    }

    .section-title {
        font-size: 20px;
        font-weight: 600;
        margin-bottom: 8px;
    }

    .section-desc {
        font-size: 14px;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        padding: 20px;
        gap: 16px;
    }

    .stat-number {
        font-size: 24px;
    }

    .stat-icon {
        width: 48px;
        height: 48px;
    }

    .stat-icon i {
        font-size: 22px;
    }

    .stat-item {
        padding: 16px 8px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .feature-card {
        padding: 24px 16px;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
    }

    .feature-icon i {
        font-size: 28px;
    }

    .about {
        padding: 40px 0;
    }

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

    .stat-value {
        font-size: 24px;
    }

    .pets-grid,
    .posts-grid,
    .knowledge-list,
    .products-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .post-card,
    .pet-card,
    .knowledge-item,
    .product-card {
        padding: 16px;
    }

    .pet-image-wrap {
        height: 220px;
    }

    .product-card-image,
    .product-card-image-wrap img,
    .product-card img {
        height: 180px;
    }

    .article-detail,
    .post-detail,
    .product-detail,
    .product-detail-desc-section {
        padding: 20px;
    }

    .article-detail h1,
    .post-detail-title,
    .product-detail-info h1 {
        font-size: 22px;
    }

    .product-detail-thumbs {
        grid-template-columns: repeat(4, 1fr);
    }

    .contact-item-info h3 {
        font-size: 15px;
    }

    .blacklist-table {
        overflow-x: auto;
    }

    .blacklist-table th,
    .blacklist-table td {
        padding: 12px 8px;
        font-size: 13px;
        white-space: nowrap;
    }

    .pagination {
        gap: 8px;
        flex-wrap: wrap;
    }

    .pagination a,
    .pagination span {
        padding: 8px 12px;
        font-size: 13px;
    }

    .filter-section {
        padding: 12px;
    }

    .filter-tab {
        padding: 6px 14px;
        font-size: 13px;
    }

    .home-section-header .section-title {
        font-size: 18px;
    }

    .warning-banner {
        padding: 10px 16px;
        font-size: 13px;
    }

    .container {
        padding: 0 16px;
    }

.banner-wrapper { 
    height: 150px;
}
.banner-section { 
    margin-bottom: 0px; 
}
    .adoption-pet {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .adoption-pet-image {
        width: 100%;
        max-width: 200px;
        height: auto;
        aspect-ratio: 1;
    }

    .adoption-info-line {
        justify-content: center;
    }

    .comment-item {
        flex-direction: column;
        gap: 12px;
    }

    .product-detail-main-img {
        height: 280px;
    }

    .product-detail-price-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 16px;
    }

    .product-detail-spec {
        flex-direction: column;
        gap: 8px;
    }

    .product-detail-spec-label {
        width: auto;
    }
}

@media (max-width: 480px) {
    .pets-grid,
    .posts-grid,
    .products-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .banner-slider,
    .banner-default {
        height: 140px;
    }

    .page-header h1 {
        font-size: 22px;
    }

    .section-title {
        font-size: 18px;
    }

    .about-image-main {
        height: 200px;
    }

    .about-image-main i {
        font-size: 100px;
    }

    .about-image-badge {
        padding: 12px 16px;
        bottom: -10px;
        right: 10px;
    }

    .about-image-badge .number {
        font-size: 22px;
    }

    .contact-info-panel,
    .contact-follow-panel,
    .contact-form-panel,
    .contact-hours-panel {
        padding: 20px;
    }

    .icon-circle-lg {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }

    .adoption-card {
        padding: 16px;
    }

    .post-detail-images {
        grid-template-columns: repeat(2, 1fr);
    }

    .category-nav-item {
        flex: 0 0 calc(50% - 8px);
    }

    .product-detail-thumbs {
        grid-template-columns: repeat(3, 1fr);
    }

    .contact-hour-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

/* ============ 地图占位 ============ */
.map-placeholder {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-radius: var(--radius);
    height: 250px;
    display: flex;
    margin-top: 20px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-align: center;
    padding: 10px 10px;
}

.map-placeholder i {
    font-size: 60px;
    color: var(--primary);
    margin-bottom: 16px;
}

.map-placeholder p {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text);
    font-weight: 600;
}

.map-placeholder span {
    font-size: 14px;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .map-placeholder {
        height: 250px;
    }

    .map-placeholder i {
        font-size: 40px;
    }
}

/* ============ 通用工具类（替代内联样式） ============ */

/* 布局工具类 */
.grid-full-col {
    grid-column: 1 / -1;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.flex-wrap {
    flex-wrap: wrap;
}

.flex-col {
    flex-direction: column;
}

.gap-sm { gap: 8px; }
.gap-md { gap: 16px; }
.gap-lg { gap: 24px; }

/* 间距工具类 */
.mt-5 { margin-top: 5px; }
.mt-8 { margin-top: 8px; }
.mt-10 { margin-top: 10px; }
.mt-12 { margin-top: 12px; }
.mt-15 { margin-top: 15px; }
.mt-24 { margin-top: 24px; }
.mt-30 { margin-top: 30px; }
.mt-40 { margin-top: 40px; }
.mt-60 { margin-top: 60px; }

.mb-5 { margin-bottom: 5px; }
.mb-8 { margin-bottom: 8px; }
.mb-10 { margin-bottom: 10px; }
.mb-15 { margin-bottom: 15px; }
.mb-24 { margin-bottom: 24px; }
.mb-30 { margin-bottom: 30px; }

.ml-5 { margin-left: 5px; }
.ml-10 { margin-left: 10px; }

.mx-auto { margin-left: auto; margin-right: auto; }

.p-15 { padding: 15px; }
.p-20 { padding: 20px; }
.p-25 { padding: 25px; }
.p-30 { padding: 30px; }
.p-50 { padding: 50px; }

/* 文字工具类 */
.fs-12 { font-size: 12px; }
.fs-13 { font-size: 13px; }
.fs-14 { font-size: 14px; }
.fs-15 { font-size: 15px; }
.fs-16 { font-size: 16px; }
.fs-18 { font-size: 18px; }
.fs-20 { font-size: 20px; }
.fs-22 { font-size: 22px; }
.fs-24 { font-size: 24px; }
.fs-28 { font-size: 28px; }
.fs-32 { font-size: 32px; }

.fw-400 { font-weight: 400; }
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }

.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: var(--primary); }
.text-danger { color: #e53935; }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-dark { color: var(--text); }

.lh-18 { line-height: 1.8; }
.lh-2 { line-height: 2; }

.nowrap {
    white-space: nowrap;
}

.ellipsis {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 卡片和容器 */
.card-white {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.card-padded {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
}

/* 网格布局 */
.layout-sidebar-content {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
}

.layout-two-col {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 30px;
}

.products-auto-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

/* 侧边栏 */
.sidebar-panel {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    height: fit-content;
}

.sidebar-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

.sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-list li {
    margin-bottom: 10px;
}

.sidebar-link {
    display: block;
    padding: 12px 15px;
    border-radius: 8px;
    color: #666;
    text-decoration: none;
    transition: all 0.2s;
}

.sidebar-link:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.sidebar-link.active {
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 600;
}

/* 排序按钮 */
.sort-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    background: white;
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    flex-wrap: wrap;
}

.sort-btn {
    padding: 10px 16px;
    border-radius: 8px;
    color: #666;
    background: var(--bg);
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: all 0.2s;
}

.sort-btn:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.sort-btn.active {
    background: var(--primary);
    color: white;
}

/* 商品卡片 */
.product-card {
    display: block;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
}

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

.product-card-image-wrap {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
}

.product-card-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card-body {
    padding: 15px;
}

.product-card-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-card-price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 8px;
}

.product-card-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

.product-card-original-price {
    font-size: 13px;
    color: #999;
    text-decoration: line-through;
}

.product-card-sales {
    color: #999;
    font-size: 13px;
}

/* 角标 */
.badge-hot {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #e53935;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    z-index: 2;
}

.badge-new {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    z-index: 2;
}

/* 详情页信息区 */
.detail-info-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    color: var(--text-secondary);
}

.detail-info-row i {
    color: var(--primary);
    width: 18px;
}

.detail-tag-list {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.detail-desc-box {
    background: var(--bg);
    padding: 20px;
    border-radius: 12px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.detail-sidebar-img {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    object-fit: cover;
}

/* 领养墙 */
.adoption-card {
    background: white;
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.adoption-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar-md {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.adoption-pet {
    display: flex;
    gap: 24px;
    align-items: center;
}

.adoption-pet-image {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    object-fit: cover;
}

.adoption-info-line {
    display: flex;
    gap: 16px;
    color: var(--text-secondary);
    font-size: 14px;
}

/* 黑名单 */
.blacklist-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.blacklist-table {
    width: 100%;
    border-collapse: collapse;
}

.blacklist-table th,
.blacklist-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.blacklist-table th {
    background: var(--bg);
    font-weight: 600;
    color: var(--text);
}

.blacklist-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.warning-banner {
    background: #fff3e0;
    color: #e65100;
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* 知识/文章 */
.knowledge-item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 20px;
    background: white;
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
}

.knowledge-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.knowledge-item-image {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 8px;
}

.knowledge-item-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.knowledge-item-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 10px;
}

.knowledge-item-desc {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 15px;
    flex: 1;
}

.knowledge-item-meta {
    color: var(--text-muted);
    font-size: 12px;
    display: flex;
    gap: 20px;
}

/* 联系我们 */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 30px;
    margin-top: 30px;
}

.contact-info-panel,
.contact-follow-panel,
.contact-form-panel,
.contact-hours-panel {
    background: white;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

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

.icon-circle-lg {
    width: 56px;
    height: 56px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 22px;
    flex-shrink: 0;
}

.contact-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group-full {
    grid-column: 1 / -1;
}

.contact-hour-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 12px;
}

.contact-hour-day {
    font-weight: 500;
    min-width: 80px;
}

.contact-hour-time {
    color: var(--text-secondary);
    flex: 1;
}

/* 推荐/排行榜 */
.recommend-sidebar {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.recommend-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.recommend-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recommend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

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

.recommend-item:hover {
    color: var(--primary);
}

.recommend-num {
    width: 24px;
    height: 24px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}

.recommend-num-top {
    background: var(--primary);
    color: white;
}

.recommend-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
}

.recommend-count {
    color: var(--text-muted);
    font-size: 12px;
}

/* 隐私/政策页 */
.content-card {
    background: white;
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
}

.content-body {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.content-body h1 {
    font-size: 24px;
    color: var(--text);
    margin: 30px 0 20px;
    font-weight: 700;
}

.content-body h2 {
    font-size: 22px;
    color: var(--text);
    margin: 28px 0 18px;
    font-weight: 600;
}

.content-body h3 {
    font-size: 20px;
    color: var(--text);
    margin: 24px 0 16px;
    font-weight: 600;
}

.content-body p {
    margin: 16px 0;
}

.content-body ul,
.content-body ol {
    padding-left: 24px;
    margin: 16px 0;
}

.content-body li {
    margin: 10px 0;
}

.content-body a {
    color: var(--primary);
    text-decoration: underline;
}

.content-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 16px 0;
}

.content-body blockquote {
    border-left: 4px solid var(--primary);
    padding: 16px 20px;
    background: var(--primary-light);
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
}

/* 平台内容页 */
.platform-content-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.platform-content-body {
    line-height: 1.8;
    color: var(--text-secondary);
}

.group-info-box {
    display: flex;
    gap: 30px;
    padding: 24px;
    background: var(--primary-light);
    border-radius: 12px;
    margin-bottom: 20px;
    align-items: center;
}

.group-qrcode-box {
    width: 160px;
    height: 160px;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    padding: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.group-qrcode-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.group-details {
    flex: 1;
}

.group-details h3 {
    margin: 0 0 12px 0;
    color: var(--primary);
    font-size: 20px;
}

.group-details p {
    margin: 8px 0;
    color: var(--text-secondary);
}

.group-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
}

.group-number {
    font-size: 14px;
    color: var(--text-muted);
}

/* 筛选标签 */
.filter-section {
    background: white;
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 8px 16px;
    border-radius: 8px;
    background: var(--bg);
    color: #666;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 14px;
}

.filter-tab:hover {
    background: var(--primary-light);
    color: var(--primary);
}

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

/* 通用空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.empty-state img {
    width: 120px;
    margin: 0 auto 20px;
}

.empty-icon {
    font-size: 60px;
    color: #ddd;
    margin-bottom: 20px;
}

.empty-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.empty-desc {
    color: #999;
    font-size: 14px;
}

/* 首页特定 */
.promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.promo-card {
    background: white;
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
}

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

/* 右侧边栏列表 */
.sidebar-stats {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: var(--shadow);
}

.sidebar-stats-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.sidebar-stats-row:last-child {
    border-bottom: none;
}

.sidebar-stats-label {
    color: var(--text-secondary);
}

.sidebar-stats-value {
    font-weight: 600;
    color: var(--primary);
}

/* ============ 内联样式替代类 - 移动端响应式覆盖 ============ */
@media (max-width: 1024px) {
    .layout-sidebar-content {
        grid-template-columns: 1fr;
    }

    .layout-two-col,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .knowledge-item {
        grid-template-columns: 1fr;
    }

    .knowledge-item-image {
        height: 200px;
    }

    .contact-form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .products-auto-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .card-padded,
    .platform-content-card,
    .contact-info-panel,
    .contact-form-panel,
    .contact-follow-panel,
    .contact-hours-panel,
    .content-card {
        padding: 20px;
    }

    .group-info-box {
        flex-direction: column;
        text-align: center;
        padding: 20px;
        gap: 20px;
    }

    .group-qrcode-box {
        width: 140px;
        height: 140px;
    }

    .promo-grid {
        grid-template-columns: 1fr;
    }

    .adoption-pet {
        flex-direction: column;
        text-align: center;
    }

    .adoption-pet-image {
        width: 100%;
        max-width: 200px;
        height: auto;
        aspect-ratio: 1;
    }

    .adoption-info-line {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .products-auto-grid {
        grid-template-columns: 1fr;
    }
}

/* ============ 通用按钮工具类 ============ */
.btn-block {
    width: 100%;
    text-align: center;
}

.btn-large {
    padding: 16px;
    font-size: 16px;
}

/* ============ 宠物详情页主样式 ============ */
.pet-detail-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.pet-detail-gallery {
    display: flex;
    flex-direction: column;
}

.pet-detail-main-image {
    position: relative;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.pet-detail-main-image img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
}

  @media (max-width: 768px) {
.pet-detail-main-image img{
    height: 200px;
}

}
.pet-badge {
    position: absolute;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    color: white;
}

.pet-badge-vaccine {
    top: 15px;
    right: 15px;
    background: var(--primary);
}

.pet-badge-sterilization {
    top: 15px;
    left: 15px;
    background: #ff9800;
}

.pet-detail-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.pet-thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.pet-thumbnail:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow);
}

.pet-detail-info-panel {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.pet-detail-name {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 15px;
}

.pet-detail-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tag-gender-male {
    background: #e3f2fd;
    color: #1976d2;
}

.tag-gender-female {
    background: #fce4ec;
    color: #c2185b;
}

.tag-status-available {
    background: #e8f5e9;
    color: #2e7d32;
}

.tag-status-adopted {
    background: #fce4ec;
    color: #c2185b;
}

.tag-status-pending {
    background: #fff3e0;
    color: #e65100;
}

.pet-detail-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.pet-detail-metric {
    padding: 15px;
    background: var(--bg);
    border-radius: 8px;
}

.pet-detail-metric-label {
    color: #999;
    font-size: 13px;
    margin-bottom: 5px;
}

.pet-detail-metric-value {
    font-weight: 600;
}

.pet-detail-address {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 15px;
    background: var(--primary-light);
    border-radius: 8px;
    margin-bottom: 20px;
    color: var(--primary);
    font-weight: 500;
}

.pet-detail-section {
    margin-bottom: 20px;
}

.pet-detail-section-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}

.pet-detail-section-content {
    color: #666;
    line-height: 1.8;
    margin: 0;
}

/* 领养须知 */
.pet-detail-notice {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.pet-detail-notice-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text);
}

.pet-detail-notice-title i {
    color: #ff9800;
    margin-right: 8px;
}

.pet-detail-notice-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.pet-detail-notice-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: var(--bg);
    border-radius: 8px;
    color: var(--text);
}

.pet-detail-notice-item i {
    color: var(--primary);
    flex-shrink: 0;
}

/* ============ 详情页响应式 ============ */
@media (max-width: 1024px) {
    .pet-detail-main {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .pet-detail-info-panel {
        padding: 20px;
    }

    .pet-detail-name {
        font-size: 24px;
    }

    .pet-detail-metrics {
       display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px; 
    }

    .pet-detail-notice-list {
        grid-template-columns: 1fr;
    }

    .pet-detail-notice {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .pet-thumbnail {
        width: 40px;
        height: 40px;
    }

    .pet-detail-name {
        font-size: 22px;
    }

    .pet-detail-metrics {
       grid-template-columns: 1fr 1fr;
    }
}

/* ============ 商品详情页样式 ============ */
.btn-flex {
    flex: 1;
    justify-content: center;
}

.mall-detail-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.mall-detail-gallery {
    display: flex;
    flex-direction: column;
}

.mall-detail-main-image {
    position: relative;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.mall-detail-main-image img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
}
@media (max-width: 768px) {
.mall-detail-main-image img {
   height: 200px;
                }

          }
.mall-detail-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.mall-detail-info-panel {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.mall-detail-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
}

.mall-detail-price-row {
    display: flex;
    align-items: baseline;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.mall-detail-price {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
}

.mall-detail-original-price {
    font-size: 18px;
    color: #999;
    text-decoration: line-through;
}

.mall-detail-sales {
    color: #999;
    font-size: 14px;
}

.mall-detail-desc {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    margin-top: 0;
}

.mall-detail-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.mall-detail-metric {
    padding: 15px;
    background: var(--bg);
    border-radius: 8px;
}

.mall-detail-metric-label {
    color: #999;
    font-size: 13px;
    margin-bottom: 5px;
}

.mall-detail-metric-value {
    font-weight: 600;
}

.mall-detail-qty {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.mall-detail-qty-label {
    color: #666;
}

.qty-control {
    display: flex;
    align-items: center;
    border: 2px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.qty-btn {
    width: 44px;
    height: 44px;
    background: var(--bg);
    border: none;
    font-size: 20px;
    cursor: pointer;
    transition: background 0.2s;
}

.qty-btn:hover {
    background: var(--primary-light);
}

.qty-input {
    width: 60px;
    height: 44px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    font-size: 16px;
    background: white;
}

.mall-detail-actions {
    display: flex;
    gap: 15px;
}

.mall-detail-panel {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.mall-detail-section-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

.mall-detail-content {
    line-height: 1.8;
    color: #333;
}

/* ============ 商品详情页响应式 ============ */
@media (max-width: 1024px) {
    .mall-detail-main {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .mall-detail-info-panel,
    .mall-detail-panel {
        padding: 20px;
    }

    .mall-detail-price {
        font-size: 28px;
    }

    .mall-detail-title {
        font-size: 22px;
    }

    .mall-detail-content {
        color: #666;
    }
}
