/* 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: 1300px;
    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: 1rem 0;
}

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

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

.site-branding {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.site-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}

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

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

.site-description {
    margin: 0;
    font-size: 0.875rem;
    color: #666;
    line-height: 1.2;
}

/* Navigation */
.main-navigation {
    display: flex;
    align-items: center;
}

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

.menu-container ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

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

.menu-container a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

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

/* 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: #ff5000; */
    background: #ff7000a8;
    color: white;
    padding: 0.25rem 0.5rem;
    margin-right: 2px;
    border-radius: 12px;
    font-size: 1.0rem;
    font-weight: 600;
    white-space: nowrap;
}

/* 不同折扣类型的样式 */
.discount-badge.percentage {
    background: #ff7000a8;
    color: white;
}

.discount-badge.fixed {
    background: #ff7000a8;
    color: white;
}

.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: 0.5rem 0;
    margin-top: 4rem;
}

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

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

/* 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: 1300px;
    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: 2rem;
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    align-items: start;
}

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

.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;
    min-width: 0;
    flex: 1;
}

.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-btn {
    background: #ff5e00e6;
    color: #ebeff1;
    border: 1px solid #ff5e00e6;
    padding: 0.5rem 0.8rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 140px;
    height: 38px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    user-select: text;
}

.claim-code-btn:hover {
    background: #c73f00;
    border-color: #c73f00;
}

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

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

.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;
    display: none;
}

.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;
    font-size: 1.0rem;
}

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

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

.original-price {
    text-decoration: line-through;
    font-size: 1.1rem;
}

.sale-price, .current-price {
    color: #ff4757;
    font-size: 1.25rem;
    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-description-detail p img {
    max-width: 100%;
    height: auto;
    display: block;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.product-short-description .product-description {
    color: #060606;
    line-height: 1.8;
    margin: 0;
    position: relative;
    transition: all 0.3s ease;
}

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

.product-short-description .product-description.collapsed {
    max-height: 280px;
    overflow: hidden;
}

.product-short-description .product-description.expanded {
    max-height: none;
}

.product-short-description .description-content {
    position: relative;
    z-index: 1;
}

.product-short-description .description-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(transparent, white);
    pointer-events: none;
    z-index: 2;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.product-short-description .product-description.expanded .description-overlay {
    opacity: 0;
}

.product-short-description .load-more-container {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    text-align: center;
    transition: all 0.3s ease;
}

.product-short-description .product-description.expanded .load-more-container {
    position: static;
    transform: none;
    margin-top: 10px;
    text-align: center;
}

.product-short-description .load-more-link {
    background: #8ad0f3;
    color: white;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 122, 186, 0.3);
    min-width: 200px;
}

.product-short-description .load-more-link:hover {
    background: #005a87;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 122, 186, 0.4);
    text-decoration: none;
    color: white;
}

/* 桌面端悬停展开功能 */
@media (min-width: 769px) {
    .product-short-description .product-description.collapsed:hover {
        max-height: none;
    }
    
    .product-short-description .product-description.collapsed:hover .description-overlay {
        opacity: 0;
    }
    
    .product-short-description .product-description.collapsed:hover .load-more-container {
        opacity: 0;
        pointer-events: none;
    }
}

.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: 2.5rem;
    padding-bottom: 0.1rem;
}

/* Promotion Section */
.promotion-section {
    background: white;
    border-radius: 12px;
    padding: 0.1rem;
    box-shadow: 0 0px 0px 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;
}

/* Social Share Styles */
.social-share-section {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.social-share-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f8f9fa;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 1px solid #e1e5e9;
}

.social-share-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background: white;
}

.social-share-link .social-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.social-share-link:hover .social-icon {
    transform: scale(1.1);
}

/* Social platform specific styles */
.social-share-link.facebook {
    background: #1877f2;
    border-color: #1877f2;
}

.social-share-link.facebook .social-icon {
    filter: brightness(0) invert(1);
}

.social-share-link.facebook:hover {
    background: #0d6efd;
    border-color: #0d6efd;
}

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

.social-share-link.x .social-icon {
    filter: brightness(0) invert(1);
}

.social-share-link.x:hover {
    background: #333333;
    border-color: #333333;
}

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

.social-share-link.linkedin .social-icon {
    filter: brightness(0) invert(1);
}

.social-share-link.linkedin:hover {
    background: #005885;
    border-color: #005885;
}

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

.social-share-link.whatsapp .social-icon {
    filter: brightness(0) invert(1);
}

.social-share-link.whatsapp:hover {
    background: #1ea952;
    border-color: #1ea952;
}

