/*
Theme Name: Textile Export Pro
Theme URI: https://example.com/textile-export
Author: 苹果小龙
Author URI: https://example.com
Description: 专业纺织品出口企业 WordPress 主题 - 双语支持（中英），符合国际用户访问习惯，适用于毛巾、浴巾、纺织品生产企业
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: textile-export
Tags: business, ecommerce, responsive, bilingual
*/

/* ========================================
   基础样式
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c5282;
    --secondary-color: #38a169;
    --accent-color: #ed8936;
    --text-dark: #1a202c;
    --text-light: #718096;
    --bg-light: #f7fafc;
    --white: #ffffff;
    --border-color: #e2e8f0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

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

a:hover {
    color: var(--primary-color);
}

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

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

/* ========================================
   顶部栏
   ======================================== */
.top-bar {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 10px 0;
    font-size: 14px;
}

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

.top-info {
    display: flex;
    gap: 20px;
}

.top-info span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.lang-switch {
    display: flex;
    gap: 10px;
}

.lang-switch a {
    color: var(--white);
    padding: 2px 8px;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.lang-switch a:hover {
    background-color: rgba(255,255,255,0.2);
}

.lang-switch a.active {
    background-color: var(--white);
    color: var(--primary-color);
}

/* ========================================
   主导航
   ======================================== */
.main-header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
}

.logo a {
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    font-weight: 500;
    padding: 10px 0;
    display: block;
    position: relative;
}

.nav-menu a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-menu a:hover:after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--primary-color);
}

/* 移动端菜单 */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 100%;
    background: var(--white);
    padding: 20px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.mobile-menu-overlay.active .mobile-menu {
    transform: translateX(0);
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.mobile-nav-menu {
    list-style: none;
}

.mobile-nav-menu li {
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav-menu a {
    padding: 15px 0;
    display: block;
    font-weight: 500;
}

/* ========================================
   按钮样式
   ======================================== */
.btn-primary {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: #1a365d;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(44, 82, 130, 0.4);
}

.btn-secondary {
    display: inline-block;
    background: var(--white);
    color: var(--primary-color);
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
    cursor: pointer;
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-large {
    padding: 15px 40px;
    font-size: 16px;
}

/* ========================================
   Hero 横幅
   ======================================== */
.hero-section {
    position: relative;
    height: 600px;
    background: linear-gradient(135deg, rgba(44,82,130,0.9) 0%, rgba(26,54,93,0.9) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
}

.hero-content {
    z-index: 2;
    max-width: 800px;
    padding: 20px;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-btn {
    display: inline-block;
    background: var(--accent-color);
    color: var(--white);
    padding: 15px 40px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
}

.hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(237, 137, 54, 0.4);
    color: var(--white);
}

/* ========================================
   页面标题栏
   ======================================== */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a365d 100%);
    padding: 80px 0 40px;
    text-align: center;
    color: var(--white);
}

.page-header h1 {
    font-size: 42px;
    margin-bottom: 15px;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 10px;
    align-items: center;
    font-size: 14px;
    opacity: 0.9;
}

.breadcrumb a {
    color: var(--white);
}

.breadcrumb a:hover {
    color: var(--accent-color);
}

.breadcrumb span {
    color: var(--accent-color);
}

/* ========================================
   产品分类
   ======================================== */
.products-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.section-title p {
    color: var(--text-light);
    font-size: 18px;
}

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

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

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

.product-image {
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 60px;
    position: relative;
    overflow: hidden;
}

.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;
}

.btn-view {
    background: var(--white);
    color: var(--primary-color);
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-view:hover {
    background: var(--accent-color);
    color: var(--white);
}

.product-info {
    padding: 25px;
}

.product-info h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.product-info p {
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.8;
}

.product-link {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.product-link:hover {
    gap: 10px;
}

.section-more {
    text-align: center;
    margin-top: 50px;
}

.btn-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary-color);
    color: var(--white);
    padding: 15px 40px;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-more:hover {
    background: #1a365d;
    gap: 15px;
}

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

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

.about-image {
    height: 400px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 80px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.about-text h2 {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.8;
}

/* ========================================
   资质证书
   ======================================== */
.certificates-section {
    padding: 80px 0;
    background: var(--bg-light);
}

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

.certificate-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

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

.certificate-icon {
    font-size: 50px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.certificate-card h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 18px;
}

.certificate-card p {
    color: var(--text-light);
    font-size: 14px;
}

/* ========================================
   合作伙伴
   ======================================== */
.partners-section {
    padding: 60px 0;
}

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

.partner-logo {
    height: 100px;
    background: var(--bg-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 40px;
    transition: all 0.3s ease;
}

.partner-logo:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* ========================================
   联系 CTA
   ======================================== */
.contact-cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a365d 100%);
}

.contact-cta {
    text-align: center;
    color: var(--white);
}

.contact-cta h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.contact-cta p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* ========================================
   页脚
   ======================================== */
.site-footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 60px 0 30px;
}

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

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-section p,
.footer-section a {
    color: #a0aec0;
    line-height: 2;
}

.footer-section a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid #4a5568;
    padding-top: 30px;
    text-align: center;
    color: #a0aec0;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a0aec0;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    color: var(--white);
}

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

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

