/*
Theme Name: 舒适拖鞋
Theme URI: https://github.com/openclaw/flipflop-theme
Author: 小虾米
Author URI: https://github.com/openclaw
Description: 专业拖鞋批发 WordPress 主题 - 开箱即用，包含完整演示数据。支持产品展示、分类、询盘功能。
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.4
Requires PHP: 7.4
License: GPL v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: flipflop
Tags: e-commerce, b2b, wholesale, footwear, slippers, flip-flops, product-catalog
*/

/* ===================================
   CSS Reset & Variables
   =================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary: #0891b2;
    --primary-dark: #0e7490;
    --secondary: #f97316;
    --text: #1f2937;
    --text-light: #6b7280;
    --border: #e5e7eb;
    --bg: #f9fafb;
    --white: #ffffff;
    --success: #10b981;
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
}

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

a { color: var(--primary); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--secondary); }
img { max-width: 100%; height: auto; }
ul, ol { list-style: none; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.container-fluid { max-width: 100%; }

/* ===================================
   Header
   =================================== */
.site-header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-bar {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 8px 0;
    font-size: 13px;
}

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

.header-contact span { margin-right: 20px; }
.header-contact i { margin-right: 5px; }

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

.site-logo { flex-shrink: 0; }
.site-logo img { max-height: 55px; width: auto; }
.site-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.main-nav ul { display: flex; gap: 5px; }
.main-nav a {
    display: block;
    padding: 12px 18px;
    font-weight: 500;
    color: var(--text);
    border-radius: 6px;
    transition: all 0.3s;
}
.main-nav a:hover, .main-nav .current-menu-item a {
    background: var(--bg);
    color: var(--primary);
}

/* Menu Dropdown */
.main-nav li.menu-item-has-children {
    position: relative;
}

.main-nav li.menu-item-has-children > a {
    display: flex;
    align-items: center;
    gap: 6px;
}

.main-nav .dropdown-arrow {
    font-size: 10px;
    opacity: 0.6;
    transition: transform 0.3s;
}

.main-nav li.menu-item-has-children:hover > a .dropdown-arrow {
    transform: rotate(180deg);
}

.main-nav li.menu-item-has-children .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    padding: 12px 16px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
    z-index: 1000;
    list-style: none;
    margin: 0;
    display: flex;
    flex-direction: row;
    gap: 12px;
    flex-wrap: wrap;
    max-width: 400px;
    white-space: nowrap;
}

.main-nav li.menu-item-has-children:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-nav li.menu-item-has-children .sub-menu li {
    margin: 0;
    display: inline-block;
}

.main-nav li.menu-item-has-children .sub-menu a {
    padding: 8px 12px;
    font-size: 14px;
    border: none;
    border-radius: 6px;
    display: inline-block;
}

.main-nav li.menu-item-has-children .sub-menu a:last-child {
    border-bottom: none;
}

.main-nav li.menu-item-has-children .sub-menu a:hover {
    background: var(--bg);
    color: var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 14px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text);
    font-size: 11px;
    border-radius: 6px;
    transition: all 0.3s;
}
.action-btn:hover { background: var(--bg); color: var(--primary); }
.action-btn .icon { font-size: 20px; margin-bottom: 2px; }

/* Dropdown */
.dropdown { position: relative; }
.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
    z-index: 100;
}
.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-menu a {
    display: block;
    padding: 10px 15px;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}
.dropdown-menu a:last-child { border-bottom: none; }
.dropdown-menu a:hover { background: var(--bg); }

/* Search Overlay */
.search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}
.search-overlay.active { opacity: 1; visibility: visible; }
.search-overlay-inner {
    position: relative;
    width: 100%;
    max-width: 700px;
    padding: 0 20px;
}
.search-close {
    position: absolute;
    top: -55px;
    right: 0;
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 36px;
    cursor: pointer;
}
.search-form-overlay {
    display: flex;
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
}
.search-form-overlay input {
    flex: 1;
    padding: 25px 30px;
    border: none;
    font-size: 18px;
    outline: none;
}
.search-form-overlay button {
    padding: 25px 40px;
    background: var(--primary);
    color: var(--white);
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}
.search-form-overlay button:hover { background: var(--primary-dark); }

/* ===================================
   Hero Section
   =================================== */