.social-share-link.tiktok {
    background: #000000;
    border-color: #000000;
}

.social-share-link.tiktok .social-icon {
    filter: brightness(0) invert(1);
}

.social-share-link.tiktok:hover {
    background: #333333;
    border-color: #333333;
}

/* Coupon Stack Styles */
.coupon-connector {
    display: inline-block;
    font-weight: bold;
    color: #FFD700;
    margin: 0 2px;
    font-size: 1.0em;
}

.coupon-stack-badge {
    display: inline-block;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 1.0rem;
    font-weight: 600;
    white-space: nowrap;
}

/* Responsive Design for Single Page */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .promotion-single,
    .promotion-detail-grid,
    .product-section,
    .product-gallery,
    .product-info-detail {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        overflow: visible;
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }
    
    .product-section {
        display: block;
        box-shadow: none;
        border-radius: 0;
        padding: 1rem;
    }
    
    .product-gallery,
    .product-info-detail {
        display: block;
    }
    
    .main-image,
    .product-image-main {
        width: 100%;
        max-width: 100%;
        height: auto;
        max-height: 350px;
        object-fit: contain;
    }
    
    .thumbnail-item {
        width: 50px;
        height: 50px;
    }
    
    .product-title {
        font-size: 1.3rem;
    }
    
    .promotion-title-detail {
        font-size: 1.3rem;
    }
    
    .claim-code-row {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .claim-code-btn {
        width: 100%;
        min-width: 0;
    }
    
    .social-share-section {
        justify-content: center;
    }
    
    .price-row {
        gap: 0.3rem;
        font-size: 0.9rem;
    }
    
    .price-label {
        font-size: 0.85rem;
    }
    
    .sale-price, .original-price {
        font-size: 1.1rem;
    }
    
    .discount-badge {
        font-size: 1.0rem;
        padding: 0.15rem 0.4rem;
    }
    
    .social-share-link {
        width: 34px;
        height: 34px;
    }
    
    /* 移动端社交图标强制白色 */
    .social-share-link .social-icon {
        filter: brightness(0) invert(1) !important;
        -webkit-filter: brightness(0) invert(1) !important;
    }
    
    /* 移动端优惠券叠加样式 */
    .price-row .discount-badge {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        gap: 4px;
        width: 100%;
        margin-top: 0.5rem;
        margin-bottom: 0.5rem;
    }
    
    .coupon-connector {
        display: inline-block;
        margin: 0 2px;
    }
    
    .coupon-stack-badge {
        display: inline-block;
        font-size: 0.9rem;
        padding: 0.2rem 0.4rem;
    }
    
    .claim-code-section {
        padding-top: 1rem;
    }
    
    .product-description-detail p img {
        max-width: 100%;
        height: auto;
    }
}

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

/* 固定在顶部的Buy Now按钮样式 */
.product-actions-fixed {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    border-bottom: 1px solid #e0e0e0 !important;
    padding: 10px 20px !important;
    z-index: 10000 !important;
    transform: translateY(-100%) !important;
    transition: transform 0.3s ease-in-out !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

.product-actions-fixed.show {
    transform: translateY(0) !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.product-actions-fixed .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.8rem;
    background: #ff5e00e6;
    color: white;
    box-shadow: 0 4px 15px rgba(76, 177, 227, 0.3);
}

.product-actions-fixed .btn:hover {
    background: #c73f00;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 177, 227, 0.4);
}

/* Promotion Process Styles - Top Layout */
.promotion-process {
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border: 1px solid #e0e0e0;
}

/* 移动端步骤说明样式 */
.mobile-steps-overview {
    display: none; /* 默认隐藏，只在移动端显示 */
    padding: 0.75rem 1rem 0.5rem;
    border-bottom: 1px solid #e0e0e0;
    background: #f0f2f5;
    border-radius: 8px 8px 0 0;
    text-align: center; /* 内容居中显示 */
}

.mobile-step {
    display: inline-block;
    font-size: 0.8rem;
    color: #666;
    margin-right: 1rem;
    font-weight: 500;
}

.mobile-step:last-child {
    margin-right: 0;
}

/* 移动端步骤数字样式 - 与step-number保持一致 */
.mobile-step span {
    display: inline-block;
    width: 1.2em;
    height: 1.2em;
    line-height: 1.2em;
    text-align: center;
    background: #007cba;
    color: white;
    border-radius: 50%;
    font-size: 1.0rem;
    font-weight: 600;
    margin-right: 0.5rem;
    margin-bottom: 0.2rem;
    vertical-align: middle;
}

.process-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.1rem;
    margin: 0 auto;
}

