/**
 * 舒适拖鞋主题 - 自定义样式
 */

/* Widget Styles */
.widget {
    margin-bottom: 30px;
    padding: 20px;
    background: var(--bg);
    border-radius: 8px;
}
.widget-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text);
}

/* Pagination */
.pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}
.pagination a, .pagination span {
    display: inline-block;
    padding: 10px 16px;
    background: var(--bg);
    border-radius: 6px;
    color: var(--text);
    transition: all 0.3s;
}
.pagination a:hover {
    background: var(--primary);
    color: var(--white);
}
.pagination .current {
    background: var(--primary);
    color: var(--white);
}

/* Gallery Thumbnails */
.gallery-thumb {
    opacity: 0.6;
    transition: opacity 0.3s, border-color 0.3s;
}
.gallery-thumb:hover, .gallery-thumb.active {
    opacity: 1;
    border-color: var(--primary);
}

/* Category Filter */
.category-filter .btn {
    display: inline-block;
}

/* Form Styles */
.form-control::placeholder {
    color: #9ca3af;
}

/* No Products State */
.no-products {
    padding: 80px 20px;
    text-align: center;
}
.no-products h2 {
    font-size: 28px;
    color: var(--text);
    margin-bottom: 15px;
}
.no-products p {
    color: var(--text-light);
    margin-bottom: 25px;
}

/* Breadcrumb */
.breadcrumb {
    background: var(--bg);
    padding: 12px 0;
    font-size: 13px;
}
.breadcrumb .sep {
    margin: 0 8px;
    color: var(--border);
}

/* Mobile Menu Active State */
.mobile-menu-toggle.active {
    color: var(--primary);
}

/* Dropdown Active */
.dropdown-menu a.active {
    background: var(--primary);
    color: var(--white);
}

/* Language Dropdown */
.dropdown-menu {
    max-height: 420px;
    overflow-y: auto;
}
.dropdown-menu::-webkit-scrollbar {
    width: 6px;
}
.dropdown-menu::-webkit-scrollbar-track {
    background: #f1f1f1;
}
.dropdown-menu::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}
.dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* Product Badge Animation */
.product-badge {
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Feature Card Hover */
.feature-card {
    border: 1px solid transparent;
}
.feature-card:hover {
    border-color: var(--primary);
}

/* Stat Number Animation */
.stat-number {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Contact Form Focus */
.form-control:focus {
    box-shadow: 0 0 0 4px rgba(8, 145, 178, 0.1);
}

/* Button Loading State */
.btn.loading {
    position: relative;
    pointer-events: none;
}
.btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin: -8px 0 0 -8px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Header Action Buttons Alignment */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px 12px;
    transition: all 0.3s;
    color: var(--text);
    text-decoration: none;
    font-size: 13px;
    line-height: 1.2;
}

.action-btn .icon {
    font-size: 18px;
    line-height: 1;
}

.action-btn .action-text {
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.action-btn:hover {
    color: var(--primary);
}

/* Dropdown alignment */
.dropdown.action-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    cursor: pointer;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    min-width: 180px;
    margin-top: 5px;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    color: var(--text);
    text-decoration: none;
    transition: all 0.3s;
}

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

/* Accessibility */
.skip-link {
    position: absolute;
    left: -9999px;
}
.skip-link:focus {
    left: 0;
    top: 0;
    z-index: 9999;
    background: var(--primary);
    color: var(--white);
    padding: 10px 20px;
}

/* Print Styles */
@media print {
    .site-header, .site-footer, .back-to-top, .search-overlay, .header-actions {
        display: none !important;
    }
    .product-actions, .contact-form-box {
        display: none !important;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* Slider / Carousel Styles */
.hero-slider, .about-slider {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.hero-slider {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.about-slider {
    width: 100%;
}

.slider-container {
    position: relative;
    width: 100%;
}

.slide {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.slide.active {
    display: block;
}

.slide img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
}

.slider-prev, .slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    color: #333;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.slider-prev:hover, .slider-next:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.slider-prev {
    left: 10px;
}

.slider-next {
    right: 10px;
}

.slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

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

.dot.active {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.2);
}

.dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive Slider */
@media (max-width: 768px) {
    .hero-slider {
        max-width: 100%;
    }
    
    .slider-prev, .slider-next {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .slider-prev {
        left: 5px;
    }
    
    .slider-next {
        right: 5px;
    }
}

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

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

.blog-header .breadcrumb {
    color: rgba(255, 255, 255, 0.8);
}

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

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

.blog-section {
    padding: 80px 0;
}

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

.blog-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.blog-image {
    overflow: hidden;
    height: 240px;
}

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

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

.blog-content {
    padding: 25px;
}

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

.blog-meta .blog-category {
    color: var(--primary);
    font-weight: 500;
}

.blog-title {
    font-size: 20px;
    margin-bottom: 12px;
    line-height: 1.4;
}

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

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

.blog-excerpt {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.6;
}

.blog-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 50px;
}

.blog-pagination a, .blog-pagination span {
    padding: 10px 16px;
    background: var(--bg);
    border-radius: 6px;
    color: var(--text);
    text-decoration: none;
    transition: all 0.3s;
}

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

/* Single Blog Post */
.blog-single {
    padding: 80px 0;
}

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

.blog-main {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.blog-featured-image {
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
}

.blog-featured-image img {
    width: 100%;
    height: auto;
}

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

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

.blog-post-content {
    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;
    color: var(--text);
}

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

.blog-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

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

.blog-post-content blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 20px;
    margin: 20px 0;
    font-style: italic;
    color: var(--text-light);
}

.blog-post-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.blog-tags {
    margin-bottom: 15px;
}

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

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

/* Author Box */
.author-box {
    display: flex;
    gap: 20px;
    padding: 30px;
    background: var(--bg);
    border-radius: 12px;
    margin-top: 40px;
}

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

.author-info h4 {
    margin-bottom: 10px;
    color: var(--text);
}

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

/* Post Navigation */
.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border);
}

.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: 30px;
}

