/* ============================================
   极米宠物 - PC端前台样式
   色调方案：
   - 头部背景: #FFFFFF
   - 底部背景: #1A1A2E
   - 主色调: #ED720B (橙色)
   - 文字颜色: #222222
   ============================================ */

/* ----- 全局重置 ----- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'Segoe UI', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    color: #222222;
    line-height: 1.6;
    background-color: #fff;
}

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

img {
    max-width: 100%;
    height: auto;
}

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

/* ----- 顶部导航栏 (白色背景 #FFFFFF) ----- */
.pc-header {
    background-color: #FFFFFF;
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 12px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

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

/* Logo区域 */
.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 45px;
    margin-right: 12px;
}

.logo span {
    font-size: 20px;
    font-weight: 700;
    color: #ED720B;
    letter-spacing: 1px;
}

/* 导航菜单 */
.nav-menu {
    display: flex;
    gap: 35px;
}

.nav-menu a {
    text-decoration: none;
    color: #222222;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s;
    position: relative;
    padding-bottom: 5px;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #ED720B;
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #ED720B;
    border-radius: 2px;
}

/* 右侧区域 */
.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* 搜索图标 */
.search-icon {
    cursor: pointer;
    font-size: 18px;
    color: #222;
    transition: color 0.3s;
}

.search-icon:hover {
    color: #ED720B;
}

/* 语言切换 */
.lang-switch a {
    text-decoration: none;
    color: #222222;
    font-size: 14px;
    margin: 0 3px;
    transition: color 0.3s;
}

.lang-switch a:hover,
.lang-switch a.active {
    color: #ED720B;
}

.lang-switch span {
    color: #ccc;
}

/* 搜索弹窗 */
.search-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.search-modal-content {
    background-color: #fff;
    padding: 40px;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    position: relative;
}

.search-modal-content h3 {
    font-size: 24px;
    color: #222;
    margin-bottom: 20px;
}

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

.search-modal-content input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
}

.search-modal-content input:focus {
    outline: none;
    border-color: #ED720B;
}

.search-modal-content button {
    padding: 12px 25px;
    background-color: #ED720B;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

.search-modal-content button:hover {
    background-color: #d16406;
}

.search-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    transition: color 0.3s;
}

.search-modal-close:hover {
    color: #ED720B;
}

/* ===== 页面横幅（统一样式） ===== */
.page-banner {
    background: linear-gradient(135deg, #6C6BCF 0%, #5a59b8 100%);
    padding: 60px 0;
    text-align: center;
    color: #fff;
}

.page-banner h1 {
    font-size: 42px;
    margin-bottom: 15px;
    font-weight: 700;
}

.page-banner p {
    font-size: 18px;
    opacity: 0.9;
}

/* ===== 轮播图区域 ===== */
.hero-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.home-swiper {
    width: 100%;
    height: 500px;
    position: relative;
    margin: 0;
    padding: 0;
}

.home-swiper .swiper-slide {
    position: relative;
    width: 100%;
    height: 100%;
}

/* 使用背景图方式显示轮播图（确保图片显示） */
.home-swiper .swiper-slide .slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* 或者使用 img 标签 */
.home-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    z-index: 2;
    max-width: 550px;
    color: #fff;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
    left: 10%;
    top: 50%;
    transform: translateY(-50%);
}

/* Swiper 导航按钮 */
.home-swiper .swiper-button-next,
.home-swiper .swiper-button-prev {
    color: #fff;
    background-color: rgba(0, 0, 0, 0.3);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    transition: all 0.3s;
    top: 50%;
    transform: translateY(-50%);
}

.home-swiper .swiper-button-next:hover,
.home-swiper .swiper-button-prev:hover {
    background-color: #ED720B;
}

.home-swiper .swiper-pagination-bullet {
    background-color: #fff;
    opacity: 0.6;
}

.home-swiper .swiper-pagination-bullet-active {
    background-color: #ED720B;
    opacity: 1;
}

/* ===== 公共标题样式 ===== */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 34px;
    color: #222222;
    margin-bottom: 15px;
    font-weight: 700;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #ED720B;
    border-radius: 2px;
}

.section-subtitle {
    color: #666;
    font-size: 16px;
    margin-top: 10px;
}

