/*
Theme Name: 汉锐户外主题
Theme URI: https://www.fshrzy.com
Description: 完全复制 fshrzy.com 外观的自定义主题
Version: 1.0.0
Author: Custom
Author URI: 
Tags: custom, business, outdoor, e-commerce
Text Domain: hanrui-theme
*/

/* ==============================
   基础样式
   ============================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0066cc;
    --secondary-color: #ff6600;
    --dark-color: #333333;
    --light-color: #f5f5f5;
    --white-color: #ffffff;
    --gray-color: #666666;
    --border-color: #e0e0e0;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

body {
    font-family: "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--white-color);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 1200px;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==============================
   顶部导航栏
   ============================== */
.site-header {
    background-color: var(--white-color);
    box-shadow: 0 2px 10px var(--shadow-color);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-top {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 10px 0;
    font-size: 14px;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-main {
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    font-size: 28px;
    font-weight: bold;
    color: var(--primary-color);
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.main-navigation a {
    color: var(--dark-color);
    font-size: 16px;
    font-weight: 500;
    padding: 10px 0;
    border-bottom: 2px solid transparent;
}

.main-navigation a:hover,
.main-navigation a.current-menu-item {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* ==============================
   Hero 区域
   ============================== */
.hero-section {
    margin-top: 120px;
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, #0099ff 100%);
    color: var(--white-color);
    text-align: center;
}

.hero-section h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: bold;
}

.hero-section p {
    font-size: 24px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-section .btn {
    display: inline-block;
    padding: 15px 40px;
    background-color: var(--secondary-color);
    color: var(--white-color);
    font-size: 18px;
    font-weight: bold;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.hero-section .btn:hover {
    background-color: #ff5500;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 102, 0, 0.3);
}

/* ==============================
   产品展示
   ============================== */
.products-section {
    padding: 80px 0;
    background-color: var(--light-color);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 36px;
    color: var(--dark-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 15px auto 0;
}

.section-title p {
    font-size: 18px;
    color: var(--gray-color);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.product-card {
    background-color: var(--white-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px var(--shadow-color);
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.product-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.product-card-content {
    padding: 25px;
}

.product-card h3 {
    font-size: 22px;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.product-card p {
    font-size: 16px;
    color: var(--gray-color);
    line-height: 1.6;
    margin-bottom: 20px;
}

.product-card .btn {
    display: inline-block;
    padding: 10px 25px;
    background-color: var(--primary-color);
    color: var(--white-color);
    border-radius: 5px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.product-card .btn:hover {
    background-color: var(--secondary-color);
}

/* ==============================
   关于我们
   ============================== */
.about-section {
    padding: 80px 0;
    background-color: var(--white-color);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    font-size: 36px;
    color: var(--dark-color);
    margin-bottom: 30px;
}

.about-text p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--gray-color);
    margin-bottom: 20px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
    padding: 30px;
    background-color: var(--light-color);
    border-radius: 10px;
}

.stat-item h3 {
    font-size: 48px;
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 10px;
}

.stat-item p {
    font-size: 16px;
    color: var(--gray-color);
    margin: 0;
}

.about-image img {
    border-radius: 10px;
    box-shadow: 0 10px 30px var(--shadow-color);
}

/* ==============================
   优势展示
   ============================== */
.features-section {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: var(--white-color);
}

.features-section .section-title h2 {
    color: var(--white-color);
}

.features-section .section-title h2::after {
    background-color: var(--white-color);
}

.features-section .section-title p {
    color: rgba(255, 255, 255, 0.8);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.feature-item {
    text-align: center;
    padding: 40px 20px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.feature-item h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.feature-item p {
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.9;
}

/* ==============================
   联系我们
   ============================== */
.contact-section {
    padding: 80px 0;
    background-color: var(--light-color);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h3 {
    font-size: 28px;
    color: var(--dark-color);
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.contact-item .icon {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    font-size: 20px;
}

.contact-item .text h4 {
    font-size: 18px;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.contact-item .text p {
    font-size: 16px;
    color: var(--gray-color);
}

.contact-form {
    background-color: var(--white-color);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px var(--shadow-color);
}

.contact-form h3 {
    font-size: 28px;
    color: var(--dark-color);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-size: 16px;
    color: var(--dark-color);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.form-group .btn {
    width: 100%;
    padding: 15px;
    background-color: var(--primary-color);
    color: var(--white-color);
    border: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-group .btn:hover {
    background-color: var(--secondary-color);
}

/* ==============================
   页脚
   ============================== */
.site-footer {
    background-color: var(--dark-color);
    color: var(--white-color);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--white-color);
}

.footer-column p {
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 15px;
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.footer-column ul li a:hover {
    color: var(--white-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

/* ==============================
   响应式设计
   ============================== */
@media (max-width: 1024px) {
    .container {
        width: 960px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        width: 100%;
        padding: 0 15px;
    }
    
    .hero-section h1 {
        font-size: 36px;
    }
    
    .hero-section p {
        font-size: 18px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .main-navigation ul {
        gap: 15px;
    }
    
    .main-navigation a {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .hero-section h1 {
        font-size: 28px;
    }
    
    .hero-section p {
        font-size: 16px;
    }
    
    .section-title h2 {
        font-size: 28px;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
}

/* ==============================
   动画效果
   ============================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

/* ==============================
   工具类
   ============================== */
.text-center {
    text-align: center;
}

.text-primary {
    color: var(--primary-color);
}

.text-secondary {
    color: var(--secondary-color);
}

.mt-20 {
    margin-top: 20px;
}

.mt-40 {
    margin-top: 40px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-40 {
    margin-bottom: 40px;
}

.p-20 {
    padding: 20px;
}

.p-40 {
    padding: 40px;
}