.sidebar-widget {
    background: var(--white);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.sidebar-widget h4 {
    margin-bottom: 20px;
    color: var(--text);
    font-size: 18px;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 10px;
}

/* Search Form */
.search-form {
    display: flex;
    gap: 10px;
}

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

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

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

/* Category List */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.category-list a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.3s;
    display: flex;
    justify-content: space-between;
}

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

/* Recent Posts */
.recent-posts {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

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

.recent-posts a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    display: block;
    margin-bottom: 5px;
    transition: color 0.3s;
}

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

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

/* Tag Cloud */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

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

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

/* No Posts */
.no-posts {
    text-align: center;
    padding: 80px 20px;
}

.no-posts h2 {
    font-size: 28px;
    color: var(--text);
    margin-bottom: 15px;
}

.no-posts p {
    color: var(--text-light);
}

/* Search Results */
.search-results-section {
    padding: 80px 0;
}

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

.search-result-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.search-result-image {
    overflow: hidden;
    height: 200px;
}

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

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

.search-result-content {
    padding: 25px;
}

.search-result-title {
    font-size: 20px;
    margin-bottom: 12px;
    line-height: 1.4;
}

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

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

.search-result-meta {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 13px;
    color: var(--text-light);
    flex-wrap: wrap;
}

.search-result-meta .result-type {
    color: var(--primary);
    font-weight: 500;
}

.search-result-meta .result-category {
    color: var(--secondary);
}

.search-result-excerpt {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.6;
}

.search-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 50px;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 100px 20px;
    max-width: 600px;
    margin: 0 auto;
}

.no-results h2 {
    font-size: 32px;
    color: var(--text);
    margin-bottom: 15px;
}

.no-results p {
    color: var(--text-light);
    margin-bottom: 30px;
}

.search-suggestions {
    background: var(--bg);
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    text-align: left;
}

.search-suggestions h3 {
    font-size: 18px;
    color: var(--text);
    margin-bottom: 15px;
}

.search-suggestions ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.search-suggestions li {
    padding: 8px 0;
    color: var(--text-light);
    position: relative;
    padding-left: 20px;
}

.search-suggestions li:before {
    content: '💡';
    position: absolute;
    left: 0;
}

.search-again {
    max-width: 500px;
    margin: 0 auto;
}

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

.search-form-inline input[type="search"] {
    flex: 1;
    padding: 12px 20px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
}

.search-form-inline .btn {
    padding: 12px 30px;
}

/* Responsive Search */
@media (max-width: 768px) {
    .search-results-grid {
        grid-template-columns: 1fr;
    }
    
    .search-form-inline {
        flex-direction: column;
    }
    
    .search-form-inline .btn {
        width: 100%;
    }
}

/* Responsive Blog */
@media (max-width: 968px) {
    .blog-single-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-sidebar {
        order: -1;
    }
    
    .blog-main {
        padding: 25px;
    }
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-header-content h1 {
        font-size: 32px;
    }
    
    .post-navigation {
        grid-template-columns: 1fr;
    }
    
    .author-box {
        flex-direction: column;
        text-align: center;
    }
    
    .author-avatar img {
        margin: 0 auto;
    }
}