.products-sidebar {
    background: var(--white);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.sidebar-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-list {
    list-style: none;
    margin-bottom: 30px;
}

.category-list li {
    border-bottom: 1px solid var(--border-color);
}

.category-list li:last-child {
    border-bottom: none;
}

.category-list a {
    padding: 12px 0;
    display: block;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.category-list li.active a,
.category-list a:hover {
    color: var(--primary-color);
    padding-left: 10px;
}

.sidebar-contact {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.sidebar-contact h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.sidebar-contact p {
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 14px;
}

.btn-sidebar {
    background: var(--primary-color);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 14px;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-sidebar:hover {
    background: #1a365d;
}

.products-main {
    background: var(--white);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.products-filter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.filter-sort {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-sort select {
    padding: 8px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
}

.filter-view {
    display: flex;
    gap: 10px;
}

.filter-view button {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.filter-view button.active,
.filter-view button:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination a {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.pagination a.active,
.pagination a:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* ========================================
   产品详情页面
   ======================================== */
.product-detail-section {
    padding: 60px 0;
}

.product-detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

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

.main-image {
    height: 450px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 80px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.thumbnail-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.thumbnail {
    height: 80px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.thumbnail:hover,
.thumbnail.active {
    opacity: 1;
    transform: scale(1.05);
}

.product-info-detail h1 {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.product-model {
    color: var(--text-light);
    margin-bottom: 20px;
}

.product-price {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.price-label {
    font-weight: 600;
    color: var(--text-dark);
}

.price-value {
    font-size: 24px;
    color: var(--accent-color);
    font-weight: 700;
    margin-left: 10px;
}

.price-note {
    color: var(--text-light);
    font-size: 14px;
    margin-left: 10px;
}

.product-description,
.product-specs {
    margin-bottom: 25px;
}

.product-description h3,
.product-specs h3 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.product-description p {
    color: var(--text-light);
    line-height: 1.8;
}

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

.specs-table tr {
    border-bottom: 1px solid var(--border-color);
}

.specs-table tr:last-child {
    border-bottom: none;
}

.specs-table td {
    padding: 12px 0;
}

.specs-table td:first-child {
    font-weight: 600;
    color: var(--text-dark);
    width: 150px;
}

.specs-table td:last-child {
    color: var(--text-light);
}

.product-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.product-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-dark);
}

.feature-item i {
    color: var(--secondary-color);
}

.related-products-section {
    padding: 60px 0;
    background: var(--bg-light);
}

/* ========================================
   联系我们页面
   ======================================== */
.contact-page-section {
    padding: 60px 0;
}

.contact-page-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
}

.contact-info-side h2,
.contact-form-side h2 {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.contact-intro,
.form-intro {
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.8;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    gap: 20px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 18px;
    flex-shrink: 0;
}

.contact-detail h4 {
    font-size: 16px;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.contact-detail p {
    color: var(--text-light);
    line-height: 1.6;
}

.social-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.social-section h4 {
    font-size: 16px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary-color);
    color: var(--white);
}

.contact-form {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 10px;
}

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

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

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

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

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.checkbox-label input {
    width: auto;
}

.btn-submit {
    width: 100%;
    margin-top: 10px;
}

.map-section {
    padding: 60px 0 40px;
    background: var(--bg-light);
}

.map-wrapper {
    margin-top: 30px;
}

.map-placeholder {
    height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 60px;
}

.map-placeholder p {
    font-size: 18px;
    margin-top: 15px;
}

.map-note {
    font-size: 14px !important;
    opacity: 0.8;
}

.faq-section {
    padding: 60px 0;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden;
}

.faq-question {
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: var(--bg-light);
}

.faq-question h4 {
    font-size: 16px;
    color: var(--text-dark);
}

.faq-question i {
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 25px 20px;
    max-height: 500px;
}

.faq-answer p {
    color: var(--text-light);
    line-height: 1.8;
}

/* ========================================
   新闻页面
   ======================================== */
.news-page-section {
    padding: 60px 0;
}

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

.news-filter {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background: var(--white);
    color: var(--text-dark);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.news-card {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

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

.news-image {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 60px;
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.news-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0,0,0,0.7);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.news-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 14px;
    color: var(--text-light);
}

.news-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-category-tag {
    background: var(--bg-light);
    padding: 3px 10px;
    border-radius: 3px;
    color: var(--primary-color);
    font-weight: 600;
}

.news-title {
    font-size: 22px;
    margin-bottom: 15px;
    line-height: 1.4;
}

.news-title a {
    color: var(--text-dark);
}

.news-title a:hover {
    color: var(--primary-color);
}

.news-excerpt {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    align-self: flex-start;
}

.read-more:hover {
    gap: 10px;
}

/* 新闻详情页 */
.news-detail-section {
    padding: 60px 0;
}

.news-detail-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
}

.news-detail-main {
    background: var(--white);
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.article-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

.article-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 14px;
    color: var(--text-light);
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-title {
    font-size: 32px;
    color: var(--primary-color);
    line-height: 1.4;
}

.article-featured-image {
    margin-bottom: 30px;
}

.article-content {
    line-height: 1.8;
    color: var(--text-dark);
}

.article-content h2 {
    font-size: 24px;
    color: var(--primary-color);
    margin: 30px 0 15px;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content ul {
    margin: 20px 0;
    padding-left: 30px;
}

.article-content li {
    margin-bottom: 10px;
}

.article-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 20px 25px;
    margin: 30px 0;
    background: var(--bg-light);
    border-radius: 0 5px 5px 0;
    font-style: italic;
}

.article-content blockquote p {
    margin-bottom: 0;
    color: var(--text-light);
}

.article-tags {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.article-tags strong {
    color: var(--text-dark);
    margin-right: 10px;
}

.article-tags a {
    display: inline-block;
    background: var(--bg-light);
    color: var(--text-dark);
    padding: 5px 15px;
    border-radius: 20px;
    margin: 5px 5px 5px 0;
    font-size: 14px;
    transition: all 0.3s ease;
}

.article-tags a:hover {
    background: var(--primary-color);
    color: var(--white);
}

.article-share {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 15px;
}

.article-share span {
    font-weight: 600;
    color: var(--text-dark);
}

.share-btn {
    width: 40px;
    height: 40px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.share-btn:hover {
    background: var(--primary-color);
    color: var(--white);
}

.article-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid var(--border-color);
}

.nav-prev,
.nav-next {
    padding: 20px;
    background: var(--bg-light);
    border-radius: 8px;
}

.nav-label {
    display: block;
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.nav-prev a,
.nav-next a {
    display: block;
    color: var(--text-dark);
    font-weight: 600;
    line-height: 1.4;
}

.nav-prev a:hover,
.nav-next a:hover {
    color: var(--primary-color);
}

.related-news {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 2px solid var(--border-color);
}

.related-news h3 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 25px;
}

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

.related-news-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.related-news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.related-news-image {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 40px;
}

.related-news-info {
    padding: 15px;
}

.related-news-info h4 {
    font-size: 16px;
    margin-bottom: 8px;
}

.related-news-info h4 a {
    color: var(--text-dark);
}

.related-news-info h4 a:hover {
    color: var(--primary-color);
}

.related-news-info p {
    font-size: 14px;
    color: var(--text-light);
}

/* 侧边栏小工具 */
.sidebar-widget {
    background: var(--white);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    margin-bottom: 25px;
}

.widget-title {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

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

.search-form input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 14px;
}

.search-form button {
    padding: 10px 15px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

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

.category-list {
    list-style: none;
}

.category-list li {
    border-bottom: 1px solid var(--border-color);
}

.category-list li:last-child {
    border-bottom: none;
}

.category-list a {
    padding: 12px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.category-list a:hover {
    color: var(--primary-color);
    padding-left: 10px;
}

.category-list .count {
    background: var(--bg-light);
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 12px;
    color: var(--text-light);
}

.recent-posts {
    list-style: none;
}

.recent-posts li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.recent-posts li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.recent-posts a {
    display: block;
}

.post-title {
    display: block;
    color: var(--text-dark);
    font-weight: 500;
    margin-bottom: 5px;
    line-height: 1.4;
}

.post-title:hover {
    color: var(--primary-color);
}

.post-date {
    font-size: 13px;
    color: var(--text-light);
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-cloud a {
    background: var(--bg-light);
    color: var(--text-dark);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    transition: all 0.3s ease;
}

.tag-cloud a:hover {
    background: var(--primary-color);
    color: var(--white);
}

.sidebar-cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a365d 100%);
    color: var(--white);
    text-align: center;
}

.sidebar-cta h4 {
    color: var(--white);
}

.sidebar-cta p {
    color: rgba(255,255,255,0.8);
    margin: 10px 0 15px;
}

.btn-sidebar {
    background: var(--white);
    color: var(--primary-color);
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-sidebar:hover {
    background: var(--accent-color);
    color: var(--white);
}

/* ========================================
   响应式设计
   ======================================== */
@media (max-width: 992px) {
    .products-layout,
    .product-detail-layout,
    .contact-page-layout {
        grid-template-columns: 1fr;
    }
    
    .products-sidebar {
        position: static;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero-content h1 {
        font-size: 32px;
    }
    
    .top-bar .container {
        flex-direction: column;
        gap: 10px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .product-actions {
        flex-direction: column;
    }
}
