/*
Theme Name: Sydney Child
Theme URI: 
Template: sydney
Author: Your Name
Author URI: 
Description: Sydney 主题的子主题 - 宠物电商定制版
Version: 1.0.0
*/

/* ===== 全局变量 ===== */
:root {
    --primary-color: #4a6fa5;      /* 主色调：蓝色 */
    --secondary-color: #6b8cae;    /* 次要色：浅蓝 */
    --accent-color: #ffb347;        /* 强调色：橙色（您的品牌色） */
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #f9f9f9;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-hover: 0 8px 15px rgba(0,0,0,0.15);
    
    /* Sydney 主题色覆盖 */
    --sydney-global-color-1: var(--accent-color) !important;
    --sydney-global-color-2: var(--primary-color) !important;
    --sydney-global-color-4: var(--text-dark) !important;
}

/* ===== 菜单样式 ===== */
#primary-menu {
    width: 600px !important;
    flex: 0 0 600px !important;
    max-width: 600px !important;
    min-width: 600px !important;
}

/* ===== 站点标题样式 ===== */
.site-title a {
    color: var(--accent-color) !important;
    font-size: 28px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    display: inline-block !important;
    background: transparent !important;
}

.site-title a:hover,
.site-title:hover a {
    background: linear-gradient(135deg, var(--accent-color), #ff6b6b, var(--primary-color)) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    color: transparent !important;
    transform: scale(1.05) !important;
}

/* ===== Sydney 默认元素覆盖 ===== */
.button,
.wp-block-button__link,
a.button,
button.button,
input[type="submit"] {
    background-color: var(--accent-color) !important;
    transition: all 0.3s ease !important;
}

.button:hover,
.wp-block-button__link:hover,
a.button:hover,
button.button:hover,
input[type="submit"]:hover {
    background-color: #ffa01c !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* 链接颜色 */
a {
    color: var(--accent-color);
}

a:hover {
    color: var(--primary-color);
}

/* ===== 基础样式 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== 移除Sydney默认内边距 ===== */
.page-wrap {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.site-content {
    padding: 0 !important;
}

/* ===== 标题样式 ===== */
.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-dark);
    position: relative;
    padding-bottom: 1rem;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--accent-color);
}

/* ===== 按钮 ===== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-accent {
    background: var(--accent-color);
    color: var(--text-dark);
}

.btn-accent:hover {
    background: #ffa01c;
    color: var(--text-dark);
}

/* ===== 英雄区域 ===== */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    display: flex;
    align-items: center;
    width: 100vw !important;
    position: relative !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
}

.hero .container {
    display: flex;
    align-items: center;
    gap: 50px;
    width: 100%;
    padding: 80px 20px;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--white);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: rgba(255,255,255,0.9);
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-image {
    flex: 1;
}

/* ===== 买家秀相册 ===== */
.pet-showcase {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    background: linear-gradient(145deg, #2a2a2a 0%, #1a1a1a 100%);
}

.showcase-container {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.showcase-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: scale(1.1);
    transition: opacity 0.8s ease, transform 0.8s ease;
    pointer-events: none;
}

.showcase-slide.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
    z-index: 2;
}

.showcase-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.9);
}

/* 图片遮罩和内容 */
.slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, 
        rgba(0,0,0,0.8) 0%,
        rgba(0,0,0,0.4) 50%,
        transparent 100%);
    color: white;
    padding: 60px 30px 30px;
    transform: translateY(20px);
    transition: transform 0.5s ease 0.3s;
}

.showcase-slide.active .slide-overlay {
    transform: translateY(0);
}

.slide-content {
    max-width: 600px;
}

.pet-emoji {
    font-size: 2.5rem;
    display: inline-block;
    margin-bottom: 10px;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
}

.slide-content h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    letter-spacing: -0.5px;
}

.pet-review {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: rgba(255,255,255,0.95);
    font-style: italic;
    line-height: 1.5;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.product-tag {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 40px;
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s;
}

.product-tag:hover {
    background: rgba(255,180,71,0.3);
    transform: scale(1.05);
}

.product-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent-color);
}