.hero-section {
    position: relative;
    height: 550px;
    background: linear-gradient(135deg, #0891b2 0%, #0e7490 50%, #155e75 100%);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-section .container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content { color: var(--white); }
.hero-content h1 {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -1px;
}
.hero-content .subtitle {
    font-size: 20px;
    opacity: 0.9;
    margin-bottom: 30px;
    line-height: 1.6;
}
.hero-buttons { display: flex; gap: 15px; }

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}
.btn-primary {
    background: var(--secondary);
    color: var(--white);
}
.btn-primary:hover {
    background: #ea580c;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}
.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}
.btn-outline:hover {
    background: var(--white);
    color: var(--primary);
}

.hero-image {
    position: relative;
    text-align: center;
}
.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.3);
}

/* ===================================
   Features Section
   =================================== */
.features-section { padding: 80px 0; background: var(--white); }
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
}
.section-header p {
    font-size: 17px;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
.feature-card {
    text-align: center;
    padding: 30px 20px;
    border-radius: 12px;
    background: var(--bg);
    transition: all 0.3s;
}
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}
.feature-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text);
}
.feature-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

/* ===================================
   Categories Section
   =================================== */
.categories-section { padding: 80px 0; background: var(--bg); }
.categories-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
}
.category-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    text-align: center;
}
.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}
.category-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}
.category-card h3 {
    padding: 18px;
    font-size: 16px;
    font-weight: 600;
}

/* ===================================
   Products Section
   =================================== */
.products-section { padding: 80px 0; }
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}
.product-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
}
.product-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}
.product-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: #f3f4f6;
}
.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.product-card:hover .product-image img { transform: scale(1.08); }
.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--secondary);
    color: var(--white);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}
.product-info { padding: 20px; }
.product-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text);
}
.product-specs {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 15px;
}
.product-specs li {
    padding: 4px 0;
    border-bottom: 1px dashed var(--border);
}
.product-specs li:last-child { border-bottom: none; }
.product-footer {
    padding: 15px 20px;
    border-top: 1px solid var(--border);
    text-align: center;
}
.btn-sm {
    padding: 10px 24px;
    font-size: 13px;
}

/* ===================================
   About Section
   =================================== */
.about-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.about-image img {
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}
.about-content h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text);
}
.about-content p {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 20px;
}
.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}
.stat-item {
    text-align: center;
    padding: 20px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
}
.stat-number {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
    display: block;
}
.stat-label {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 5px;
    display: block;
}

/* ===================================
   Contact Section
   =================================== */
.contact-section { padding: 80px 0; }
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
}
.contact-info-box {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 40px;
    border-radius: 16px;
}
.contact-info-box h3 {
    font-size: 24px;
    margin-bottom: 25px;
}
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}
.contact-item .icon {
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.contact-form-box {
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}
.contact-form-box h3 {
    font-size: 24px;
    margin-bottom: 25px;
    color: var(--text);
}
.form-group { margin-bottom: 20px; }
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.3s;
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(8,145,178,0.1);
}
textarea.form-control {
    min-height: 140px;
    resize: vertical;
}

/* ===================================
   Footer
   =================================== */
.site-footer {
    background: #1f2937;
    color: #9ca3af;
    padding: 60px 0 25px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-about h4 {
    color: var(--white);
    font-size: 20px;
    margin-bottom: 18px;
}
.footer-about p {
    line-height: 1.8;
    margin-bottom: 20px;
}
.footer-social { display: flex; gap: 12px; }
.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 18px;
    transition: all 0.3s;
}
.footer-social a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}
.footer-links h4, .footer-contact h4 {
    color: var(--white);
    font-size: 16px;
    margin-bottom: 20px;
}
.footer-links ul li { margin-bottom: 12px; }
.footer-links a {
    color: #9ca3af;
    transition: color 0.3s;
}
.footer-links a:hover { color: var(--white); }
.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
}
.footer-contact .icon { font-size: 18px; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 25px;
    text-align: center;
    font-size: 14px;
}

/* ===================================
   Single Product
   =================================== */
.single-product { padding: 50px 0; }
.breadcrumb {
    padding: 15px 0;
    font-size: 13px;
    color: var(--text-light);
}
.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { margin: 0 8px; }

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 30px;
}
.product-gallery-main {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 15px;
    background: #f3f4f6;
}
.product-gallery-main img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}
.product-gallery-thumbs {
    display: flex;
    gap: 10px;
}
.product-gallery-thumbs img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s;
}
.product-gallery-thumbs img:hover,
.product-gallery-thumbs img.active {
    border-color: var(--primary);
}

