/* Promotion Plugin Styles */

/* Reset and Base Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
}

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

/* Ensure page structure is correct */
#page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-content {
    flex: 1;
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
}

/* Header Styles - Ensure visibility */
.site-header {
    background: #fff !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    min-height: 60px !important;
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.site-header .container {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 1rem 20px !important;
    width: 100% !important;
}

.site-branding {
    display: flex !important;
    flex-direction: column !important;
    flex-shrink: 0 !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.site-title {
    margin: 0 !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.site-title a {
    color: #333 !important;
    text-decoration: none !important;
    transition: color 0.3s !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.site-title a:hover {
    color: #007cba !important;
}

.site-description {
    margin: 0 !important;
    font-size: 0.875rem !important;
    color: #666 !important;
    line-height: 1.2 !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Navigation */
.main-navigation {
    display: flex !important;
    align-items: center !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

.menu-container {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.menu-container ul {
    display: flex !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 2rem !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.menu-container li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.menu-container a {
    color: #333 !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    transition: color 0.3s !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.menu-container a:hover {
    color: #007cba !important;
}

/* Promotion Page Styles */
.promotion-page {
    max-width: 1200px;
    margin: 0 auto;
}

.promotion-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
}

.page-description {
    font-size: 1.1rem;
    margin: 0;
    opacity: 0.9;
}

/* Filters */
.promotion-filters {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
}

.search-container {
    display: flex;
    gap: 0.5rem;
    flex: 1;
    max-width: 400px;
}

.search-container input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.search-container input:focus {
    outline: none;
    border-color: #007cba;
}

.search-container button {
    padding: 0.75rem 1.5rem;
    background: #007cba;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-container button:hover {
    background: #005a87;
}

.filter-options {
    display: flex;
    gap: 1rem;
}

.filter-options select {
    padding: 0.75rem 1rem;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    background: white;
    font-size: 0.9rem;
    cursor: pointer;
}

/* Promotion Grid */
.promotion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.promotion-item {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.promotion-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.promotion-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Product Image */
.product-image {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: #f8f9fa;
    border-radius: 8px 8px 0 0;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s;
    padding: 10px;
}

.product-link:hover .product-img {
    transform: scale(1.05);
}

.sale-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff4757;
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 2;
}

/* Promotion Content */
.promotion-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Product Information */
.product-info {
    margin-bottom: 1.5rem;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.75rem 0;
    line-height: 1.4;
}

.product-name a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.product-name a:hover {
    color: #007cba;
}

.product-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.regular-price {
    color: #999;
    text-decoration: line-through;
    font-size: 0.9rem;
}

.sale-price, .current-price {
    color: #ff4757;
    font-size: 1.2rem;
    font-weight: 700;
}

.discount-badge {
    background: #ff4757;
    color: white;
    padding: 0.25rem 0.5rem;
    margin-right: 2px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.stars {
    display: flex;
    gap: 2px;
}

.star {
    color: #ddd;
    font-size: 0.9rem;
}

.star.filled {
    color: #ffc107;
}

.review-count {
    font-size: 0.8rem;
    color: #666;
}

.product-description {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

/* Promotion Information */
.promotion-info {
    border-top: 1px solid #e1e5e9;
    padding-top: 1rem;
    margin-bottom: 1.5rem;
}

.promotion-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
}

.promotion-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.promotion-title a:hover {
    color: #007cba;
}

.promotion-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.promotion-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
}

.promotion-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #666;
}

.promotion-meta i {
    color: #007cba;
}

.promotion-offer {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: #f8f9fa;
    padding: 0.75rem;
    border-radius: 6px;
}

.discount-info, .code-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.discount-label, .code-label {
    font-weight: 600;
    color: #333;
}

.discount-value {
    color: #ff4757;
    font-weight: 700;
}

.code-value {
    background: #333;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.8rem;
}

.promotion-dates {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
}

.promotion-dates span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #666;
}

.promotion-dates i {
    color: #007cba;
}

/* Action Buttons */
.promotion-actions {
    margin-top: auto;
    display: flex;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid #e1e5e9;
}

.btn {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.btn-primary {
    background: #4cb1e3;
    color: white;
}

.btn-primary:hover {
    background: #005a87;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #f8f9fa;
    color: #333;
    border: 2px solid #e1e5e9;
}

.btn-secondary:hover {
    background: #e9ecef;
    border-color: #007cba;
    color: #007cba;
}

.btn-large {
    font-size: 0.8rem;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    background: #f8f9fa;
    border-radius: 12px;
}

.no-results-icon {
    font-size: 4rem;
    color: #ccc;
    margin-bottom: 1rem;
}

.no-results h3 {
    margin: 0 0 1rem 0;
    color: #333;
}

.no-results p {
    color: #666;
    margin: 0;
}

/* Pagination */
.promotion-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
    border-top: 1px solid #e1e5e9;
}

.pagination-info {
    color: #666;
    font-size: 0.9rem;
}

.pagination-links {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.page-link {
    padding: 0.5rem 0.75rem;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.9rem;
}

.page-link:hover {
    border-color: #007cba;
    color: #007cba;
}

.current-page {
    background: #007cba;
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-weight: 600;
}

/* Footer */
.site-footer {
    background: #333;
    color: white;
    padding: 2rem 0;
    margin-top: 4rem;
}

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

.site-info p {
    margin: 0;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .site-header .container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding: 0.75rem 20px;
    }
    
    .site-title {
        font-size: 1.25rem;
    }
    
    .site-description {
        font-size: 0.8rem;
    }
    
    .menu-toggle {
        display: flex;
        position: absolute;
        top: 1rem;
        right: 1rem;
    }
    
    .menu-container {
        display: none;
        width: 100%;
        margin-top: 1rem;
    }
    
    .menu-container.active {
        display: block;
    }
    
    .menu-container ul {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .menu-container li {
        border-bottom: 1px solid #eee;
        padding: 0.5rem 0;
    }
    
    .menu-container li:last-child {
        border-bottom: none;
    }
    
    .menu-container a {
        display: block;
        padding: 0.5rem 0;
        font-size: 1rem;
    }
    
    .promotion-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-container {
        max-width: none;
    }
    
    .filter-options {
        justify-content: center;
    }
    
    .promotion-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .promotion-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .promotion-dates {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .promotion-actions {
        flex-direction: column;
    }
    
    .promotion-pagination {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .pagination-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .product-section {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .product-gallery-thumbnails {
        margin-top: 0.5rem;
    }
    
    .thumbnail-item {
        width: 60px;
        height: 60px;
    }
    
    .gallery-nav-btn {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .promotion-header-detail {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .promotion-grid-detail {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .promotion-actions-detail {
        flex-direction: column;
    }
    
    .product-title {
        font-size: 1.5rem;
    }
    
    .promotion-title-detail {
        font-size: 1.5rem;
    }
    
    .price-comparison {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .promotion-content {
        padding: 1rem;
    }
    
    .product-image {
        height: 200px;
    }
    
    .product-img {
        padding: 8px;
    }
    
    .page-title {
        font-size: 1.75rem;
    }
    
    .page-description {
        font-size: 1rem;
    }
}

/* Shortcode Styles */
.promotion-shortcode {
    margin: 2rem 0;
}

.promotion-shortcode.promotion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.promotion-shortcode.promotion-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.promotion-shortcode .promotion-item {
    margin-bottom: 0;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.promotion-item {
    animation: fadeIn 0.6s ease-out;
}

/* Loading State */
.promotion-loading {
    text-align: center;
    padding: 2rem;
    color: #666;
}

.promotion-loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #e1e5e9;
    border-top: 2px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 0.5rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Single Promotion Page Styles */
.promotion-single {
    max-width: 1200px;
    margin: 0 auto;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 0;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: #007cba;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #005a87;
}

.breadcrumb .separator {
    color: #ccc;
}

.breadcrumb .current {
    color: #666;
    font-weight: 600;
}

/* Promotion Detail Grid */
.promotion-detail-grid {
    display: grid;
    gap: 3rem;
    border-radius: 12px;
}

/* Product Section */
.product-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background: white;
    border-radius: 16px;
    padding: 0.85rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.product-image-main {
    border-radius: 8px;
    overflow: hidden;
    background: #f8f9fa;
    position: relative;
}

.main-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.main-image:hover {
    transform: scale(1.02);
}

/* Product Gallery Thumbnails */
.product-gallery-thumbnails {
    position: relative;
    margin-top: 1rem;
}

.product-gallery-thumbnails:empty {
    display: none;
}

/* Product Gallery Navigation */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 2;
    padding: 0 1rem;
}

.gallery-nav.hidden {
    display: none;
}

.gallery-nav-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #333;
    transition: all 0.3s ease;
    pointer-events: auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.gallery-nav-btn:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.gallery-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.thumbnail-container {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 0.5rem 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.thumbnail-container::-webkit-scrollbar {
    display: none;
}

.thumbnail-item {
    flex-shrink: 0;
    width: 75px;
    height: 75px;
    border: 2px solid transparent;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.thumbnail-item:hover {
    border-color: #007cba;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.thumbnail-item.active {
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 122, 186, 0.2);
}

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

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

.product-info-detail {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.product-title {
    font-size: 1.6rem;
    font-weight: 380;
    margin: 0;
    line-height: 1.3;
    color: #333;
}

.product-rating-detail {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #e1e5e9;
}

.rating-text {
    font-weight: 600;
    color: #333;
}

.product-price-detail {
    margin-bottom: 0.1rem;
}

.claim-code-section {
    border-radius: 8px;
}

.claim-code-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
}

.claim-code-label {
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}

.claim-code-container {
    position: relative;
    display: inline-block;
}

.claim-code-value {
    color: rgb(10, 1, 1);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-family: monospace;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.claim-code-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ccc;
    border-radius: 4px;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.claim-code-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.price-comparison {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.price-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.price-label {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
    min-width: 40px;
}
.was-label {
    color: #000 !important;
    font-size: 1.0rem;
}

.now-label {
    color: #ff4757;
    font-size: 1.25rem;
}

/* 确保was-label在price-row中也是黑色 */
.price-row .was-label {
    color: #000 !important;
}

.original-price {
    color: #999;
    text-decoration: line-through;
    font-size: 0.9rem;
}

.sale-price, .current-price {
    color: #ff4757;
    font-size: 1.25rem;
    font-weight: 700;
}

.discount-badge {
    background: #58d5fc;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
}

.product-description-detail h3,
.product-short-description h3 {
    padding-top: 0.1rem;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.75rem 0;
    color: #0d0c0c;
}

.product-description-detail p {
    color: #3b3a3a;
    line-height: 2.0;
    font-size: 1.0rem;
    font-weight: 350;
    margin: 0;
}

.product-short-description .product-description {
    color: #060606;
    line-height: 1.8;
    margin: 0;
}

.product-short-description .product-description p {
    font-size: 0.9rem;
    font-weight: 380;
    margin: 0;
}

.category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.category-tag {
    background: #f8f9fa;
    color: #333;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.product-actions {
    padding-top: 0.5rem;
    padding-bottom: 1rem;
}

/* Promotion Section */
.promotion-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.promotion-header-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e1e5e9;
}

.promotion-title-detail {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    color: #333;
}

.status-badge {
    background: #28a745;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.promotion-grid-detail {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.info-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    border-left: 4px solid #dee2e6;
}

.info-card.highlight {
    background: #e8f4fd;
    border-left-color: #007cba;
}

.info-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    color: #333;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-card h3 i {
    color: #007cba;
}

.info-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e1e5e9;
}

.info-item:last-child {
    border-bottom: none;
}

.info-item .label {
    font-weight: 600;
    color: #333;
}

.info-item .value {
    color: #666;
    font-weight: 500;
}

.info-item .discount-value {
    color: #ff4757;
    font-weight: 700;
    font-size: 1.1rem;
}

.info-item .claim-code {
    background: #333;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9rem;
}

.info-item .total-price {
    color: #ff4757;
    font-weight: 700;
    font-size: 1.1rem;
}

.promotion-actions-detail {
    display: flex;
    gap: 1rem;
    justify-content: center;
    padding-top: 2rem;
    border-top: 1px solid #e1e5e9;
}

/* Responsive Design for Single Page */
@media (max-width: 768px) {
    .product-section {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .promotion-header-detail {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .promotion-grid-detail {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .promotion-actions-detail {
        flex-direction: column;
    }
    
    .product-title {
        font-size: 1.5rem;
    }
    
    .promotion-title-detail {
        font-size: 1.5rem;
    }
    
    .price-comparison {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .product-section,
    .promotion-section {
        padding: 1rem;
    }
    
    .product-title {
        font-size: 1.25rem;
    }
    
    .promotion-title-detail {
        font-size: 1.25rem;
    }
    
    .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
}

.claim-code-btn {
    background: #51d1f7;
    color: #ebeff1;
    border: 1px solid #bbdefb;
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 140px;
    height: 38px;
}

.claim-code-btn:hover {
    background: #bbdefb;
    border-color: #90caf9;
}

.claim-code-btn:active {
    background: #90caf9;
    transform: translateY(1px);
}

.copy-success-message {
    margin-top: 0.5rem;
    padding: 0.2rem;
    background: #e8f5e8;
    color: #2e7d32;
    border-radius: 4px;
    font-size: 0.9rem;
    text-align: center;
}

.social-share-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.share-label {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.social-share-links {
    display: flex;
    gap: 0.5rem;
}

.social-share-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.social-share-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.social-share-link.facebook {
    background: #1877f2;
}

.social-share-link.twitter {
    background: #1da1f2;
}

.social-share-link.x {
    background: #000000;
}

.social-share-link.linkedin {
    background: #0077b5;
}

.social-share-link.pinterest {
    background: #e60023;
}

.social-share-link.whatsapp {
    background: #25d366;
}

.social-share-link.tiktok {
    background: #000000;
    background: linear-gradient(45deg, #ff0050, #00f2ea);
}

.social-icon {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
}

/* 桌面端轮播图尺寸优化 */
@media (min-width: 769px) {
    .product-gallery {
        max-width: 450px;
    }
    
    .product-image-main {
        max-height: 500px;
        overflow: hidden;
    }
    
    .main-image {
        max-height: 500px;
        object-fit: contain;
    }
    
    .thumbnail-item {
        width: 65px;
        height: 65px;
    }
}

/* 大屏幕轮播图进一步优化 */
@media (min-width: 1200px) {
    .product-gallery {
        max-width: 420px;
    }
    
    .product-image-main {
        max-height: 470px;
    }
    
    .main-image {
        max-height: 470px;
    }
    
    .thumbnail-item {
        width: 60px;
        height: 60px;
    }
}

/* 超大屏幕轮播图优化 */
@media (min-width: 1600px) {
    .product-gallery {
        max-width: 400px;
    }
    
    .product-image-main {
        max-height: 430px;
    }
    
    .main-image {
        max-height: 430px;
    }
    
    .thumbnail-item {
        width: 55px;
        height: 55px;
    }
}

/* 移动端修复样式 - 解决页面只显示一半内容的问题 */
@media (max-width: 768px) {
    /* 确保页面容器正确显示 */
    html, body {
        height: auto !important;
        min-height: 100vh !important;
        overflow-x: hidden !important;
    }
    
    #page {
        min-height: auto !important;
        height: auto !important;
        display: block !important;
        flex-direction: unset !important;
    }
    
    .site-content {
        min-height: auto !important;
        height: auto !important;
        flex: unset !important;
        padding: 1rem 0 !important;
    }
    
    /* 确保容器正确显示 */
    .container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 15px !important;
        margin: 0 !important;
    }
    
    /* 修复产品部分布局 */
    .product-section {
        display: block !important;
        grid-template-columns: unset !important;
        gap: 1rem !important;
        padding: 1rem !important;
        margin: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* 修复产品信息详情 */
    .product-info-detail {
        width: 100% !important;
        margin-top: 1rem !important;
    }
    
    /* 修复促销部分 */
    .promotion-section {
        width: 100% !important;
        padding: 1rem !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }
    
    /* 修复页脚 */
    .site-footer {
        position: relative !important;
        margin-top: 2rem !important;
    }
    
    /* 确保所有内容可见 */
    .promotion-single {
        width: 100% !important;
        max-width: 100% !important;
        overflow: visible !important;
    }
    
    .promotion-detail-grid {
        width: 100% !important;
        max-width: 100% !important;
        display: block !important;
        gap: 1rem !important;
    }
    
    /* 修复图片显示 */
    .product-image-main {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .main-image {
        width: 100% !important;
        height: auto !important;
        max-width: 100% !important;
    }
    
    /* 修复按钮和交互元素 */
    .claim-code-row {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 1rem !important;
    }
    
    .claim-code-btn {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .social-share-section {
        justify-content: center !important;
        margin-top: 1rem !important;
    }
    
    /* 修复价格显示 - 保持在同一行 */
    .price-comparison {
        flex-direction: row !important;
        align-items: center !important;
        gap: 0.5rem !important;
        flex-wrap: wrap !important;
    }
    
    .price-row {
        flex-direction: row !important;
        align-items: center !important;
        gap: 0.5rem !important;
        flex-wrap: wrap !important;
        width: 100% !important;
    }
    
    /* 确保价格元素在同一行显示 */
    .price-label,
    .sale-price,
    .original-price,
    .discount-badge {
        display: inline-block !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }
    
    /* 调整价格标签间距 */
    .now-label {
        margin-right: 0.25rem !important;
    }
    
    .was-label {
        margin-left: 0.5rem !important;
        margin-right: 0.25rem !important;
    }
    
    /* 确保折扣徽章正确显示 */
    .discount-badge {
        margin-left: 0.5rem !important;
        font-size: 0.8rem !important;
        padding: 0.2rem 0.5rem !important;
    }
}

@media (max-width: 480px) {
    /* 更小屏幕的额外修复 */
    .container {
        padding: 0 10px !important;
    }
    
    .product-section,
    .promotion-section {
        padding: 0.5rem !important;
    }
    
    .product-title {
        font-size: 1.2rem !important;
        line-height: 1.3 !important;
    }
    
    .promotion-title-detail {
        font-size: 1.2rem !important;
    }
    
    /* 确保所有文本可读 */
    .product-description,
    .promotion-content-detail {
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
    }
    
    /* 修复按钮大小 */
    .btn {
        padding: 0.75rem 1rem !important;
        font-size: 0.9rem !important;
    }
    
    /* 修复社交分享按钮 */
    .social-share-link {
        width: 32px !important;
        height: 32px !important;
    }
    
    .social-icon {
        width: 16px !important;
        height: 16px !important;
    }
    
    /* 小屏幕价格显示优化 */
    .price-row {
        gap: 0.25rem !important;
        font-size: 0.9rem !important;
    }
    
    .price-label {
        font-size: 0.85rem !important;
    }
    
    .sale-price,
    .original-price {
        font-size: 0.9rem !important;
    }
    
    .discount-badge {
        font-size: 0.75rem !important;
        padding: 0.15rem 0.4rem !important;
        margin-left: 0.25rem !important;
    }
    
    .now-label {
        margin-right: 0.15rem !important;
    }
    
    .was-label {
        margin-left: 0.25rem !important;
        margin-right: 0.15rem !important;
    }
}

/* 确保页面在所有设备上都能正确显示 */
@media (max-width: 320px) {
    .container {
        padding: 0 5px !important;
    }
    
    .product-section,
    .promotion-section {
        padding: 0.25rem !important;
    }
    
    .product-title {
        font-size: 1.1rem !important;
    }
    
    .promotion-title-detail {
        font-size: 1.1rem !important;
    }
    
    /* 超小屏幕价格显示优化 */
    .price-row {
        gap: 0.2rem !important;
        font-size: 0.85rem !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        padding-bottom: 0.25rem !important;
    }
    
    .price-label {
        font-size: 0.8rem !important;
    }
    
    .sale-price,
    .original-price {
        font-size: 0.85rem !important;
    }
    
    .discount-badge {
        font-size: 0.7rem !important;
        padding: 0.1rem 0.3rem !important;
        margin-left: 0.2rem !important;
    }
    
    .now-label {
        margin-right: 0.1rem !important;
    }
    
    .was-label {
        margin-left: 0.2rem !important;
        margin-right: 0.1rem !important;
    }
}

/* 修复可能的WordPress主题冲突 */
@media (max-width: 768px) {
    /* 重置可能的主题样式 */
    .site-main {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* 确保没有固定高度限制 */
    .site-content,
    .site-main,
    .promotion-single,
    .promotion-detail-grid {
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
    }
    
    /* 修复可能的overflow问题 */
    body,
    html,
    #page,
    .site-content,
    .site-main,
    .promotion-single {
        overflow: visible !important;
        overflow-x: hidden !important;
    }
} 