.product-rating {
    color: #ffc107;
    letter-spacing: 2px;
    font-size: 0.9rem;
}

/* 左右箭头 */
.showcase-prev,
.showcase-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(8px);
    color: white;
    font-size: 28px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    border: 2px solid rgba(255,255,255,0.3);
}

.pet-showcase:hover .showcase-prev,
.pet-showcase:hover .showcase-next {
    opacity: 1;
}

.showcase-prev:hover,
.showcase-next:hover {
    background: var(--accent-color);
    transform: translateY(-50%) scale(1.1);
    border-color: var(--accent-color);
}

.showcase-prev { left: 20px; }
.showcase-next { right: 20px; }

/* 缩略图导航条 */
.thumbnail-strip {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
    margin-top: 10px;
    border-radius: 10px;
}

.thumbnail {
    width: 80px;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 10px;
    overflow: hidden;
    opacity: 0.6;
    position: relative;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.thumbnail.active {
    opacity: 1;
    transform: scale(1.1);
    box-shadow: 0 0 0 3px var(--accent-color);
}

.thumbnail img {
    width: 100%;
    height: 60px;
    object-fit: cover;
}

.thumb-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.6);
    color: white;
    font-size: 0.7rem;
    text-align: center;
    padding: 2px;
}

/* ===== 宠物类型 ===== */
.pet-type {
    padding: 80px 0;
    background: var(--white);
}

.pet-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.pet-card {
    background: var(--bg-light);
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s;
    box-shadow: var(--shadow);
}

.pet-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.pet-card .demo-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.pet-card .demo-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.pet-card:hover .demo-image img {
    transform: scale(1.1);
}

.pet-card-content {
    padding: 20px;
    text-align: center;
}

.pet-card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

/* ===== 分类卡片 ===== */
.category-showcase {
    padding: 80px 0;
    background: var(--white);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 40px;
}

.category-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 350px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.category-card:hover .card-bg {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, 
        rgba(0,0,0,0.9) 0%,
        rgba(0,0,0,0.6) 50%,
        transparent 100%);
    color: white;
    padding: 30px 20px 20px;
}