.product-summary h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text);
}
.product-sku {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 25px;
}
.product-description {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 30px;
}
.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}
.specs-table tr { border-bottom: 1px solid var(--border); }
.specs-table td {
    padding: 14px 0;
    font-size: 14px;
}
.specs-table td:first-child {
    font-weight: 600;
    color: var(--text);
    width: 140px;
}
.specs-table td:last-child { color: var(--text-light); }
.product-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}
.btn-lg {
    padding: 16px 40px;
    font-size: 16px;
}

/* ===================================
   Archive
   =================================== */
.archive-header {
    padding: 50px 0;
    background: var(--bg);
    text-align: center;
    margin-bottom: 50px;
}
.archive-header h1 {
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 12px;
}
.archive-header p {
    font-size: 16px;
    color: var(--text-light);
}

/* ===================================
   Mobile Menu
   =================================== */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
}

/* ===================================
   Responsive
   =================================== */
@media (max-width: 1200px) {
    .products-grid, .features-grid { grid-template-columns: repeat(3, 1fr); }
    .categories-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 992px) {
    .hero-section .container { grid-template-columns: 1fr; text-align: center; }
    .hero-content h1 { font-size: 42px; }
    .about-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .products-grid, .features-grid { grid-template-columns: repeat(2, 1fr); }
    .categories-grid { grid-template-columns: repeat(3, 1fr); }
    .product-detail-grid { grid-template-columns: 1fr; }
    
    .mobile-menu-toggle { display: block; }
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        padding: 20px;
        box-shadow: var(--shadow-lg);
    }
    .main-nav.active { display: block; }
    .main-nav ul { flex-direction: column; }
    .header-actions .action-text { display: none; }
}

@media (max-width: 768px) {
    .hero-content h1 { font-size: 32px; }
    .hero-buttons { flex-direction: column; }
    .features-grid, .products-grid, .categories-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .product-actions { flex-direction: column; }
    .btn-lg { width: 100%; text-align: center; }
    .header-bar .container { flex-direction: column; gap: 8px; text-align: center; }
}

/* ===================================
   Utilities
   =================================== */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }
.hidden { display: none; }

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
    box-shadow: var(--shadow-lg);
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* ===================================
   Blog Styles
   =================================== */
.blog-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.blog-header h1 {
    font-size: 36px;
    margin-bottom: 15px;
}

.blog-header .breadcrumb {
    font-size: 14px;
    opacity: 0.9;
}

.blog-header .breadcrumb a {
    color: var(--white);
    text-decoration: none;
}

.blog-header .breadcrumb .sep {
    margin: 0 8px;
}

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

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

.blog-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s;
    position: relative;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.blog-card-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: var(--bg);
}

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

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-link {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.blog-card-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 13px;
    color: var(--text-light);
}

.blog-card-date,
.blog-card-category {
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-card-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
}

.blog-card-title a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.3s;
}

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

.blog-card-excerpt {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 15px;
}

.blog-card-more {
    display: inline-block;
    color: var(--primary);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
}

.blog-card-more:hover {
    color: var(--primary-dark);
}

.no-posts {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.no-posts h2 {
    font-size: 20px;
    margin-bottom: 10px;
}

/* Blog Pagination */
.blog-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.blog-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

.blog-pagination .page-numbers:hover,
.blog-pagination .page-numbers.current {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

/* Single Blog Post */
.blog-single {
    padding: 60px 0;
    background: var(--bg);
}

.blog-single-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

.blog-post {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.blog-featured-image {
    width: 100%;
    height: 450px;
    overflow: hidden;
    background: var(--bg);
}

.blog-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-post-meta {
    display: flex;
    gap: 20px;
    padding: 25px 30px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    color: var(--text-light);
}

.blog-post-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-post-meta a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s;
}

.blog-post-meta a:hover {
    color: var(--primary-dark);
}

.blog-post-content {
    padding: 30px;
    font-size: 16px;
    line-height: 1.8;
    color: var(--text);
}

.blog-post-content h2,
.blog-post-content h3,
.blog-post-content h4 {
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
    color: var(--text);
}

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

.blog-post-content ul,
.blog-post-content ol {
    margin: 20px 0;
    padding-left: 25px;
}

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

.blog-post-footer {
    padding: 25px 30px;
    border-top: 1px solid var(--border);
}

.blog-tags {
    font-size: 14px;
    color: var(--text-light);
}

.blog-tags a {
    display: inline-block;
    padding: 5px 12px;
    background: var(--bg);
    border-radius: 20px;
    color: var(--text);
    text-decoration: none;
    margin: 5px 8px 5px 0;
    transition: all 0.3s;
}

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

/* Author Box */
.author-box {
    background: var(--white);
    border-radius: 12px;
    padding: 30px;
    margin-top: 40px;
    display: flex;
    gap: 25px;
    align-items: center;
    box-shadow: var(--shadow-md);
}

.author-avatar img {
    border-radius: 50%;
    width: 80px;
    height: 80px;
    object-fit: cover;
}

.author-info h4 {
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 600;
}

.author-info p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
}

/* Post Navigation */
.post-navigation {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 40px;
    padding: 25px 30px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.post-navigation a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.3s;
}

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

/* Blog Sidebar */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sidebar-widget {
    background: var(--white);
    border-radius: 12px;
    padding: 25px;
    box-shadow: var(--shadow-md);
}

.sidebar-widget h4 {
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: 600;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary);
}

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