.process-step {
    background: white;
    border-radius: 6px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    min-height: 1px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.step-content{
    margin-left: 10px;
    margin-right: 10px;
}

/* Step width distribution */
#step-buy-now {
    flex: 1; /* 1/6 */
}

#step-order-info {
    flex: 7; /* 2/6 */
}

#step-cashback {
    flex: 1; /* 1/6 */
}

.process-step.active {
    border-color: #007cba;
    box-shadow: 0 2px 8px rgba(0, 124, 186, 0.2);
}

.step-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
    color: #333;
}

.step-description {
    font-size: 0.8rem;
    color: #666;
    line-height: 1.3;
}

/* Step number with circle */
.step-number {
    display: inline-block;
    width: 1.2em;
    height: 1.2em;
    line-height: 1.2em;
    text-align: center;
    background: #007cba;
    color: white;
    border-radius: 50%;
    font-size: 1.0rem;
    font-weight: 600;
    margin-right: 0.5rem;
    margin-bottom: 0.2rem;
    vertical-align: middle;
}

/* Step arrow line */
.step-arrow-line {
    position: relative;
    height: 3px;
    background: #1877f2;
    margin-top: 0.5rem;
    margin-bottom: 0.02rem;
    margin-right: 0.3rem;
    border-radius: 1px;
}

.step-arrow-line::after {
    content: '';
    position: absolute;
    right: -6px;
    top: -3px;
    width: 0;
    height: 0;
    border-left: 8px solid #1877f2;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
}

/* Order Form Styles - Horizontal Layout */
.order-form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.order-form form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

.form-group {
    margin-bottom: 0;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 0;
    flex-direction: row; /* 桌面端保持水平布局 */
}

.form-group label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 500;
    color: #777;
    margin: 0;
    white-space: nowrap;
    flex-shrink: 0;
}

/* 必填字段星号样式 */
.form-group label .required-asterisk {
    color: #dc3545;
    font-weight: 600;
    margin-left: 2px;
}

.form-group input {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid #e1e5e9;
    border-radius: 4px;
    font-size: 0.8rem;
    transition: border-color 0.3s;
    box-sizing: border-box;
    min-width: 100px;
}

/* Placeholder样式 */
.form-group input::placeholder {
    color: #bdc2c9; /* 更灰的颜色 */
    opacity: 1; /* 确保在所有浏览器中显示一致 */
}

.form-group input:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.1);
}

/* Custom validation styles - only applied via JavaScript */
.form-group input.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.1);
}

/* Payment Method Fields Styles */
.additional-payment-fields {
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #e1e5e9;
    animation: slideDown 0.3s ease-out;
}

.additional-payment-fields .form-group {
    margin-bottom: 0.5rem;
}

.additional-payment-fields .form-group:last-child {
    margin-bottom: 0;
}

/* Payment method specific styles */
.payment-method-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.payment-method-group label {
    flex-shrink: 0;
}

.payment-method-group select {
    flex: 0 0 auto;
    width: 90px;
    padding: 0.8rem;
    border: 1px solid #e1e5e9;
    border-radius: 4px;
    font-size: 0.8rem;
    transition: border-color 0.3s;
    box-sizing: border-box;
    background-color: white;
}

.payment-method-group select:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.1);
}

.payment-method-group input {
    flex: 1;
    min-width: 0;
}

/* Animation for slide down effect */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
        max-height: 0;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        max-height: 200px;
    }
}

/* Payment methods button styles */
#payment-methods-btn {
    color: #007cba;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s ease;
    margin-bottom: 0.5rem;
    display: inline-block;
}

/* 电脑端专用样式 */
@media (min-width: 769px) {
    #payment-methods-btn {
        font-size: 0.7rem;
        height: 0.8rem;
    }
    
    /* 电脑端order-number-group宽度设置 */
    .form-group.order-number-group {
        flex: 0 0 40%; /* 占整行的5分之2 (2/5 = 0.4 = 40%) */
        max-width: 40%;
        min-width: 0;
    }
    
    /* 电脑端payment-method-group宽度设置 */
    .form-group.payment-method-group {
        flex: 1; /* 占据剩余空间 */
        min-width: 0;
    }
}

#payment-methods-btn:hover {
    color: #005a87;
    text-decoration: underline;
}

#payment-methods-btn.expanded {
    color: #6c757d;
}

#payment-methods-btn.expanded:hover {
    color: #495057;
}