/* ===== 按钮样式 ===== */
.btn {
    display: inline-block;
    background-color: #ED720B;
    color: #fff;
    padding: 12px 32px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 15px;
}

.btn:hover {
    background-color: #d16406;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(237, 114, 11, 0.3);
}

.btn-outline {
    background-color: transparent;
    border: 1.5px solid #ED720B;
    color: #ED720B;
}

.btn-outline:hover {
    background-color: #ED720B;
    color: #fff;
    transform: translateY(-2px);
}

.text-center {
    text-align: center;
    margin-top: 40px;
}

/* ===== 关于我们区域（移除上边距） ===== */
.about {
    padding: 60px 0;
    background-color: #fff;
    margin-top: 0;
}

.about-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 60px;
}

.about-text {
    flex: 1.2;
}

.about-text h3 {
    font-size: 28px;
    color: #222222;
    margin-bottom: 20px;
    font-weight: 700;
}

/* 富文本内容 */
.rich-content {
    color: #222222;
    line-height: 1.8;
    font-size: 15px;
    background: transparent !important;
}

.rich-content p {
    margin-bottom: 15px;
    background: transparent !important;
    color: #222222;
}

.about-stats {
    flex: 1;
}

/* 统计卡片 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    background-color: #F8F9FA;
    padding: 35px 25px;
    border-radius: 16px;
}

.stat-item {
    text-align: center;
}

.stat-item h3 {
    font-size: 42px;
    font-weight: 700;
    color: #ED720B;
    margin-bottom: 8px;
}

.stat-number {
    font-size: 42px;
    font-weight: 700;
    color: #ED720B;
}

.stat-suffix {
    font-size: 42px;
    font-weight: 700;
    color: #ED720B;
}

.stat-item p {
    color: #666;
    font-weight: 500;
    font-size: 14px;
}

/* ===== 优势卖点区域 ===== */
.advantages {
    padding: 80px 0;
    background-color: #F8F9FA;
}

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

.advantage-card {
    background: #fff;
    padding: 35px 20px;
    text-align: center;
    border-radius: 16px;
    transition: all 0.3s;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
    border: 1px solid #eee;
}

.advantage-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    border-color: #ED720B;
}

.advantage-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background-color: #fef5ed;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.advantage-card:hover .advantage-icon {
    background-color: #ED720B;
}

.advantage-icon img {
    width: 45px;
    height: 45px;
}

.advantage-icon i {
    font-size: 30px;
    color: #ED720B;
}

.advantage-card h3 {
    font-size: 18px;
    color: #222222;
    margin-bottom: 10px;
    font-weight: 600;
}

.advantage-card p {
    color: #777;
    font-size: 14px;
    line-height: 1.7;
}

/* ===== 产品中心区域 ===== */
.products {
    padding: 80px 0;
    background-color: #fff;
}

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

.product-category-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
}

.product-category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    border-color: #ED720B;
}

.product-category-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
}

.product-category-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-category-card h3 {
    font-size: 18px;
    color: #222222;
    margin-bottom: 10px;
    font-weight: 600;
}

.product-category-count {
    display: inline-block;
    padding: 5px 15px;
    background-color: #fef5ed;
    color: #ED720B;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s;
}

.product-category-card:hover .product-category-count {
    background-color: #ED720B;
    color: #fff;
}

/* 产品展示卡片 */
.product-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    border-color: #ED720B;
}

.product-image {
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.4s;
}

.product-card:hover .product-image img {
    transform: scale(1.03);
}

.product-info {
    padding: 15px;
}

.product-info h3 {
    font-size: 16px;
    margin-bottom: 8px;
    font-weight: 600;
}

.product-info h3 a {
    color: #222222;
    text-decoration: none;
}

.product-info h3 a:hover {
    color: #ED720B;
}

.product-info p {
    font-size: 13px;
    color: #888;
    line-height: 1.5;
}

.product-link {
    display: block;
    padding: 0 15px 18px;
    color: #ED720B;
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
}

.product-link:hover {
    color: #d16406;
}

/* ===== 新闻资讯区域 ===== */
.news {
    padding: 80px 0;
    background-color: #F8F9FA;
}

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

.news-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
    border: 1px solid #eee;
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    border-color: #ED720B;
}

.news-image {
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.4s;
}

.news-card:hover .news-image img {
    transform: scale(1.03);
}

.news-content {
    padding: 20px;
}