.sidebar-widget .search-field {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
}

.sidebar-widget .search-submit {
    padding: 10px 20px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
}

.sidebar-widget .search-submit:hover {
    background: var(--primary-dark);
}

.sidebar-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-widget li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.sidebar-widget li:last-child {
    border-bottom: none;
}

.sidebar-widget a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.3s;
}

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

.sidebar-widget .post-date {
    display: block;
    font-size: 13px;
    color: var(--text-light);
    margin-top: 5px;
}

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

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

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

/* Mobile Responsive */
@media (max-width: 768px) {
    .blog-header h1 {
        font-size: 28px;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .blog-card {
        padding: 20px;
    }
    
    .blog-card-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .blog-single-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-featured-image {
        height: 250px;
    }
    
    .blog-post-meta {
        flex-direction: column;
        gap: 12px;
        padding: 20px;
    }
    
    .blog-post-content {
        padding: 20px;
    }
    
    .author-box {
        flex-direction: column;
        text-align: center;
    }
    
    .post-navigation {
        flex-direction: column;
        gap: 15px;
    }
}

/* ===================================
   Hero 背景轮播图样式
   =================================== */

.hero-section {
    position: relative;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
}

/* 轮播背景层 */
.hero-slider-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

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

/* 遮罩层 - 让文字更清晰 */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
}

/* 轮播控制按钮 */
.hero-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    border: none;
    color: white;
    font-size: 24px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slider-btn:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: translateY(-50%) scale(1.1);
}

.hero-slider-btn.prev {
    left: 20px;
}

.hero-slider-btn.next {
    right: 20px;
}

/* 轮播指示点 */
.hero-slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.hero-dot.active {
    background: white;
    transform: scale(1.2);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .hero-section {
        min-height: 500px;
    }
    
    .hero-slider-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .hero-slider-btn.prev {
        left: 10px;
    }
    
    .hero-slider-btn.next {
        right: 10px;
    }
    
    .hero-slider-dots {
        bottom: 20px;
    }
    
    .hero-dot {
        width: 10px;
        height: 10px;
    }
    
    .hero-content h1 {
        font-size: 24px;
    }
    
    .hero-content .subtitle {
        font-size: 14px;
    }
}

/* ===================================
   美化博客面包屑导航
   =================================== */
.blog-header .breadcrumb {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 12px 25px;
    border-radius: 50px;
    display: inline-block;
    margin-top: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.blog-header .breadcrumb:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.blog-header .breadcrumb a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.blog-header .breadcrumb a:hover {
    color: #fbbf24;
    transform: scale(1.05);
}

.blog-header .breadcrumb a::before {
    content: '🏠';
    margin-right: 6px;
    font-size: 14px;
}

.blog-header .breadcrumb .sep {
    margin: 0 10px;
    opacity: 0.7;
    color: var(--white);
}

.blog-header .breadcrumb span:not(.sep) {
    color: #fbbf24;
    font-weight: 600;
}

/* 博客页面标题优化 */
.blog-header h1 {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
}

.blog-header h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, transparent, #fbbf24, transparent);
    border-radius: 2px;
}

/* 通用面包屑美化（产品页面等） */
.breadcrumb {
    padding: 12px 25px;
    font-size: 14px;
    color: var(--text-light);
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.breadcrumb a {
    color: var(--primary);
    transition: all 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--secondary);
    text-decoration: underline;
}

.breadcrumb .sep {
    margin: 0 10px;
    color: #94a3b8;
}

.breadcrumb span:not(.sep) {
    color: var(--text);
    font-weight: 500;
}
