/* 完整的前台样式文件 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

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

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 500;
}

.btn-primary {
    background-color: #d4a574;
    color: white;
    border: 1px solid #d4a574;
}

.btn-primary:hover {
    background-color: #c1915e;
    border-color: #c1915e;
}

.btn-secondary {
    background-color: #8b7355;
    color: white;
    border: 1px solid #8b7355;
}

.btn-secondary:hover {
    background-color: #7a6347;
    border-color: #7a6347;
}

.btn-outline {
    border: 1px solid #d4a574;
    color: #d4a574;
    background: transparent;
}

.btn-outline:hover {
    background-color: #d4a574;
    color: white;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
}

/* 头部样式 */
.header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #d4a574;
    text-decoration: none;
}

.logo img {
    height: 50px;
    width: auto;
}

.nav {
    flex: 1;
}

.nav-menu {
    display: flex;
    list-style: none;
    justify-content: flex-end;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin-left: 30px;
    position: relative;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 10px 0;
    display: block;
}

.nav-menu a:hover {
    color: #d4a574;
}

/* 下拉菜单 */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 4px;
    display: none;
    z-index: 1001;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    margin: 0;
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

.dropdown-menu a {
    padding: 12px 20px;
    color: #333;
    display: block;
}

.dropdown-menu a:hover {
    background: #f8f9fa;
    color: #d4a574;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
}

/* 页面头部 */
.page-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 100px 0 50px;
    margin-top: 70px;
}

.page-header h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 15px;
}

.breadcrumb {
    color: #6c757d;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: #d4a574;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    color: #495057;
}

/* 轮播图样式 */
.banner-section {
    position: relative;
    margin-top: 70px;
    height: 600px;
    overflow: hidden;
}

.banner-slider {
    height: 100%;
    position: relative;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.banner-slide.active {
    opacity: 1;
}

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

.banner-content {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    max-width: 600px;
}

.banner-content h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.banner-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

.slider-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.slider-controls button {
    background: rgba(255,255,255,0.8);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-controls button:hover {
    background: white;
    transform: scale(1.1);
}

/* 分类样式 */
.categories-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #2c3e50;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #d4a574;
    margin: 15px auto 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.category-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    text-align: center;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

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

.category-placeholder {
    height: 200px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d4a574;
}

.category-placeholder i {
    font-size: 48px;
}

.category-card .card-content {
    padding: 30px 20px;
}

.category-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #2c3e50;
}

.category-card p {
    color: #6c757d;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* 产品网格 */
.featured-products {
    padding: 80px 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.product-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #2c3e50;
    line-height: 1.4;
}

.product-category {
    color: #d4a574;
    font-size: 0.9rem;
    margin-bottom: 10px;
    font-weight: 500;
}

.product-price {
    font-size: 1.3rem;
    font-weight: bold;
    color: #e74c3c;
}

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

/* 关于预览 */
.about-preview {
    padding: 80px 0;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('../images/about-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: white;
}

.about-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

/* 关于我们页面 */
.about-section {
    padding: 80px 0;
}

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

.about-text h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: #2c3e50;
}

.about-text h3 {
    font-size: 1.5rem;
    margin: 30px 0 20px;
    color: #d4a574;
}

.about-text p {
    color: #6c757d;
    line-height: 1.8;
    margin-bottom: 20px;
}

.advantages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.advantage-item {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.advantage-item:hover {
    transform: translateY(-5px);
}

.advantage-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.advantage-item h4 {
    margin-bottom: 10px;
    color: #2c3e50;
}

.advantage-item p {
    color: #6c757d;
    font-size: 0.9rem;
    margin: 0;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* 发展历程 */
.history-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.history-section h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 50px;
    color: #2c3e50;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #d4a574;
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-year {
    background: #d4a574;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    min-width: 100px;
    text-align: center;
    z-index: 2;
}

.timeline-content {
    flex: 1;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin: 0 30px;
    position: relative;
}

.timeline-content h4 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.timeline-content p {
    color: #6c757d;
    margin: 0;
}

/* 产品页面 */
.products-page {
    padding: 50px 0 80px;
}

.products-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
}

.products-sidebar {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    margin-bottom: 30px;
}

.sidebar-widget:last-child {
    margin-bottom: 0;
}

.sidebar-widget h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #2c3e50;
    padding-bottom: 10px;
    border-bottom: 2px solid #d4a574;
}

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

.category-list li {
    margin-bottom: 8px;
}

.category-list li:last-child {
    margin-bottom: 0;
}

.category-list a {
    display: block;
    padding: 10px 15px;
    color: #6c757d;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.category-list a:hover,
.category-list li.active a {
    background: #d4a574;
    color: white;
}

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

.search-form input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
}

.search-form button {
    background: #d4a574;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-form button:hover {
    background: #c1915e;
}

.products-main {
    min-width: 0;
}

.search-results {
    background: #e7f3ff;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #3498db;
}

.search-results p {
    margin: 0;
    color: #2c3e50;
}

.no-products {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.no-products h3 {
    margin-bottom: 15px;
    color: #2c3e50;
}

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

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

.product-gallery {
    position: sticky;
    top: 100px;
}

.main-image {
    margin-bottom: 20px;
}

.main-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.thumb-item {
    cursor: pointer;
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.thumb-item:hover {
    transform: scale(1.05);
}

.thumb-item img {
    width: 100%;
    height: 80px;
    object-fit: cover;
}

.product-info h1 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: #2c3e50;
}

.product-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    color: #6c757d;
    font-size: 0.9rem;
}

.product-price {
    font-size: 2rem;
    font-weight: bold;
    color: #e74c3c;
    margin-bottom: 20px;
}

.product-description {
    color: #6c757d;
    line-height: 1.8;
    margin-bottom: 30px;
}

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

/* 产品标签 */
.product-tabs {
    margin-bottom: 50px;
}

.tabs {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-bottom: 30px;
}

.tab-link {
    background: none;
    border: none;
    padding: 15px 30px;
    font-size: 1rem;
    color: #6c757d;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.tab-link:hover,
.tab-link.active {
    color: #d4a574;
    border-bottom-color: #d4a574;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

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

.specs-table th,
.specs-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.specs-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
    width: 30%;
}

.related-products {
    border-top: 1px solid #eee;
    padding-top: 50px;
}

.related-products h2 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: #2c3e50;
    text-align: center;
}

/* 联系页面 */
.contact-section {
    padding: 50px 0 80px;
}

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

.contact-info h2 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: #2c3e50;
}

.contact-item {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.contact-item h3 {
    color: #d4a574;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.contact-item p {
    color: #6c757d;
    margin: 0;
    line-height: 1.6;
}

.contact-form h2 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: #2c3e50;
}

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

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #d4a574;
}

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