.news-date {
    color: #ED720B;
    font-size: 12px;
    margin-bottom: 10px;
    display: block;
}

.news-content h3 {
    font-size: 18px;
    margin-bottom: 12px;
    font-weight: 600;
}

.news-content h3 a {
    color: #222222;
    text-decoration: none;
}

.news-content h3 a:hover {
    color: #ED720B;
}

.news-content p {
    color: #777;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    color: #ED720B;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
}

.read-more:hover {
    color: #d16406;
}

/* ===== CTA 行动号召区域 ===== */
.cta-section {
    padding: 70px 0;
    background-color: #ED720B;
    color: #fff;
    text-align: center;
}

.cta-section h2 {
    font-size: 34px;
    margin-bottom: 15px;
    font-weight: 700;
}

.cta-section p {
    font-size: 16px;
    margin-bottom: 25px;
    opacity: 0.92;
}

.cta-section .btn {
    background-color: #fff;
    color: #ED720B;
    padding: 14px 40px;
    font-size: 16px;
}

.cta-section .btn:hover {
    background-color: #222222;
    color: #fff;
    transform: translateY(-2px);
}

/* ===== 底部样式 ===== */
footer {
    background-color: #1A1A2E;
    color: #aaa;
    padding: 50px 0 20px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 18px;
    color: #fff;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-col p {
    margin-bottom: 12px;
    font-size: 14px;
    color: #aaa;
    line-height: 1.6;
}

.footer-col p i {
    width: 28px;
    color: #ED720B;
    margin-right: 8px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #aaa;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

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

.footer-qrcode {
    text-align: center;
}

.qrcode-img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: 8px;
    background-color: #fff;
    padding: 8px;
}

.copyright {
    text-align: center;
    border-top: 1px solid #2a2a3e;
    padding-top: 20px;
    font-size: 12px;
    color: #888;
}

.copyright p {
    margin-bottom: 5px;
}

.copyright a {
    color: #888;
    text-decoration: none;
}

.copyright a:hover {
    color: #ED720B;
}

/* ===== 产品列表页筛选栏 ===== */
.filter-section {
    background-color: #F8F9FA;
    padding: 30px 0;
    margin-bottom: 50px;
}

.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 10px 28px;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 40px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #555;
    transition: all 0.3s;
}

.filter-tab:hover,
.filter-tab.active {
    background-color: #ED720B;
    color: #fff;
    border-color: #ED720B;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 50px;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    text-decoration: none;
    color: #555;
    font-size: 14px;
    transition: all 0.3s;
}

.pagination a:hover,
.pagination .current {
    background-color: #ED720B;
    color: #fff;
    border-color: #ED720B;
}

/* ===== 产品详情页样式 ===== */
.product-detail {
    padding: 50px 0;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.product-gallery .main-image {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 15px;
    border: 1px solid #eee;
}

.product-gallery .main-image img {
    width: 100%;
    height: auto;
}

.product-gallery .thumb-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.product-gallery .thumb-list img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.product-gallery .thumb-list img.active,
.product-gallery .thumb-list img:hover {
    border-color: #ED720B;
}

.product-info h1 {
    font-size: 32px;
    color: #222222;
    margin-bottom: 15px;
}

.product-specs {
    background-color: #F8F9FA;
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
}

.spec-item {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

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

.spec-label {
    width: 120px;
    font-weight: 600;
    color: #555;
}

.spec-value {
    flex: 1;
    color: #222222;
}

.product-features {
    margin-top: 20px;
}

.product-features h3 {
    font-size: 20px;
    color: #222222;
    margin-bottom: 15px;
}

/* ===== 联系我们页样式 ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.contact-info {
    background-color: #F8F9FA;
    padding: 35px;
    border-radius: 20px;
}

.contact-info h3 {
    font-size: 24px;
    color: #222222;
    margin-bottom: 20px;
}

.contact-detail p {
    margin: 18px 0;
    color: #555;
}

.contact-detail i {
    width: 35px;
    color: #ED720B;
    font-size: 18px;
}

.contact-form {
    background-color: #fff;
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.02);
    border: 1px solid #eee;
}

.contact-form h3 {
    font-size: 24px;
    color: #222222;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #ED720B;
    box-shadow: 0 0 0 3px rgba(237, 114, 11, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.map-container {
    margin-top: 50px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}