/* Copied state styles */
#payment-methods-btn.copied {
    color: #28a745;
    font-weight: 600;
    background-color: #d4edda;
    padding: 0.5rem 0.5rem;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Error state styles */
#payment-methods-btn.error-state {
    color: #dc3545;
    font-weight: 600;
    background-color: #f8d7da;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Highlight copy effect for email field */
.form-group input.highlight-copy {
    border-color: #28a745;
    box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.2);
    transition: all 0.3s ease;
}

/* Submit Button */
.step-action-btn {
    background: #007cba;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
    margin: 0;
}

.step-action-btn:hover {
    background: #005a87;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 122, 186, 0.3);
}

.step-action-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Mobile Responsive Styles for Process */
@media (max-width: 768px) {
    /* 移动端显示步骤说明 */
    .mobile-steps-overview {
        display: block;
    }
    
    .process-container {
        flex-direction: row;
        gap: 0.5rem;
    }
    
    /* 移动端隐藏step1和step3，只显示step2 */
    #step-buy-now,
    #step-cashback {
        display: none !important;
    }
    
    #step-order-info {
        flex: 1 !important;
        width: 100%;
    }
    
    .process-step {
        padding: 0.75rem;
        min-height: auto;
        flex: 1 !important; /* Reset flex on mobile */
    }
    
    .step-title {
        font-size: 0.9rem;
        margin-bottom: 0.125rem;
    }
    
    .step-description {
        font-size: 0.75rem;
    }
    
    .step-number {
        font-size: 0.75rem;
        width: 1.1em;
        height: 1.1em;
        line-height: 1.1em;
        display: none; /* 移动端隐藏step number */
    }
    
    .step-arrow-line {
        height: 1.5px;
        margin-top: 0.4rem;
        margin-bottom: 0.01rem;
    }
    
    .step-arrow-line::after {
        right: -5px;
        top: -2.5px;
        border-left: 6px solid #1877f2;
        border-top: 3px solid transparent;
        border-bottom: 3px solid transparent;
    }
    
    .order-form {
        flex-direction: row !important;
        align-items: stretch;
        gap: 0.5rem;
        flex-wrap: wrap;
        display: flex !important;
    }
    
    .order-form form {
        display: flex !important;
        flex-direction: row !important;
        align-items: stretch;
        gap: 0.5rem;
        flex-wrap: wrap;
        width: 100%;
    }
    
    .form-group {
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
        flex: 1;
        min-width: 0;
    }
    
    /* 移动端输入框布局 - 所有form-group都占满整行 */
    .form-group.order-number-group,
    .form-group.payment-method-group,
    .form-group.order-email-group {
        flex: 0 0 100% !important;
        width: 100%;
        min-width: 0;
        flex-direction: column;
        margin-bottom: 0.5rem;
    }
    
    /* 移动端支付方式组内部元素布局 */
    .form-group.payment-method-group {
        flex-direction: row !important;
        align-items: center;
        gap: 0.5rem;
        flex-wrap: wrap;
    }
    
    .form-group.payment-method-group select {
        flex: 0 0 auto;
        width: 120px;
        min-width: 0;
        margin-bottom: 0;
        font-size: 0.7rem;
    }
    
    .form-group.payment-method-group input {
        flex: 1;
        min-width: 0;
        margin-bottom: 0;
        min-width: 80px;
    }
    
    .form-group.payment-method-group select {
        width: 100%;
        min-width: 0;
        margin-bottom: 0.5rem;
    }
    
    .form-group.payment-method-group input {
        min-width: 0;
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    /* 移动端按钮布局 */
    #payment-methods-btn {
        flex: 0 0 auto;
        width: auto;
        text-align: center;
        margin-bottom: 0;
        padding: 0.5rem 0.8rem;
        background-color: #f8f9fa;
        border: 1px solid #e1e5e9;
        border-radius: 4px;
        white-space: nowrap;
        font-size: 0.8rem;
    }
    
    /* 移动端额外字段布局 */
    .additional-payment-fields {
        width: 100%;
        margin-top: 0.5rem;
    }
    
    .additional-payment-fields .form-group {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .form-group label {
        text-align: left;
        display: none; /* 移动端隐藏label */
    }
    
    /* 移动端必填字段星号样式 */
    .form-group label .required-asterisk {
        color: #dc3545;
        font-weight: 600;
    }
    
    .form-group input {
        width: 100%;
        min-width: 0;
    }
    
    .step-action-btn {
        width: 100%;
        margin-top: 0.25rem;
    }
    
    /* 移动端支付方式字段样式 */
    .additional-payment-fields {
        margin-top: 0.25rem;
        padding: 0.25rem;
    }
    
    .additional-payment-fields .form-group {
        margin-bottom: 0.25rem;
    }
    
    .payment-method-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .payment-method-group label {
        min-width: auto;
        width: 100%;
    }
    
    .payment-method-group select {
        width: 100%;
        min-width: 0;
    }
    
    .payment-method-group input {
        min-width: 0;
        width: 100%;
    }
    
    #enter-more-btn {
        margin-bottom: 0.25rem;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .promotion-process {
        padding: 0;
        margin-bottom: 0.5rem;
    }
    
    .mobile-steps-overview {
        padding: 0.25rem 0.5rem 0.25rem;
    }
    
    .mobile-step {
        font-size: 0.7rem;
    }
    
    .mobile-step span {
        font-size: 0.75rem;
        width: 1.1em;
        height: 1.1em;
        line-height: 1.1em;
        margin-right: 0.3rem;
    }
    
    /* 超小屏幕也隐藏step1和step3，只显示step2 */
    #step-buy-now,
    #step-cashback {
        display: none !important;
    }
    
    #step-order-info {
        flex: 1 !important;
        width: 100%;
    }
    
    .process-step {
        padding: 0.5rem;
    }

    .step-title {
        font-size: 0.8rem;
        margin-bottom: 0.125rem;
    }
    
    .step-description {
        font-size: 0.7rem;
    }
    
    .step-number {
        font-size: 0.7rem;
        width: 1em;
        height: 1em;
        line-height: 1em;
        display: none; /* 超小屏幕也隐藏step number */
    }
    
    .step-arrow-line {
        height: 1px;
        margin-top: 0.3rem;
        margin-bottom: 0.3rem;
    }
    
    .step-arrow-line::after {
        right: -4px;
        top: -2px;
        border-left: 5px solid #1877f2;
        border-top: 2.5px solid transparent;
        border-bottom: 2.5px solid transparent;
    }
    
    .form-group label {
        display: none; /* 超小屏幕也隐藏label */
    }
    
    /* 超小屏幕必填字段星号样式 */
    .form-group label .required-asterisk {
        color: #dc3545;
        font-weight: 600;
    }
    
    .form-group input {
        padding: 0.4rem;
        font-size: 0.75rem;
    }
    
    /* 超小屏幕输入框布局 - 所有form-group都占满整行 */
    .form-group.order-number-group,
    .form-group.payment-method-group,
    .form-group.order-email-group {
        flex: 0 0 100% !important;
        width: 100%;
        min-width: 0;
        flex-direction: column;
        margin-bottom: 0.4rem;
    }
    
    /* 超小屏幕支付方式组内部元素布局 */
    .form-group.payment-method-group {
        flex-direction: row !important;
        align-items: center;
        gap: 0.4rem;
        flex-wrap: wrap;
    }
    
    .form-group.payment-method-group select {
        flex: 0 0 auto;
        width: 100px;
        min-width: 0;
        margin-bottom: 0;
        font-size: 0.7rem;
    }
    
    .form-group.payment-method-group input {
        flex: 1;
        min-width: 0;
        margin-bottom: 0;
        min-width: 60px;
    }
    
    /* 超小屏幕按钮布局 */
    #payment-methods-btn {
        flex: 0 0 auto;
        width: auto;
        text-align: center;
        margin-bottom: 0;
        padding: 0.3rem 0.2rem;
        background-color: #f8f9fa;
        border: 1px solid #e1e5e9;
        border-radius: 4px;
        white-space: nowrap;
        font-size: 0.6rem;
    }
    
    /* 超小屏幕额外字段布局 */
    .additional-payment-fields {
        width: 100%;
        margin-top: 0.4rem;
    }
    
    .additional-payment-fields .form-group {
        width: 100%;
        margin-bottom: 0.4rem;
    }
    
    .step-action-btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.7rem;
    }
    
    /* 超小屏幕支付方式字段样式 */
    .additional-payment-fields {
        margin-top: 0.2rem;
        padding: 0.2rem;
    }
    
    .additional-payment-fields .form-group {
        margin-bottom: 0.2rem;
    }
    
    .payment-method-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .payment-method-group label {
        min-width: auto;
        width: 100%;
    }
    
    .payment-method-group select {
        width: 100%;
        min-width: 0;
    }
    
    .payment-method-group input {
        min-width: 0;
        width: 100%;
    }
    
    #enter-more-btn {
        margin-bottom: 0.2rem;
        font-size: 0.7rem;
    }
}