.form-group.error input,
.form-group.error textarea {
    border-color: #e74c3c;
}

.error-message {
    color: #e74c3c;
    font-size: 0.875rem;
    margin-top: 5px;
}

.alert {
    padding: 15px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.map-section h2 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: #2c3e50;
    text-align: center;
}

.map-placeholder {
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
}

/* 页脚样式 */
.footer {
    background: #2c3e50;
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    margin-bottom: 20px;
    color: #d4a574;
    font-size: 1.2rem;
}

.footer-section p,
.footer-section a {
    color: #bdc3c7;
    margin-bottom: 10px;
    display: block;
    text-decoration: none;
    line-height: 1.6;
}

.footer-section a:hover {
    color: #d4a574;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    color: #95a5a6;
    font-size: 0.9rem;
}

.footer-bottom a {
    color: #bdc3c7;
    text-decoration: none;
}

.footer-bottom a:hover {
    color: #d4a574;
}

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

.page-link {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #3498db;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.page-link:hover,
.page-link.active {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
    }
    
    .nav {
        order: 3;
        width: 100%;
        margin-top: 15px;
        display: none;
    }
    
    .nav.active {
        display: block;
    }
    
    .nav-menu {
        flex-direction: column;
        width: 100%;
    }
    
    .nav-menu li {
        margin: 0;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .nav-menu a {
        padding: 15px 0;
    }
    
    .dropdown-menu {
        position: static;
        box-shadow: none;
        background: #f8f9fa;
        display: none;
    }
    
    .dropdown:hover .dropdown-menu {
        display: none;
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .banner-section {
        height: 400px;
        margin-top: 60px;
    }
    
    .banner-content {
        left: 5%;
        right: 5%;
        text-align: center;
    }
    
    .banner-content h2 {
        font-size: 2rem;
    }
    
    .banner-content p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    
    .categories-section,
    .featured-products,
    .about-preview,
    .about-section,
    .history-section {
        padding: 50px 0;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        flex-direction: row !important;
        padding-left: 50px;
    }
    
    .timeline-year {
        position: absolute;
        left: 0;
        top: 0;
    }
    
    .timeline-content {
        margin: 0;
    }
    
    .products-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .products-sidebar {
        position: static;
        order: 2;
    }
    
    .products-main {
        order: 1;
    }
    
    .product-detail-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .product-gallery {
        position: static;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .page-header {
        padding: 80px 0 40px;
        margin-top: 60px;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    .banner-section {
        height: 300px;
    }
    
    .banner-content h2 {
        font-size: 1.5rem;
    }
    
    .banner-content .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .slider-controls {
        bottom: 15px;
    }
    
    .slider-controls button {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .advantages {
        grid-template-columns: 1fr;
    }
    
    .gallery-thumbs {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .tabs {
        flex-direction: column;
    }
    
    .tab-link {
        text-align: left;
        border-bottom: 1px solid #eee;
        border-left: 3px solid transparent;
    }
    
    .tab-link.active {
        border-left-color: #d4a574;
    }
}

/* 平板横屏优化 */
@media (min-width: 769px) and (max-width: 1024px) and (orientation: landscape) {
    .banner-section {
        height: 450px;
    }
}

/* 高分辨率屏幕优化 */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* 打印样式 */
@media print {
    .header,
    .footer,
    .banner-section,
    .slider-controls,
    .btn,
    .product-actions,
    .related-products {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
    
    .page-header {
        background: none;
        padding: 20px 0;
        margin-top: 0;
    }
}