/**
 * 宠物用品公司官网 - 优化版
 * 现代、大气、流畅
 */

/* ==================== 重置样式 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #2c3e50;
    background-color: #f8f9fa;
}

a {
    text-decoration: none;
    color: #2c3e50;
    transition: all 0.3s ease;
}

a:hover {
    color: #e67e22;
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================== 滚动条美化 ==================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #e67e22;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #d35400;
}

/* ==================== 按钮样式 ==================== */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    letter-spacing: 1px;
}

.btn-primary {
    background: linear-gradient(135deg, #e67e22, #d35400);
    color: #fff;
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(230, 126, 34, 0.4);
    color: #fff;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid #e67e22;
    color: #e67e22;
}

.btn-outline:hover {
    background-color: #e67e22;
    color: #fff;
    transform: translateY(-3px);
}

.btn-inquiry {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, #e67e22, #d35400);
    color: #fff;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-inquiry:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(230, 126, 34, 0.3);
    color: #fff;
}

/* ==================== 头部导航 ==================== */
.header {
    background-color: #fff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo h1 {
    font-size: 32px;
    background: linear-gradient(135deg, #e67e22, #d35400);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 800;
    letter-spacing: 2px;
}

.nav-menu {
    display: flex;
    gap: 35px;
}

.nav-menu li a {
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
}

.nav-menu li a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #e67e22, #d35400);
    transition: width 0.3s ease;
}

.nav-menu li a:hover:after,
.nav-menu li a.active:after {
    width: 100%;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    color: #e67e22;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* ==================== 首页Banner ==================== */
.hero {
    background: linear-gradient(135deg, #fdf8e7 0%, #fef3e0 100%);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero:before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(230,126,34,0.05) 0%, transparent 70%);
    pointer-events: none;
}

.hero h2 {
    font-size: 52px;
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 700;
    animation: fadeInUp 0.8s ease;
}

.hero p {
    font-size: 18px;
    color: #666;
    margin-bottom: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease 0.1s both;
}

.hero .btn {
    animation: fadeInUp 0.8s ease 0.2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== 产品展示 ==================== */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 50px;
    position: relative;
}

.section-title:after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #e67e22, #d35400);
    margin: 20px auto 0;
    border-radius: 3px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.product-card a {
    display: block;
    text-decoration: none;
}

/* 正方形图片容器 */
.product-image {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    background: linear-gradient(135deg, #f5f5f5, #e8e8e8);
    overflow: hidden;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
    transition: transform 0.4s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

/* 产品标签 */
.badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 12px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    z-index: 2;
    letter-spacing: 1px;
}

.badge.hot {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.badge.new {
    background: linear-gradient(135deg, #27ae60, #1e8449);
}

.product-card h3 {
    padding: 18px 15px 8px;
    font-size: 16px;
    color: #2c3e50;
    font-weight: 600;
}

.product-card .model {
    padding: 0 15px;
    font-size: 12px;
    color: #999;
}

.product-card .desc {
    padding: 5px 15px 15px;
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    height: 65px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* ==================== 分类导航 ==================== */
.category-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 50px;
}

.category-nav a {
    padding: 10px 28px;
    background-color: #fff;
    border-radius: 50px;
    font-size: 14px;
    text-decoration: none;
    color: #555;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.category-nav a:hover,
.category-nav a.active {
    background: linear-gradient(135deg, #e67e22, #d35400);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(230, 126, 34, 0.3);
}

/* ==================== 产品详情 ==================== */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}

/* 左侧图片区域 */
.product-detail-image {
    background: linear-gradient(135deg, #f8f9fa, #fff);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.product-detail-image .main-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    border-radius: 16px;
    overflow: hidden;
}

.product-detail-image .main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
}

.product-detail-image .thumb-list {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.product-detail-image .thumb-list img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    border: 1px solid #eee;
    border-radius: 12px;
    cursor: pointer;
    padding: 8px;
    background: #fff;
    transition: all 0.3s;
}

.product-detail-image .thumb-list img:hover {
    border-color: #e67e22;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 右侧信息区域 */
.product-detail-info h1 {
    font-size: 32px;
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 700;
}

.product-detail-info .model {
    color: #999;
    font-size: 14px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

/* 规格参数表格 */
.spec-section {
    margin-bottom: 30px;
}

.spec-section h3 {
    font-size: 18px;
    color: #e67e22;
    margin-bottom: 15px;
    font-weight: 600;
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
    background: #f8f9fa;
    border-radius: 16px;
    overflow: hidden;
}

.spec-table tr {
    border-bottom: 1px solid #eee;
}

.spec-table tr:last-child {
    border-bottom: none;
}

.spec-table th {
    width: 35%;
    padding: 14px 18px;
    background-color: #f0f0f0;
    text-align: left;
    font-weight: 600;
    color: #555;
    font-size: 14px;
}

.spec-table td {
    padding: 14px 18px;
    color: #666;
    font-size: 14px;
}

/* 产品描述 */
.product-description {
    margin-bottom: 30px;
}

.product-description h3 {
    font-size: 18px;
    color: #e67e22;
    margin-bottom: 15px;
    font-weight: 600;
}

.product-description .desc-content {
    background: #f8f9fa;
    padding: 20px 25px;
    border-radius: 16px;
    line-height: 1.8;
    color: #555;
    font-size: 14px;
}

/* 按钮区域 */
.product-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.product-actions .btn {
    flex: 1;
    text-align: center;
}

/* ==================== 相关产品 ==================== */
.related-products {
    margin-top: 60px;
}

.related-products h2 {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 40px;
    position: relative;
}

.related-products h2:after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #e67e22, #d35400);
    margin: 15px auto 0;
    border-radius: 3px;
}

/* ==================== 企业优势 ==================== */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.advantage-item {
    background: #fff;
    padding: 40px 20px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.advantage-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.advantage-item i {
    font-size: 48px;
    background: linear-gradient(135deg, #e67e22, #d35400);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 20px;
    display: inline-block;
}

.advantage-item h3 {
    font-size: 18px;
    margin-bottom: 12px;
    color: #2c3e50;
}

.advantage-item p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* ==================== 关于我们 ==================== */
.about-content {
    padding: 20px 0;
    max-width: 900px;
    margin: 0 auto;
}

.about-content h2 {
    margin: 40px 0 20px;
    color: #e67e22;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 12px;
    font-size: 24px;
}

.about-content h2:first-child {
    margin-top: 0;
}

.about-content p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: #555;
}

.about-content ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.about-content li {
    margin-bottom: 10px;
    line-height: 1.6;
    color: #555;
}

/* ==================== 生产实力 ==================== */
.factory-content {
    padding: 20px 0;
    max-width: 1000px;
    margin: 0 auto;
}

.factory-content h2 {
    margin: 40px 0 20px;
    color: #e67e22;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 12px;
    font-size: 24px;
}

.factory-content h2:first-child {
    margin-top: 0;
}

.factory-content p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: #555;
}

.factory-content ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.factory-content li {
    margin-bottom: 10px;
    line-height: 1.6;
    color: #555;
}

.factory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.factory-item {
    text-align: center;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    padding: 20px;
}

.factory-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.factory-item img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    border-radius: 12px;
}

.factory-item p {
    margin-top: 15px;
    font-weight: 600;
    color: #555;
}

/* ==================== 新闻列表 ==================== */
.news-list {
    max-width: 800px;
    margin: 0 auto;
}

.news-item {
    background: #fff;
    padding: 25px 30px;
    margin-bottom: 20px;
    border-radius: 16px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.news-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.news-item h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.news-item h3 a {
    color: #2c3e50;
}

.news-item h3 a:hover {
    color: #e67e22;
}

.news-item .news-meta {
    font-size: 13px;
    color: #999;
    margin-bottom: 12px;
}

.news-item .news-meta span {
    margin-right: 20px;
}

.news-item .news-meta i {
    margin-right: 5px;
}

.news-item p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 15px;
}

.news-item a {
    color: #e67e22;
    font-weight: 500;
}

/* ==================== 新闻详情 ==================== */
.news-detail {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.news-detail h1 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #2c3e50;
}

.news-detail .news-meta {
    font-size: 13px;
    color: #999;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.news-detail .news-meta span {
    margin-right: 20px;
}

.news-detail .news-meta i {
    margin-right: 5px;
}

.news-detail .news-content {
    line-height: 1.9;
    color: #555;
}

.news-detail .news-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 20px 0;
}

/* ==================== 联系我们 ==================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin: 40px 0;
}

.contact-info {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.contact-info h3 {
    margin-bottom: 25px;
    color: #e67e22;
    font-size: 22px;
}

.contact-info p {
    margin-bottom: 18px;
    color: #555;
}

.contact-info i {
    width: 30px;
    color: #e67e22;
}

.contact-form {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 20px;
    border: 1px solid #eee;
    border-radius: 12px;
    font-size: 14px;
    transition: all 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: #e67e22;
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.1);
}

.contact-form textarea {
    height: 130px;
    resize: vertical;
}

/* ==================== 地图容器 ==================== */
.map-container {
    margin-top: 50px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.map-container h3 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 22px;
    color: #2c3e50;
}

#container {
    width: 100%;
    height: 400px;
}

.nav-buttons {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: linear-gradient(135deg, #e67e22, #d35400);
    color: #fff;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 14px;
}

.nav-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(230, 126, 34, 0.3);
    color: #fff;
}

.nav-btn.secondary {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.nav-btn.secondary:hover {
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.3);
}

/* ==================== 底部 ==================== */
.footer {
    background: linear-gradient(135deg, #1a252f, #2c3e50);
    color: #fff;
    padding: 60px 0 30px;
    margin-top: 80px;
}

.footer-inner {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 50px;
    margin-bottom: 40px;
}

.footer-info h3,
.footer-contact h4,
.footer-links h4 {
    margin-bottom: 20px;
    color: #e67e22;
    font-size: 18px;
}

.footer-info p {
    color: #ccc;
    line-height: 1.7;
    margin-bottom: 10px;
}

.footer-contact p {
    margin-bottom: 12px;
    color: #ccc;
    font-size: 14px;
}

.footer-contact i {
    width: 28px;
    color: #e67e22;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ccc;
    transition: all 0.3s;
}

.footer-links a:hover {
    color: #e67e22;
    padding-left: 5px;
}

.footer-copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13px;
    color: #999;
}

.footer-copyright a {
    color: #e67e22;
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 992px) {
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: #fff;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        padding: 30px 0;
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .menu-toggle {
        display: flex;
    }

    .hero {
        padding: 60px 0;
    }

    .hero h2 {
        font-size: 32px;
    }

    .hero p {
        font-size: 16px;
    }

    .section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 28px;
        margin-bottom: 35px;
    }

    .product-detail {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .advantages-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    
    .advantage-item {
        padding: 25px 15px;
    }
    
    .advantage-item i {
        font-size: 36px;
    }
    
    .spec-table th,
    .spec-table td {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .news-detail {
        padding: 25px;
    }
    
    .news-detail h1 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .factory-grid {
        grid-template-columns: 1fr;
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
    }
    
    .product-image img {
        padding: 15px;
    }
    
    .contact-info,
    .contact-form {
        padding: 25px;
    }
    
    .nav-buttons {
        gap: 10px;
    }
    
    .nav-btn {
        padding: 8px 16px;
        font-size: 12px;
    }
}