.card-icon {
    display: inline-block;
    font-size: 2.5rem;
    margin-bottom: 10px;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
    animation: bounce 2s infinite ease-in-out;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.card-overlay h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.card-overlay p {
    font-size: 1rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 15px;
    font-weight: 300;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 3px;
}

.card-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.card-link:hover::after {
    width: 100%;
}

.card-link .arrow {
    transition: transform 0.3s ease;
}

.card-link:hover .arrow {
    transform: translateX(5px);
}

.category-footer {
    text-align: center;
    margin-top: 50px;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    background: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: var(--accent-color);
    color: white;
    transform: translateX(5px);
}

/* ===== 信任元素 ===== */
.trust-badges {
    padding: 60px 0;
    background: var(--white);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.trust-item {
    text-align: center;
}

.trust-icon {
    font-size: 48px;
    margin-bottom: 15px;
    color: var(--accent-color);
}

.trust-item h4 {
    margin-bottom: 8px;
    color: var(--text-dark);
}

.trust-item p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ===== 用户评价 - 精简版 ===== */
.testimonials {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.testimonials-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-subtitle {
    display: inline-block;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 10px;
    background: rgba(255,255,255,0.1);
    padding: 4px 15px;
    border-radius: 30px;
}

.testimonials-header .section-title {
    color: var(--white);
    margin-bottom: 0;
    font-size: 2rem;
}

.testimonials-header .section-title:after {
    background: var(--accent-color);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.testimonial-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(255,255,255,0.15);
    transition: transform 0.3s;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.15);
}

.testimonial-rating {
    color: gold;
    font-size: 0.9rem;
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.testimonial-text {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 15px;
    color: rgba(255,255,255,0.95);
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--accent-color);
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    color: var(--white);
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.author-pet {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
}

.testimonials-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(0,0,0,0.15);
    border-radius: 50px;
    backdrop-filter: blur(5px);
}

.rating-summary {
    display: flex;
    align-items: center;
    gap: 15px;
}

.rating-big {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1;
}

.rating-stars {
    color: gold;
    font-size: 1rem;
    letter-spacing: 2px;
}

.rating-count {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}

.btn-testimonial {
    color: var(--white);
    text-decoration: none;
    font-size: 0.95rem;
    padding: 8px 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 30px;
    transition: all 0.3s;
}

.btn-testimonial:hover {
    background: var(--accent-color);
    color: var(--text-dark);
}

/* ===== 邮件订阅 ===== */
.newsletter {
    padding: 80px 0;
    background: var(--primary-color);
    color: var(--white);
    text-align: center;
}

.newsletter h2 {
    color: var(--white);
    margin-bottom: 15px;
    font-size: 2rem;
}

.newsletter p {
    color: rgba(255,255,255,0.9);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.newsletter-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    outline: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.newsletter-form button {
    padding: 15px 30px;
    background: var(--accent-color);
    color: var(--text-dark);
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.newsletter-form button:hover {
    background: #ffa01c;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.newsletter-form button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* 消息提示 */
.newsletter-message {
    max-width: 500px;
    margin: 0 auto 20px;
    padding: 12px 25px;
    border-radius: 50px;
    text-align: center;
    font-size: 0.95rem;
    display: none;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.newsletter-message.success {
    background: rgba(76, 175, 80, 0.2);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
}

.newsletter-message.error {
    background: rgba(244, 67, 54, 0.2);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
}

/* ===== 辅助样式 ===== */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

a, button {
    -webkit-tap-highlight-color: transparent;
}

/* ===== 移动端响应式 ===== */
/* 平板 (768px - 1024px) */
@media (max-width: 1024px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .instagram-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 手机 (小于768px) */
@media (max-width: 768px) {
    /* 买家秀相册优化 - 移除冲突定义 */
    .showcase-prev,
    .showcase-next {
        display: none !important;
    }
    
    /* 缩略图导航条 - 横向滚动 */
    .thumbnail-strip {
        justify-content: flex-start;
        overflow-x: auto;
        padding: 10px 8px;
        gap: 8px;
        margin-top: 8px;
        -webkit-overflow-scrolling: touch;
    }
    
    .thumbnail-strip::-webkit-scrollbar {
        height: 3px;
    }
    
    .thumbnail-strip::-webkit-scrollbar-thumb {
        background: var(--accent-color);
        border-radius: 10px;
    }
    
    .thumbnail {
        flex: 0 0 auto;
        width: 55px;
    }
    
    .thumbnail img {
        height: 40px;
    }
    
    .thumb-name {
        font-size: 0.6rem;
        padding: 2px;
    }
    
    /* 英雄区域优化 */
    .hero .container {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
        gap: 20px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    /* 所有模块统一减小内边距 */
    .pet-type,
    .category-showcase,
    .testimonials,
    .trust-badges,
    .newsletter {
        padding: 40px 0;
    }
    
    /* 网格统一1列 */
    .pet-grid,
    .category-grid,
    .testimonials-grid,
    .trust-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 25px;
    }
    
    /* 按钮优化 */
    .btn, .btn-accent, .btn-outline {
        width: 100%;
        padding: 14px 20px;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
}

/* 小手机 (小于480px) */
@media (max-width: 480px) {
    .pet-card .demo-image {
        height: 100px !important;
    }
    
    .pet-card-content h3 {
        font-size: 0.95rem !important;
    }
    
    .pet-card-content p {
        font-size: 0.75rem !important;
    }
    .hero .container {
        padding: 30px 20px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .testimonials-header .section-title {
        font-size: 1.6rem;
    }
    
    .trust-grid {
        gap: 15px;
    }
    
    .newsletter {
        padding: 30px 0;
    }
    
    .newsletter h2 {
        font-size: 1.4rem;
    }
}

/* ===== 热门产品 - 移动端横向滑动 ===== */
@media (max-width: 768px) {
    .pet-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        margin-top: 20px !important;
    }
    
    .pet-card .demo-image {
        height: 120px !important;
    }
    
    .pet-card-content {
        padding: 10px !important;
    }
    
    .pet-card-content h3 {
        font-size: 1rem !important;
        margin-bottom: 5px !important;
    }
    
    .pet-card-content p {
        font-size: 0.8rem !important;
        line-height: 1.3 !important;
    }
    .featured-scene ul.products {
        display: flex !important;
        overflow-x: auto !important;
        gap: 15px !important;
        padding-bottom: 15px !important;
        grid-template-columns: none !important;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        margin: 15px 0 0 !important;
    }
    
    .featured-scene li.product {
        flex: 0 0 200px !important;
        width: auto !important;
        scroll-snap-align: start;
        margin: 0 !important;
    }
    
    .featured-scene li.product img {
        height: 180px !important;
        width: 100% !important;
    }
    
    .featured-scene li.product h2 {
        font-size: 0.95rem !important;
        margin: 10px 10px 3px !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .featured-scene li.product .price {
        font-size: 0.9rem !important;
        margin: 0 10px 10px !important;
    }
    
    .featured-scene::after {
        content: '← Swipe for more →';
        display: block;
        text-align: center;
        font-size: 0.8rem;
        color: var(--text-light);
        margin-top: 5px;
        margin-bottom: 0;
    }
}

@media (max-width: 480px) {
    .featured-scene li.product {
        flex: 0 0 160px !important;
    }
    
    .featured-scene li.product img {
        height: 160px !important;
    }
}

/* ===== 热门分类 - 移动端横向滑动 ===== */
@media (max-width: 768px) {
    .category-grid {
        display: flex !important;
        overflow-x: auto !important;
        gap: 15px !important;
        padding-bottom: 15px !important;
        grid-template-columns: none !important;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
    }
    
    .category-card {
        flex: 0 0 260px !important;
        height: 200px !important;
        scroll-snap-align: start;
    }
    
    .category-card:first-child {
        height: 200px !important;
    }
    
    .category-showcase::after {
        content: '← Swipe for more categories →';
        display: block;
        text-align: center;
        font-size: 0.8rem;
        color: var(--text-light);
        margin-top: 5px;
        margin-bottom: 0;
    }
}

@media (max-width: 480px) {
    .category-card {
        flex: 0 0 220px !important;
        height: 180px !important;
    }
}

/* ===== 用户评价 - 移动端横向滑动 ===== */
@media (max-width: 768px) {
    .testimonials-grid {
        display: flex !important;
        overflow-x: auto !important;
        gap: 15px !important;
        padding-bottom: 15px !important;
        grid-template-columns: none !important;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
    }
    
    .testimonials .testimonial-card {
        flex: 0 0 280px !important;
        scroll-snap-align: start;
    }
    
    .testimonials::after {
        content: '← Swipe for more reviews →';
        display: block;
        text-align: center;
        font-size: 0.8rem;
        color: rgba(255,255,255,0.7);
        margin-top: 5px;
        margin-bottom: 0;
    }
}

@media (max-width: 480px) {
    .testimonials .testimonial-card {
        flex: 0 0 260px !important;
    }
}

/* ===== 轮播banner - 统一修复 ===== */
@media (max-width: 768px) {
    .showcase-container {
        height: 350px !important;
    }
    
    .pet-showcase {
        height: auto !important;
        max-width: 100%;
        margin: 0 auto;
    }
    
    .showcase-slide img {
        width: 100% !important;
        height: 350px !important;
        object-fit: cover !important;
    }
    
    .slide-overlay {
        padding: 25px 15px 15px !important;
    }
    
    .pet-emoji {
        font-size: 1.8rem !important;
        margin-bottom: 3px !important;
    }
    
    .slide-content h3 {
        font-size: 1.3rem !important;
        margin-bottom: 3px !important;
    }
    
    .pet-review {
        font-size: 0.85rem !important;
        margin-bottom: 5px !important;
        line-height: 1.3 !important;
    }
    
    .product-tag {
        padding: 4px 10px !important;
        gap: 5px !important;
    }
    
    .product-name {
        font-size: 0.8rem !important;
    }
    
    .product-rating {
        font-size: 0.75rem !important;
    }
}

@media (max-width: 480px) {
    .showcase-container {
        height: 280px !important;
    }
    
    .showcase-slide img {
        height: 280px !important;
    }
    
    .slide-overlay {
        padding: 20px 12px 12px !important;
    }
    
    .slide-content h3 {
        font-size: 1.2rem !important;
    }
    
    .pet-review {
        font-size: 0.8rem !important;
    }
}

@media (max-width: 375px) {
    .showcase-container {
        height: 240px !important;
    }
    
    .showcase-slide img {
        height: 240px !important;
    }
}

/* ===== 页脚移动端优化 ===== */
@media (max-width: 768px) {
    .shfb-footer {
        background: #1a1a1a !important;
        color: #fff !important;
        padding: 30px 0 0 !important;
    }
    
    .shfb-row {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 15px !important;
        padding: 0 15px !important;
    }
    
    .shfb-column {
        text-align: center !important;
        padding: 0 !important;
    }
    
    .footer-html h3,
    .widget_block h2 {
        color: var(--accent-color) !important;
        font-size: 1.1rem !important;
        margin: 0 0 8px 0 !important;
        padding: 0 !important;
    }
    
    .footer-html ul,
    .widget_block ul {
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
    }
    
    .footer-html li,
    .widget_block li {
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .footer-html a,
    .widget_block a {
        color: rgba(255,255,255,0.8) !important;
        text-decoration: none !important;
        font-size: 0.85rem !important;
        display: inline-block;
        padding: 3px 0 !important;
    }
    
    .footer-html a:hover,
    .widget_block a:hover {
        color: var(--accent-color) !important;
    }
    
    .shfb-column-3 ul {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 8px !important;
        margin-top: 5px !important;
    }
    
    .shfb-column-3 ul li a {
        background: rgba(255,180,71,0.1) !important;
        padding: 5px 10px !important;
        border-radius: 20px !important;
        font-size: 0.8rem !important;
    }
    
    .shfb-below_footer_row {
        margin-top: 15px !important;
        padding: 10px 0 !important;
    }
    
    .sydney-credits {
        text-align: center !important;
        font-size: 0.75rem !important;
        color: rgba(255,255,255,0.6) !important;
    }
}

@media (max-width: 480px) {
    .shfb-row {
        gap: 12px !important;
    }
    
    .footer-html h3,
    .widget_block h2 {
        font-size: 1rem !important;
        margin-bottom: 5px !important;
    }
    
    .footer-html a,
    .widget_block a {
        font-size: 0.8rem !important;
        padding: 2px 0 !important;
    }
    
    .shfb-column-3 ul {
        gap: 5px !important;
    }
    
    .shfb-column-3 ul li a {
        padding: 4px 8px !important;
        font-size: 0.75rem !important;
    }
}

/* ===== 信任元素 - 移动端修复 ===== */
@media (max-width: 768px) {
    .trust-badges {
        padding: 30px 0 !important;
        background: var(--white);
    }
    
    .trust-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
        margin: 0 !important;
    }
    
    .trust-item {
        text-align: center !important;
        padding: 15px 10px !important;
        background: #f8f8f8 !important;
        border-radius: 12px !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05) !important;
    }
    
    .trust-icon {
        font-size: 2.2rem !important;
        margin-bottom: 8px !important;
        color: var(--accent-color) !important;
        line-height: 1 !important;
    }
    
    .trust-item h4 {
        font-size: 0.95rem !important;
        margin-bottom: 4px !important;
        color: var(--text-dark) !important;
        font-weight: 600 !important;
    }
    
    .trust-item p {
        font-size: 0.8rem !important;
        color: var(--text-light) !important;
        line-height: 1.3 !important;
        margin: 0 !important;
    }
}

/* 小屏幕微调 */
@media (max-width: 480px) {
    .trust-grid {
        gap: 10px !important;
    }
    
    .trust-item {
        padding: 12px 8px !important;
    }
    
    .trust-icon {
        font-size: 2rem !important;
        margin-bottom: 5px !important;
    }
    
    .trust-item h4 {
        font-size: 0.9rem !important;
    }
    
    .trust-item p {
        font-size: 0.75rem !important;
    }
}

/* ===== 移动端按钮优化 ===== */
@media (max-width: 768px) {
    .hero-buttons {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        width: 100% !important;
        max-width: 300px !important;
        margin: 0 auto !important;
    }
    
    .hero-buttons .btn {
        width: 100% !important;
        padding: 14px 20px !important;
        font-size: 1rem !important;
        border-radius: 8px !important;
        text-align: center !important;
        font-weight: 600 !important;
        letter-spacing: 0.5px !important;
    }
    
    .hero-buttons .btn-accent {
        background: var(--accent-color) !important;
        color: var(--text-dark) !important;
        box-shadow: 0 4px 12px rgba(255,180,71,0.3) !important;
    }
    
    .hero-buttons .btn:last-child {
        background: transparent !important;
        border: 2px solid rgba(255,255,255,0.3) !important;
        color: white !important;
        backdrop-filter: blur(5px);
    }
    
    .hero-buttons .btn:last-child:hover {
        background: rgba(255,255,255,0.1) !important;
        border-color: white !important;
    }
}

/* 小屏幕进一步调整 */
@media (max-width: 480px) {
    .hero-buttons {
        max-width: 260px !important;
    }
    
    .hero-buttons .btn {
        padding: 12px 16px !important;
        font-size: 0.95rem !important;
    }
}


/* ===== YolePet 移动端优先底部 - 全新设计 ===== */
.yp-footer {
    background: #ffffff;
    border-top: 1px solid #f0f0f0;
    padding: 20px 0 10px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.yp-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 1. 社交媒体图标区 */
.yp-social {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}

.yp-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #f5f5f5;
    border-radius: 50%;
    color: #555;
    font-size: 20px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.yp-social-icon:hover {
    background: #ffb347;
    color: #333;
    transform: translateY(-2px);
}

/* 2. 核心政策链接 */
.yp-policy {
    text-align: center;
    font-size: 12px;
    color: #999;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.yp-policy a {
    color: #777;
    text-decoration: none;
    margin: 0 2px;
}

.yp-policy a:hover {
    color: #ffb347;
}

.yp-dot {
    color: #ddd;
    margin: 0 4px;
}

/* 3. 折叠面板 */
.yp-collapse {
    margin-bottom: 15px;
}

.yp-collapse-btn {
    width: 100%;
    padding: 12px 0;
    background: none;
    border: none;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.yp-collapse-btn .yp-arrow {
    transition: transform 0.3s ease;
}

.yp-collapse-btn.active .yp-arrow {
    transform: rotate(180deg);
}

.yp-collapse-content {
    display: none;
    padding: 15px 0 5px;
}

.yp-collapse-content.show {
    display: block;
}

/* 两列网格 */
.yp-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.yp-grid-title {
    font-size: 12px;
    font-weight: 600;
    color: #444;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.yp-grid-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.yp-grid-links li {
    margin-bottom: 6px;
}

.yp-grid-links li a {
    color: #777;
    text-decoration: none;
    font-size: 11px;
    display: inline-block;
    padding: 2px 0;
}

.yp-grid-links li a:hover {
    color: #ffb347;
}

/* 4. 版权区 */
.yp-copyright {
    text-align: center;
    font-size: 10px;
    color: #bbb;
    padding-top: 10px;
}

/* ===== PC端样式（屏幕 > 768px）===== */
@media (min-width: 769px) {
    .yp-footer {
        padding: 40px 0 20px;
    }
    
    .yp-container {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;  /* 三列等宽 */
        gap: 40px;
        align-items: start;
    }
    
    /* 社交媒体列 - 左对齐 */
    .yp-social {
        justify-content: flex-start;
        margin: 0;
    }
    
    .yp-social-icon {
        width: 44px;
        height: 44px;
        font-size: 22px;
    }
    
    /* 隐藏移动端的政策行 */
    .yp-policy {
        display: none;
    }
    
    /* 折叠面板在PC端始终展开 */
    .yp-collapse-btn {
        display: none;
    }
    
    .yp-collapse-content {
        display: block !important;
        padding: 0;
    }
    
    /* 标题样式统一 */
    .yp-grid-title {
        font-size: 15px;
        font-weight: 600;
        color: #333;
        margin: 0 0 15px 0;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        position: relative;
        padding-bottom: 8px;
    }
    
    /* 标题下加细线 */
    .yp-grid-title::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 30px;
        height: 2px;
        background: #ffb347;
        opacity: 0.5;
    }
    
    /* 链接列表 */
    .yp-grid-links li {
        margin-bottom: 10px;
    }
    
    .yp-grid-links li a {
        font-size: 14px;
        color: #666;
    }
    
    .yp-grid-links li a:hover {
        color: #ffb347;
        transform: translateX(3px);
    }
    
    /* 版权区 - 跨三列 */
    .yp-copyright {
        grid-column: 1 / -1;
        text-align: center;
        margin-top: 40px;
        padding-top: 20px;
        border-top: 1px solid #f0f0f0;
        font-size: 13px;
        color: #999;
    }
}


/* ===== YolePet 底部 - 最终修复版 ===== */
.yp-footer {
    background: #ffffff;
    border-top: 1px solid #f0f0f0;
    padding: 50px 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    width: 100%;
}

/* PC端容器居中 */
.yp-container {
    max-width: 1200px;
    margin: 0 auto !important;  /* 强制居中 */
    padding: 0 30px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 50px;
}

/* 每一列 */
.yp-col {
    width: 100%;
}

/* 标题 */
.yp-title {
    color: #222;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 20px 0;
    padding: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #ffb347;
    display: inline-block;
}

/* 社交媒体列表 */
.yp-social-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.yp-social-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #555;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
    padding: 6px 0;
    width: 100%;
}

.yp-social-item:hover {
    color: #ffb347;
    transform: translateX(6px);
}

.yp-social-icon {
    font-size: 20px;
    width: 28px;
    text-align: center;
}

/* 链接列表 */
.yp-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.yp-links li {
    margin-bottom: 14px;
}

.yp-links li a {
    color: #555;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
    display: inline-block;
    padding: 4px 0;
}

.yp-links li a:hover {
    color: #ffb347;
    transform: translateX(6px);
}

/* 版权区 */
.yp-copyright {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid #eaeaea;
    font-size: 13px;
    color: #999;
}

/* ===== 移动端修复版 ===== */
@media (max-width: 768px) {
    .yp-footer {
        padding: 30px 0 15px;
    }

    .yp-container {
        grid-template-columns: 1fr !important;  /* 改为单列 */
        gap: 25px;
        padding: 0 20px;
    }

    /* 第一列：社交媒体 - 横排按钮 */
    .yp-col:first-child .yp-social-list {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }

    .yp-col:first-child .yp-social-item {
        width: auto;
        padding: 8px 12px;
        background: #f5f5f5;
        border-radius: 30px;
        gap: 6px;
        font-size: 13px;
    }

    .yp-col:first-child .yp-social-item:hover {
        transform: translateY(-2px);
    }

    /* 第二、三列：Useful Links 和 My Account 左右排列 */
    .yp-col:nth-child(2),
    .yp-col:nth-child(3) {
        grid-column: auto !important;
        display: block !important;
    }

    /* 让第二列和第三列在同一行 */
    .yp-container {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;  /* 重点：两列 */
    }

    /* 第一列占满整行 */
    .yp-col:first-child {
        grid-column: 1 / -1 !important;
    }

    /* 标题调整 */
    .yp-title {
        font-size: 14px;
        margin-bottom: 12px;
    }

    /* 链接列表间距 */
    .yp-links li {
        margin-bottom: 8px;
    }

    .yp-links li a {
        font-size: 13px;
        padding: 3px 0;
    }

    /* 版权区 */
    .yp-copyright {
        grid-column: 1 / -1 !important;
        margin-top: 20px;
        padding-top: 15px;
        font-size: 12px;
    }
}

/* 小屏幕微调 */
@media (max-width: 480px) {
    .yp-col:first-child .yp-social-item {
        padding: 6px 10px;
        font-size: 12px;
    }

    .yp-links li a {
        font-size: 12px;
    }
}


/* ===== YolePet 底部 - 唯一生效版 ===== */
.yp-footer {
    background: #ffffff;
    border-top: 1px solid #f0f0f0;
    padding: 50px 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    width: 100%;
}

.yp-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 50px;
}

.yp-col {
    width: 100%;
}

.yp-title {
    color: #222;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 20px 0;
    padding: 0 0 10px 0;
    text-transform: uppercase;
    border-bottom: 2px solid #ffb347;
    display: inline-block;
}

.yp-social-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.yp-social-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #555;
    text-decoration: none;
    font-size: 14px;
    padding: 6px 0;
}

.yp-social-item:hover {
    color: #ffb347;
    transform: translateX(6px);
}

.yp-social-icon {
    font-size: 20px;
    width: 28px;
    text-align: center;
}

.yp-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.yp-links li {
    margin-bottom: 14px;
}

.yp-links li a {
    color: #555;
    text-decoration: none;
    font-size: 14px;
    display: inline-block;
    padding: 4px 0;
}

.yp-links li a:hover {
    color: #ffb347;
    transform: translateX(6px);
}

.yp-copyright {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid #eaeaea;
    font-size: 13px;
    color: #999;
}

/* ===== 移动端优化 - 解决社交媒体换行留白 ===== */
@media (max-width: 768px) {
    /* 整个footer缩小 */
    .yp-footer {
        padding: 20px 0 8px !important;
    }

    .yp-container {
        padding: 0 12px !important;
        gap: 15px !important;
        grid-template-columns: 1fr 1fr !important;
    }

    /* 第一列：社交媒体 - 两行布局，紧凑 */
    .yp-col:first-child {
        grid-column: 1 / -1;
        margin-bottom: 0;
    }

    .yp-col:first-child .yp-social-list {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
        justify-content: flex-start !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .yp-col:first-child .yp-social-item {
        width: calc(33.333% - 4px) !important;  /* 三列等分 */
        min-width: 0 !important;
        padding: 5px 4px !important;
        font-size: 10px !important;
        gap: 3px !important;
        background: #f5f5f5;
        border-radius: 16px;
        justify-content: center;
        margin: 0 !important;
        box-sizing: border-box;
    }

    .yp-col:first-child .yp-social-icon {
        font-size: 12px !important;
        width: 16px !important;
    }

    /* 标题整体缩小 */
    .yp-title {
        font-size: 11px !important;
        margin: 0 0 6px 0 !important;
        padding: 0 0 4px 0 !important;
        border-bottom-width: 1.5px !important;
        letter-spacing: 0.3px;
    }

    /* 链接列表整体缩小 */
    .yp-links {
        margin: 0 !important;
        padding: 0 !important;
    }

    .yp-links li {
        margin-bottom: 4px !important;
        line-height: 1.2;
    }

    .yp-links li a {
        font-size: 10px !important;
        padding: 2px 0 !important;
        display: block;
    }

    /* 版权区缩小 */
    .yp-copyright {
        margin-top: 12px !important;
        padding-top: 8px !important;
        font-size: 9px !important;
        grid-column: 1 / -1;
        line-height: 1.3;
    }

    /* 第二、三列间距调整 */
    .yp-col:nth-child(2),
    .yp-col:nth-child(3) {
        .yp-links {
            margin-top: 0;
        }
    }
}

/* 极小屏幕额外优化 */
@media (max-width: 380px) {
    .yp-col:first-child .yp-social-item {
        width: calc(50% - 3px) !important;  /* 变成两列 */
        font-size: 9px !important;
        padding: 4px 2px !important;
    }

    .yp-col:first-child .yp-social-icon {
        font-size: 11px !important;
        width: 14px !important;
    }

    .yp-title {
        font-size: 10px !important;
    }

    .yp-links li a {
        font-size: 9px !important;
    }

    .yp-copyright {
        font-size: 8px !important;
    }
}



