:root {
    --primary-color: #8a2be2;
    --primary-light: #9d4edd;
    --secondary-color: #ff6b6b;
    --dark-color: #333;
    --light-color: #f8f9fa;
    --gray-color: #6c757d;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    
    --primary-dark: #8819ef;header
    --text-color: #333;
    --text-light: #666;
    --border-color: #e0e0e0;
    --shadow-light: rgba(0, 0, 0, 0.08);
    --shadow-medium: rgba(0, 0, 0, 0.12);
    --border-radius-lg: 16px;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f5f5;
    color: var(--dark-color);
    line-height: 1.6;
}

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

header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    padding: 20px 0;
    box-shadow: var(--box-shadow);
    /*position: sticky;*/
    top: 0;
    z-index: 100;
}

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

.logo {
    font-size: 1.8rem;
    font-weight: bold;
}

nav ul {
    display: flex;
    list-style: none;
}

nav li {
    margin-left: 20px;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

nav a:hover {
    text-decoration: underline;
}

/* Cart Styles */
.cart-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.cart-count {
    background-color: #4f46e5;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    line-height: 1;
}

/* Auth Page Styles */
.auth-container {
    max-width: 500px;
    margin: 40px auto;
    background-color: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.auth-tabs {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 1px solid #e9ecef;
}

.auth-tab-btn {
    background: none;
    border: none;
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 500;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.auth-tab-btn.active {
    color: #4f46e5;
    border-bottom-color: #4f46e5;
}

.auth-tab-btn:hover:not(.active) {
    color: #4f46e5;
    background-color: #f8f9fa;
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-form h2 {
    margin-bottom: 25px;
    font-size: 1.5rem;
    font-weight: 600;
    color: #212529;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #495057;
    font-size: 0.95rem;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #495057;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.switch-tab {
    font-size: 0.9rem;
    color: #4f46e5;
    text-decoration: none;
    transition: color 0.3s ease;
}

.switch-tab:hover {
    text-decoration: underline;
}

.form-note {
    margin-top: -10px;
    margin-bottom: 20px;
    font-size: 0.85rem;
    color: #6c757d;
}

.full-width {
    width: 100%;
}

/* Cart Page Styles */
.cart-container {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 30px;
    margin: 30px 0;
}

.cart-items {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.cart-item-card {
    display: grid;
    grid-template-columns: 100px 1fr 80px 120px 100px;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #e9ecef;
}

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

.cart-item-image {
    position: relative;
    width: 100%;
    height: 100px;
    background-color: #f8f9fa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.remove-item-btn {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #dc3545;
    color: white;
    border: none;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-item-btn:hover {
    background-color: #c82333;
}

.cart-item-details h3 {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #212529;
}

.cart-item-description {
    margin: 0 0 10px 0;
    color: #6c757d;
    font-size: 0.9rem;
}

.cart-item-options {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: #495057;
}

.cart-item-price,
.cart-item-subtotal {
    font-weight: 600;
    text-align: right;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid #ced4da;
    background-color: #ffffff;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn:hover {
    background-color: #4f46e5;
    color: white;
    border-color: #4f46e5;
}

.quantity-input {
    width: 50px;
    padding: 5px 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    text-align: center;
    font-size: 1rem;
}

.cart-summary {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 30px;
}

.cart-summary h2 {
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-weight: 600;
    color: #212529;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f1f3f5;
}

.summary-row:last-of-type {
    border-bottom: none;
}

.summary-row.total {
    font-size: 1.1rem;
    font-weight: 600;
    padding-top: 20px;
    margin-top: 10px;
    border-top: 2px solid #e9ecef;
}

.summary-amount {
    font-weight: 500;
}

.summary-total {
    color: #4f46e5;
    font-size: 1.2rem;
}

.coupon-section {
    margin: 20px 0;
    display: flex;
    gap: 10px;
}

.coupon-input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    font-size: 0.9rem;
}

.apply-coupon-btn {
    white-space: nowrap;
}

.cart-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 30px;
}

.continue-shopping-btn,
.checkout-btn {
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.empty-cart {
    text-align: center;
    padding: 60px 20px;
}

.empty-cart-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.empty-cart h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
    color: #212529;
}

.empty-cart p {
    margin-bottom: 20px;
    color: #6c757d;
}

/* Responsive */
@media (max-width: 1024px) {
    .cart-container {
        grid-template-columns: 1fr;
    }
    
    .cart-summary {
        position: static;
    }
}

@media (max-width: 768px) {
    .cart-item-card {
        grid-template-columns: 1fr;
        gap: 15px;
        text-align: center;
    }
    
    .cart-item-image {
        width: 100px;
        height: 100px;
        margin: 0 auto;
    }
    
    .cart-item-price,
    .cart-item-subtotal {
        text-align: center;
    }
    
    .auth-container {
        padding: 20px;
    }
    
    .auth-tabs {
        flex-direction: column;
    }
    
    .auth-tab-btn {
        text-align: left;
    }
}

@media (max-width: 576px) {
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .coupon-section {
        flex-direction: column;
    }
}

.page {
    background: white;
    border-radius: var(--border-radius);
    padding: 20px;
    margin-top: 30px;
    box-shadow: var(--box-shadow);
}

h1, h2, h3 {
    margin-bottom: 15px;
    color: var(--dark-color);
}

h1 {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 30px;
}

h2 {
    font-size: 1.8rem;
    border-bottom: 2px solid var(--light-color);
    padding-bottom: 10px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.product-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    cursor: pointer;
    border: 3px solid transparent;
}

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

.product-card.selected {
    border-color: var(--primary-color);
}

.product-image {
    height: 200px;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.product-info {
    padding: 15px;
}

.product-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.product-price {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.1rem;
}

.design-area {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}


.preview-panel {
    flex: 2;
    min-width: 500px;
    border-radius: var(--border-radius);
    padding: 15px;
    background: #f9f9f9;
}

.instruction {
    color: var(--gray-color);
    margin-bottom: 15px;
    font-style: italic;
}

/* 修复：贴纸容器样式 - 确保非正方形图片正确显示 */
.sticker-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 8px;
    margin-top: 8px;
}

.sticker-item {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--border-radius);
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    transition: var(--transition);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    padding: 8px;
}

.sticker-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* SVG贴纸样式 */
.sticker-item svg {
    max-width: 90%;
    max-height: 90%;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Emoji贴纸样式 */
.sticker-emoji {
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* 图片贴纸样式 */
.sticker-item img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    display: block;
    margin: auto;
}

.sticker-emoji img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.preview-container {
    position: relative;
    width: 100%;
    height: 600px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    overflow: hidden;
    background-color: white;
    margin-bottom: 20px;
    width: 620px;
    align-items: center;
    justify-content: center;
}

#product-preview {
    width: 100%;
 
    position: relative;
   
    
    font-size: 8rem;
}

#product-preview img {
  
  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: contain;
  object-position: center;

  display: block;
}

.sticker-on-product {
    position: absolute;
    cursor: move;
    user-select: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.sticker-on-product svg, .sticker-on-product .sticker-emoji {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.sticker-controls {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    opacity: 0;
    transition: var(--transition);
}

.sticker-on-product:hover .sticker-controls {
    opacity: 1;
}

.control-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
}

.controls {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.control-group {
    flex: 1;
    min-width: 200px;
}

.color-options {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.color-option {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.color-option.selected {
    border-color: var(--dark-color);
    transform: scale(1.1);
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

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

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: var(--light-color);
    color: var(--dark-color);
    border: 1px solid #ddd;
}

.btn-secondary:hover {
    background: #e9ecef;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.step-indicator {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    width: 120px;
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 60px;
    width: 120px;
    height: 2px;
    background-color: #ddd;
    z-index: 1;
}

.step.active:not(:last-child)::after {
    background-color: var(--primary-color);
}

.step.completed:not(:last-child)::after {
    background-color: var(--primary-color);
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 8px;
    z-index: 2;
    transition: var(--transition);
}

.step.active .step-circle {
    background-color: var(--primary-color);
    color: white;
}

.step.completed .step-circle {
    background-color: var(--primary-color);
    color: white;
}

.step-label {
    font-size: 0.9rem;
    text-align: center;
}

footer {
    text-align: center;
    margin-top: 50px;
    padding: 20px;
    color: var(--gray-color);
    border-top: 1px solid #eee;
}

@media (max-width: 768px) {
    .design-area {
        flex-direction: column;
    }
    
    .preview-panel, .sticker-panel {
        min-width: 100%;
    }
    
    .step:not(:last-child)::after {
        width: 60px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    #product-preview {
        font-size: 6rem;
    }
}

/* Shipping & Returns Section Styles */
.shipping-returns-section {
    background-color: #f5f5f5;
    padding: 80px 0;
}

.shipping-returns-section h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 20px;
    color: #333;
}

.shipping-returns-section .section-description {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
    font-size: 18px;
    color: #666;
}

.shipping-returns-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.shipping-info,
.returns-policy {
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.shipping-info h3,
.returns-policy h3 {
    font-size: 24px;
    margin-bottom: 25px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.shipping-info h3 i,
.returns-policy h3 i {
    color: var(--primary-color);
    font-size: 28px;
}

.shipping-options,
.return-policy-content {
    margin-bottom: 25px;
}

.shipping-option,
.policy-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.shipping-option:last-child,
.policy-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.shipping-option h4,
.policy-item h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.shipping-option p,
.policy-item p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

.shipping-notes,
.return-contact {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.shipping-notes p,
.return-contact p {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

.shipping-notes i,
.return-contact i {
    color: var(--primary-color);
    margin-right: 8px;
}

.return-contact a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.return-contact a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Responsive adjustments for shipping & returns section */
@media (max-width: 768px) {
    .shipping-returns-section {
        padding: 60px 0;
    }
    
    .shipping-returns-section h2 {
        font-size: 28px;
    }
    
    .shipping-returns-section .section-description {
        font-size: 16px;
        margin-bottom: 40px;
    }
    
    .shipping-returns-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .shipping-info,
    .returns-policy {
        padding: 25px;
    }
    
    .shipping-info h3,
    .returns-policy h3 {
        font-size: 20px;
    }
    
    .shipping-option h4,
    .policy-item h4 {
        font-size: 16px;
    }
}

/* Process Section Styles */
.process-section {
    background-color: #f9f9f9;
    padding: 80px 0;
}

.process-section h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 20px;
    color: #333;
}

.process-section .section-description {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
    font-size: 18px;
    color: #666;
}

.process-steps {
    display: flex;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 20px;
    margin-bottom: 60px;
}

.process-step {
    flex: 1;
    min-width: 180px;
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.process-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.step-number {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 14px;
    font-weight: bold;
    color: var(--primary-color);
    opacity: 0.8;
}

.step-icon {
    width: 80px;
    height: 80px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
}

.step-icon i {
    display: block;
    font-size: 32px;
    line-height: 1;
    color: white;
    opacity: 1;
}

.process-step h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

.process-step p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

.process-timeline {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.timeline-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Responsive adjustments for process section */
@media (max-width: 768px) {
    .process-section {
        padding: 60px 0;
    }
    
    .process-section h2 {
        font-size: 28px;
    }
    
    .process-section .section-description {
        font-size: 16px;
        margin-bottom: 40px;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .process-step {
        padding: 25px;
    }
    
    .step-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
}

/* Contact Section Styles */
.contact-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.contact-section h2 {
    text-align: center;
    margin-bottom: 50px;
    color: #333;
    font-size: 2.5rem;
}

.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.contact-form,
.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-form h3,
.contact-info h3 {
    color: #2c3e50;
    margin-bottom: 30px;
    font-size: 1.8rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.1);
}

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

.submit-btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #2980b9;
}

.info-item {
    margin-bottom: 30px;
}

.info-item h4 {
    color: #2c3e50;
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.info-item p {
    margin-bottom: 8px;
    color: #555;
    line-height: 1.6;
}

/* About Us Section Styles */
.about-section {
    padding: 80px 0;
    background-color: #fff;
}

.about-section h2 {
    text-align: center;
    margin-bottom: 50px;
    color: #333;
    font-size: 2.5rem;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 80px;
}

.about-image {
    flex: 1;
    min-width: 300px;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.about-text p {
    margin-bottom: 20px;
    line-height: 1.7;
    color: #555;
}

.our-values {
    margin-top: 30px;
}

.our-values h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.our-values ul {
    list-style-type: none;
    padding: 0;
}

.our-values li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    color: #555;
}

.our-values li:last-child {
    border-bottom: none;
}

.our-team h3 {
    text-align: center;
    margin-bottom: 40px;
    color: #2c3e50;
    font-size: 1.8rem;
}

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

.team-member {
    text-align: center;
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 3px solid #f0f0f0;
}

.team-member h4 {
    color: #2c3e50;
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.team-member p {
    color: #777;
    font-size: 0.9rem;
}

/* FAQ Section Styles */
.faq-section {
    background-color: #f8f8f8;
    padding: 80px 0;
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 50px;
    color: #333;
    font-size: 2.5rem;
}

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

.faq-item {
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background-color: #fff;
}

.faq-question {
    width: 100%;
    padding: 20px;
    text-align: left;
    background: none;
    border: none;
    outline: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #f1f1f1;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: bold;
    color: #555;
    transition: transform 0.3s ease;
}

.faq-question.active::after {
    transform: rotate(45deg);
}

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

.faq-answer p {
    padding: 0 20px 20px;
    margin: 0;
    color: #666;
    line-height: 1.6;
}

/* Past Projects & Customer Reviews Styles */
.testimonials-section {
    background-color: white;
    padding: 60px 0;
    margin-top: 50px;
}

.testimonials-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

.testimonials-section h2 {
    text-align: center;
    font-size: 2rem;
    color: var(--dark-color);
    margin-bottom: 60px;
    position: relative;
    padding-bottom: 15px;
    border-bottom: none;
}

.testimonials-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Projects Section Styles */
.projects-section {
    margin-bottom: 60px;
}

.projects-section h3,
.reviews-section h3 {
    font-size: 1.5rem;
    color: var(--dark-color);
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    padding-bottom: 10px;
}

.projects-section h3::after,
.reviews-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--primary-light);
    border-radius: 2px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.project-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
}

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

.project-image {
    height: 366px;
    width: 366px;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
}

.project-info {
    padding: 20px;
    flex: 1;
}

.project-info h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.project-info p {
    color: var(--gray-color);
    line-height: 1.6;
    font-size: 0.95rem;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.testimonial-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border-top: 4px solid var(--primary-color);
}

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

.rating {
    color: #ffc107;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.testimonial-content {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--dark-color);
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.author-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.author-product {
    font-size: 0.9rem;
    color: var(--gray-color);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .testimonials-section {
        padding: 40px 0;
    }
    
    .testimonials-section h2 {
        font-size: 1.6rem;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .testimonial-card {
        padding: 20px;
    }
}

/* 添加到现有的 styles.css 文件末尾 */

/* Order Page Specific Styles */
.order-summary {
    background: var(--light-color);
    border-radius: var(--border-radius);
    padding: 25px;
    margin: 25px 0;
    box-shadow: var(--box-shadow);
}

.order-summary h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    border-bottom: 2px solid var(--primary-light);
    padding-bottom: 10px;
}

.order-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-top: 15px;
}

.order-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
    align-items: center;
}

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

.order-total {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary-color);
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #dee2e6;
}

.design-preview {
    background: white;
    border-radius: var(--border-radius);
    padding: 25px;
    margin: 25px 0;
    box-shadow: var(--box-shadow);
    border: 1px solid #e9ecef;
}

.design-preview h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.preview-mini {
    position: relative;
    /*width: 250px;
    height: 200px;*/
    border: 2px solid #dee2e6;
    border-radius: var(--border-radius);
    margin: 20px auto;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

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

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px;
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    background: white;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(138, 43, 226, 0.1);
    background: #fafafa;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #6c757d;
    opacity: 0.7;
}

/* Payment Page Specific Styles */
.payment-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.payment-option {
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius);
    padding: 25px 15px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: white;
}

.payment-option:hover {
    border-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.payment-option.selected {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.05) 0%, rgba(157, 78, 221, 0.05) 100%);
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.15);
}

.payment-option div:first-child {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.payment-option div:last-child {
    font-weight: 600;
    color: var(--dark-color);
}

.payment-form {
    background: var(--light-color);
    border-radius: var(--border-radius);
    padding: 25px;
    margin: 20px 0;
    border: 1px solid #e9ecef;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.card-input-group {
    position: relative;
}

.card-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: #6c757d;
}

.terms-agreement {
    margin: 30px 0;
    padding: 25px;
    background: var(--light-color);
    border-radius: var(--border-radius);
    border: 1px solid #e9ecef;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
}

.checkbox-label input {
    margin-right: 12px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-label a {
    color: var(--primary-color);
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

.payment-info {
    text-align: center;
    padding: 20px;
}

.payment-info p {
    color: var(--gray-color);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .order-details {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .payment-options {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    
    
    .order-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .order-total {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .order-summary,
    .design-preview,
    .payment-form,
    .terms-agreement {
        padding: 20px 15px;
    }
    
    .payment-option {
        padding: 20px 10px;
    }
    
   
}

/* Loading States */
.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-right-color: transparent;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Success States */
.success-checkmark {
    color: #28a745;
    font-size: 3rem;
    margin-bottom: 20px;
}

/* Error States */
.error-message {
    color: #dc3545;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 12px;
    border-radius: var(--border-radius);
    margin: 10px 0;
    display: none;
}

.error-message.show {
    display: block;
}

/* Enhanced Form Validation */
.form-group.error input,
.form-group.error textarea,
.form-group.error select {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.form-group.success input,
.form-group.success textarea,
.form-group.success select {
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

/* Price Highlight */
.price-highlight {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.1em;
}

/* Section Dividers */
.section-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, #dee2e6, transparent);
    margin: 30px 0;
}

/* Improved Drag and Drop Styles */
.sticker-item {
    transition: all 0.2s ease;
    cursor: grab;
}

.sticker-item:active {
    cursor: grabbing;
}

.sticker-item.dragging-source {
    opacity: 0.4;
    transform: scale(0.95);
}

.preview-container.drag-over {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(138, 43, 226, 0.2) !important;
    background-color: rgba(138, 43, 226, 0.05) !important;
}

.sticker-on-product {
    cursor: grab;
    transition: transform 0.1s ease, box-shadow 0.2s ease;
}

.sticker-on-product:active {
    cursor: grabbing;
}

.sticker-on-product.dragging {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

/* Improved sticker controls */
.sticker-controls {
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    opacity: 0;
    transition: all 0.3s ease;
    background: white;
    padding: 5px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.sticker-on-product:hover .sticker-controls {
    opacity: 1;
    bottom: -40px;
}

.control-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.2s ease;
    border: none;
}

.control-btn:hover {
    background: var(--primary-light);
    transform: scale(1.1);
}

/* Touch device improvements */
@media (hover: none) {
    .sticker-controls {
        opacity: 1;
        bottom: -40px;
    }
    
    .sticker-on-product {
        cursor: pointer;
    }
}

/* Performance optimizations */
.sticker-on-product * {
    pointer-events: none;
}

.sticker-on-product .sticker-controls * {
    pointer-events: auto;
}

/* Smooth animations */
.sticker-item,
.sticker-on-product,
.preview-container {
    will-change: transform;
}

/* Drop zone visual feedback */
.preview-container::before {
    content: 'Drop patches here';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--gray-color);
    font-size: 1.2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.preview-container:empty::before {
    opacity: 1;
}

.preview-container.drag-over::before {
    color: var(--primary-color);
    font-weight: bold;
}

/* === Sticker filters === */
.sticker-filters {
    display: grid;
    gap: 12px;
    margin: 12px 0 8px;
}

.sticker-search-input {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius);
    font-size: 0.95rem;
    transition: var(--transition);
    background: white;
}
.sticker-search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(138, 43, 226, 0.08);
}

.sticker-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category-chip {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 999px;
    background: #fff;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
}
.category-chip:hover { border-color: var(--primary-light); transform: translateY(-1px); }
.category-chip.active {
    background: rgba(138, 43, 226, 0.08);
    border-color: var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
}

/* === 会员中心样式 === */
.member-dashboard {
    margin-top: 30px;
}

/* 会员信息卡片 */
.member-profile-card {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.05) 0%, rgba(157, 78, 221, 0.05) 100%);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
    margin-bottom: 30px;
}

.member-avatar {
    margin-right: 30px;
}

.avatar-placeholder {
    width: 100px;
    height: 100px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.member-info {
    flex: 1;
}

.member-name {
    font-size: 1.8rem;
    margin-bottom: 5px;
    color: var(--dark-color);
}

.member-email {
    color: var(--gray-color);
    margin-bottom: 10px;
}

.member-level {
    margin-bottom: 15px;
}

.level-badge {
    background-color: #ffc107;
    color: #856404;
    padding: 2px 10px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
}

.member-stats {
    display: flex;
    gap: 40px;
    margin-top: 15px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.stat-label {
    color: var(--gray-color);
    font-size: 0.9rem;
}

/* 标签导航 */
.member-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
    overflow-x: auto;
}

.tab-btn {
    padding: 10px 20px;
    border: none;
    background: none;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    color: var(--gray-color);
    border-bottom: 3px solid transparent;
    transition: var(--transition);
    white-space: nowrap;
}

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

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* 标签内容 */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* 订单过滤 */
.orders-filter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

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

.filter-btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.filter-btn:hover {
    border-color: var(--primary-light);
}

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

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

.search-input {
    padding: 8px 15px;
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius);
    width: 250px;
    font-size: 0.9rem;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.search-btn {
    padding: 8px 15px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.search-btn:hover {
    background: var(--primary-light);
}

/* 订单列表 */
.orders-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.order-item-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
    overflow: hidden;
}

/* Order Link Styles */
.order-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.order-link:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
}

.order-link:hover .order-item-card {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.order-id {
    font-weight: 600;
    color: var(--dark-color);
}

.order-status {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
}

.status-completed {
    background-color: #d4edda;
    color: #155724;
}

.status-processing {
    background-color: #fff3cd;
    color: #856404;
}

.order-details {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.product-preview-mini {
    display: flex;
    align-items: center;
    gap: 15px;
}

.product-image-mini {
    width: 60px;
    height: 60px;
    background-color: #f8f9fa;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.product-name-mini {
    font-weight: 600;
}

.order-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    color: var(--gray-color);
}

.order-price {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.order-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    z-index: 1;
    position: relative;
}

.action-btn {
    padding: 8px 15px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 30px;
}

.page-btn {
    padding: 8px 15px;
    border: 1px solid #ddd;
    background: white;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.page-btn:hover:not(:disabled) {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

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

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 地址管理 */
.add-address-btn {
    margin-bottom: 20px;
}

.addresses-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.address-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
    position: relative;
}

/* Order Details Page Styles */
.order-details-container {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.order-header-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

.order-id-tracking {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.order-id-tracking h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    color: #212529;
}

.order-id {
    font-weight: 600;
    color: #4f46e5;
}

.order-date {
    font-size: 0.95rem;
    color: #6c757d;
}

.order-tracking-section,
.order-items-section,
.shipping-info-section,
.billing-info-section,
.order-summary-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

.order-tracking-section h3,
.order-items-section h3,
.shipping-info-section h3,
.billing-info-section h3,
.order-summary-section h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #212529;
}

/* Tracking Timeline */
.tracking-timeline {
    position: relative;
    margin-bottom: 20px;
}

.timeline-item {
    display: flex;
    position: relative;
    padding-bottom: 25px;
}

.timeline-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 20px;
    top: 40px;
    bottom: 0;
    width: 2px;
    background-color: #e9ecef;
}

.timeline-item.completed:not(:last-child)::after {
    background-color: #10b981;
}

.timeline-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #6c757d;
    margin-right: 20px;
    flex-shrink: 0;
    z-index: 1;
}

.timeline-item.completed .timeline-icon {
    background-color: #10b981;
    color: white;
}

.timeline-content {
    flex: 1;
}

.timeline-title {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: #212529;
}

.timeline-date {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 5px;
}

.timeline-description {
    font-size: 0.95rem;
    color: #495057;
}

/* Tracking Info */
.tracking-info {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
}

.tracking-info p {
    margin: 8px 0;
    font-size: 0.95rem;
}

.track-shipment-btn {
    margin-top: 10px;
}

/* Order Items List */
.order-items-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.order-item {
    display: grid;
    grid-template-columns: 1fr 3fr 1fr 1fr 1fr;
    align-items: center;
    gap: 20px;
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
}

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

.item-image {
    width: 80px;
    height: 80px;
    background-color: #f8f9fa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.item-details h4 {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.item-details p {
    margin: 0 0 8px 0;
    color: #6c757d;
    font-size: 0.95rem;
}

.item-options {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: #495057;
}

.item-price,
.item-quantity,
.item-subtotal {
    text-align: right;
    font-size: 0.95rem;
}

.item-subtotal {
    font-weight: 600;
}

/* Shipping Information */
.shipping-method {
    margin-top: 15px;
    font-size: 0.95rem;
    color: #495057;
}

/* Billing Details */
.billing-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.billing-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
}

.billing-row span:first-child {
    color: #6c757d;
}

.billing-row span:last-child {
    font-weight: 500;
}

/* Order Summary */
.summary-table {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    padding: 5px 0;
}

.summary-row span:first-child {
    color: #6c757d;
}

.summary-row.total {
    font-size: 1.1rem;
    font-weight: 600;
    padding-top: 15px;
    margin-top: 10px;
    border-top: 1px solid #e9ecef;
}

.summary-row.total span {
    color: #212529;
}

/* Order Actions */
.order-actions-section {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    padding-top: 20px;
}

/* Status Badge */
.order-status-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
}

.order-status-badge.status-completed {
    background-color: #d1fae5;
    color: #065f46;
}

.order-status-badge.status-processing {
    background-color: #dbeafe;
    color: #1e40af;
}

.order-status-badge.status-shipping {
    background-color: #fed7aa;
    color: #9a3412;
}

.order-status-badge.status-cancelled {
    background-color: #fee2e2;
    color: #991b1b;
}

/* Responsive */
@media (max-width: 768px) {
    .order-details-container {
        padding: 20px;
    }
    
    .order-id-tracking {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .order-item {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .item-price,
    .item-quantity,
    .item-subtotal {
        text-align: left;
    }
    
    .order-actions-section {
        flex-direction: column;
        gap: 10px;
    }
    
    .timeline-item.mobile {
        position: relative;
    }
    
    .timeline-item.mobile:not(:last-child)::after {
        left: 20px;
    }
}

@media (max-width: 576px) {
    .timeline-content {
        font-size: 0.9rem;
    }
    
    .timeline-title {
        font-size: 1rem;
    }
}

.address-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.address-name {
    font-weight: 600;
}

.address-phone {
    color: var(--gray-color);
}

.default-tag {
    background-color: var(--primary-color);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
    margin-left: auto;
}

.address-detail {
    color: var(--dark-color);
    line-height: 1.6;
    margin-bottom: 15px;
}

.address-actions {
    display: flex;
    gap: 10px;
}

/* 收藏设计 */
.favorites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.favorite-item {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
}

.favorite-image {
    position: relative;
    height: 200px;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.unfavorite-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: #dc3545;
    transition: var(--transition);
}

.unfavorite-btn:hover {
    background: #dc3545;
    color: white;
    transform: scale(1.1);
}

.favorite-info {
    padding: 15px;
}

.favorite-title {
    font-weight: 600;
    margin-bottom: 5px;
}

.favorite-date {
    color: var(--gray-color);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.favorite-action {
    width: 100%;
}

/* 设置表单 */
.settings-form {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
}

.form-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.form-section h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.checkbox-group {
    margin-bottom: 15px;
}

.save-settings-btn {
    margin-top: 20px;
}

/* 导航栏活跃状态 */
nav a.active {
    text-decoration: underline;
    font-weight: bold;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .member-profile-card {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .member-avatar {
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .member-stats {
        justify-content: center;
        gap: 20px;
    }
    
    .orders-filter {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-input {
        width: 100%;
    }
    
    .order-details {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .product-preview-mini {
        justify-content: center;
    }
    
    .order-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .address-header {
        flex-wrap: wrap;
    }
    
    .default-tag {
        margin-left: 0;
        margin-top: 5px;
    }
    
    .address-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .favorites-grid {
        grid-template-columns: 1fr;
    }
    
    .settings-form {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .member-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
    }
    
    .member-tabs::-webkit-scrollbar {
        display: none; /* Chrome, Safari */
    }
    
    .filter-buttons {
        justify-content: center;
    }
    
    .tab-btn {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
}

/* Newsletter Section Styles */
.newsletter-section {
    background-color: #4a4a4a;
    color: white;
    padding: 80px 0;
}

.newsletter-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    gap: 30px;
}

.newsletter-text {
    flex: 1;
    min-width: 300px;
}

.newsletter-text h2 {
    font-size: 32px;
    margin-bottom: 15px;
    color: white;
}

.newsletter-text p {
    font-size: 18px;
    opacity: 0.9;
    margin: 0;
}

.newsletter-form {
    flex: 1;
    min-width: 300px;
}

.subscription-form {
    display: flex;
    flex-direction: column;
}

.subscription-form .form-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.subscription-form input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    outline: none;
}

.subscribe-btn {
    background-color: #e67e22;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.subscribe-btn:hover {
    background-color: #d35400;
}

.privacy-note {
    font-size: 14px;
    opacity: 0.8;
}

.privacy-note i {
    margin-right: 8px;
}

.newsletter-benefits {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: rgba(255, 255, 255, 0.15);
    padding: 12px 20px;
    border-radius: 50px;
    font-size: 16px;
}

.benefit-item i {
    font-size: 20px;
}

/* Responsive adjustments for newsletter section */
@media (max-width: 768px) {
    .newsletter-section {
        padding: 60px 0;
    }
    
    .newsletter-content {
        flex-direction: column;
        text-align: center;
    }
    
    .newsletter-text h2 {
        font-size: 28px;
    }
    
    .newsletter-text p {
        font-size: 16px;
        margin-bottom: 20px;
    }
    
    .subscription-form .form-group {
        flex-direction: column;
    }
    
    .subscribe-btn {
        width: 100%;
    }
    
    .newsletter-benefits {
        flex-direction: column;
        align-items: center;
    }
    
    .benefit-item {
        width: 100%;
        justify-content: center;
    }
}

/* Social Media Styles */
.social-media {
    text-align: center;
    margin-bottom: 20px;
}

.social-media h3 {
    color: #333;
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f8f9fa;
    color: #6c757d;
    font-size: 18px;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 2px solid transparent;
}

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

.social-link:nth-child(1):hover {
    background-color: #1877f2;
    color: white;
    border-color: #1877f2;
}

.social-link:nth-child(2):hover {
    background-color: #1da1f2;
    color: white;
    border-color: #1da1f2;
}

.social-link:nth-child(3):hover {
    background-color: #e1306c;
    color: white;
    border-color: #e1306c;
}

.social-link:nth-child(4):hover {
    background-color: #bd081c;
    color: white;
    border-color: #bd081c;
}

.social-link:nth-child(5):hover {
    background-color: #ff0000;
    color: white;
    border-color: #ff0000;
}

/* Social Media Responsive Styles */
@media (max-width: 768px) {
    .social-links {
        gap: 10px;
    }
    
    .social-link {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .social-media h3 {
        font-size: 1.1rem;
    }
    
    .social-links {
        gap: 8px;
    }
    
    .social-link {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
}

/* 分页样式 - 紧凑美观版 */
.sticker-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1rem auto;
    gap: 6px;
    flex-wrap: nowrap;
    width: 100%;
    /*max-width: 280px;
    padding: 8px 12px;*/
}

.pagination-btn {
    width: 30px;
    height: 30px;
    min-width: 30px;
    border: 1px solid #e0e0e0;
    background: white;
    color: #333;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.pagination-btn:hover:not(:disabled) {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(138, 43, 226, 0.25);
}

.pagination-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(138, 43, 226, 0.3);
}

.pagination-btn:disabled {
    cursor: not-allowed;
    opacity: 0.4;
    background: #f5f5f5;
    transform: none !important;
    box-shadow: none !important;
}

/* 箭头按钮 */
.pagination-prev,
.pagination-next {
    width: 30px;
    min-width: 30px;
    font-size: 16px;
    font-weight: 600;
}

/* 空状态样式 */
.sticker-empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem;
    color: var(--gray-color);
    font-size: 0.95rem;
}

/* 确保在小屏幕上也能正常显示 */
@media (max-width: 400px) {
    .sticker-pagination {
        max-width: 260px;
        gap: 4px;
        padding: 6px 10px;
    }
    
    .pagination-btn {
        width: 34px;
        height: 34px;
        min-width: 34px;
        font-size: 13px;
    }
    
    .pagination-prev,
    .pagination-next {
        width: 36px;
        min-width: 36px;
        font-size: 15px;
    }
}




    /* 设计区域布局 */
    .design-area {
        display: flex;
        gap: 1rem;
        margin-top: 2rem;
        min-height: 800px;
    }
    
    /* 左侧贴纸区域 */
    /* 修改 .design-area 为 Grid 布局 */
.design-area {
    display: grid;
    grid-template-columns: 440px 1fr; /* 固定宽度 + 自适应 */
    gap: 2rem;
    margin-top: 2rem;
    min-height: 800px;
    position: relative;
}

/* 左侧贴纸区域 */
.sticker-panel {
    grid-column: 1;
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    box-shadow: 0 2px 12px var(--shadow-light);
    /*height: fit-content;
    max-height: min(1150px, calc(100vh - 150px));*/
    overflow-y: auto;
    
    /* 使用 sticky 定位 */
    position: sticky;
    top: 20px;
    align-self: start;
}

/* 右侧区域 */
.preview-panel {
    grid-column: 2;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* 确保没有父级 overflow 限制 */
.container {
    overflow: visible !important;
}


    
    /* 右侧预览区域 */
    .preview-panel {
        flex: 1;
        display: flex;
        flex-direction: column;
        min-height: 850px;
    }
    
    /* 预览容器 */
    .preview-container {
        position: relative;
        flex: 1;
        min-height: 750px;
        border: 2px solid var(--border-color);
        border-radius: var(--border-radius-lg);
        background: white;
        overflow: hidden;
        /*margin-bottom: 1.5rem;*/
        transition: border-color var(--transition-fast);
    }

    #product-preview {
        width: 100%;
       
        align-items: center;
        justify-content: center;
        background: #f8f9fa;
    }

    .product-preview-img {
        max-width: 100%;
        max-height: 100%;
        width: auto;
        height: auto;
        object-fit: contain;
        transition: opacity var(--transition-normal);
    }

    .preview-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        pointer-events: none;
        z-index: 1;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(2px);
    }

    .drag-hint {
        background: rgba(74, 108, 247, 0.95);
        color: white;
        padding: 1rem 2rem;
        border-radius: 30px;
        font-size: 1rem;
        font-weight: 500;
        box-shadow: 0 4px 16px rgba(74, 108, 247, 0.4);
        display: flex;
        align-items: center;
        gap: 0.75rem;
        border: 2px solid white;
    }

.sticker-emoji-preview img{    max-width: 490px;    max-height: 490px;    object-fit: contain;}
    /* 修复贴纸容器样式 */
    .sticker-on-product {
        position: absolute;
        cursor: move;
        transition: transform var(--transition-fast), box-shadow var(--transition-fast);
        background: transparent;
        outline: none;
        border: none;
        padding: 0;
        margin: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
    }
    
    .sticker-on-product:hover {
        transform: scale(1.02);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
        z-index: 100 !important;
    }
    
    /* 内容容器 - 确保完全填充 */
    .sticker-content {
        width: 100% !important;
        height: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: transparent !important;
        overflow: hidden;
        border-radius: 8px;
    }
    
    /* SVG容器样式 */
    .sticker-svg-container {
        width: 100% !important;
        height: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: transparent !important;
    }
    
    .sticker-svg-container svg {
        max-width: 100% !important;
        max-height: 100% !important;
        width: auto !important;
        height: auto !important;
        display: block !important;
        background: transparent !important;
        object-fit: contain;
    }
    
    /* Emoji样式 */
    .sticker-emoji {
        width: 100% !important;
        height: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: transparent;
        font-family: 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', sans-serif;
        font-weight: normal;
        text-align: center;
        line-height: 1 !important;
    }

   
    
    /* 移除所有可能导致透明的样式 */
    .control-btn,
    .control-btn * {
        background: transparent !important;
        color: white !important;
    }
    
    .control-btn:before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        border-radius: 50%;
        z-index: -1;
    }
    
    .control-btn:active {
        transform: scale(0.9) !important;
    }
    
    /* 优化贴纸悬停状态，避免控制条影响布局 */


/* 按钮基础样式：移除 hover 时的 scale 变形 */
.control-btn {
    transition: background-color var(--transition-fast), opacity var(--transition-fast) !important;
    transform: none !important; /* 禁止缩放变形 */
}



/* 3. 彻底禁用按钮悬停时的位移/缩放动画 */
.control-btn {
    transition: background-color 0.2s, opacity 0.2s !important;
    transform: none !important; /* 禁止缩放 */
    cursor: pointer;
}

.control-btn:hover {
    transform: none !important; /* 再次确保悬停时不缩放 */
    filter: brightness(1.1); /* 用亮度变化代替形变 */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

/* 4. 防止 SVG 或 Emoji 容器拦截事件 */
.sticker-content, .sticker-emoji, .sticker-svg-container {
    pointer-events: none; /* 让事件穿透到父级容器（sticker-on-product）统一处理 */
}


    /* 删除按钮 - 红色背景 */
    .control-delete {
        background: linear-gradient(135deg, #ff4444, #ff2222) !important;
        color: white !important;
        border: 2px solid white !important;
    }
    
    .control-delete:hover {
        background: linear-gradient(135deg, #ff2222, #ff0000) !important;
        transform: scale(1.15) !important;
        box-shadow: 0 4px 15px rgba(255, 68, 68, 0.5) !important;
    }
    
    /* 旋转按钮 - 蓝色背景 */
    .control-rotate {
        background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)) !important;
        color: white !important;
        border: 2px solid white !important;
    }
    
    .control-rotate:hover {
        background: linear-gradient(135deg, var(--primary-dark), #2a4ac7) !important;
        transform: scale(1.15) !important;
        box-shadow: 0 4px 15px rgba(74, 108, 247, 0.5) !important;
    }

    /* 控制组样式 */
    .control-group {
        margin-top: -1.5rem;
        margin-bottom: 1rem;
        background: white;
        border-radius: var(--border-radius);
        padding: 0.5rem;
        box-shadow: 0 2px 8px var(--shadow-light);
    }

    .control-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        /*margin-bottom: 0.75rem;
        padding-bottom: 0.75rem;*/
        border-bottom: 1px solid #f0f4ff;
    }

    .control-header h3 {
        margin: 0;
        font-size: 1.1rem;
        color: var(--text-color);
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .control-header i {
        color: var(--primary-color);
        font-size: 1.1rem;
    }

    .required-badge {
        font-size: 0.75rem;
        font-weight: 600;
        color: white;
        background: linear-gradient(135deg, #ff6b6b, #ff8787);
        padding: 0.2rem 0.6rem;
        border-radius: 12px;
        box-shadow: 0 1px 3px rgba(255, 107, 107, 0.3);
    }

    .control-description {
        font-size: 0.9rem;
        color: var(--text-light);
        margin-bottom: 1rem;
        line-height: 1.4;
    }

    /* 属性选择器容器 */
    .attribute-options {
        display: flex;
        flex-direction: column;
        gap: 1.25rem;
    }

    /* 规格容器 */
    .spec-container {
        background: white;
        border-radius: var(--border-radius);
        border: 1px solid var(--border-color);
        padding: 1rem;
        box-shadow: 0 1px 4px var(--shadow-light);
        transition: all var(--transition-normal);
    }

    .spec-container:hover {
        box-shadow: 0 2px 8px var(--shadow-medium);
        transform: translateY(-2px);
    }

    /* 规格标题 */
    .spec-title {
        margin-bottom: 0.75rem;
        padding-bottom: 0.75rem;
        border-bottom: 1px solid #f0f4ff;
    }

    .spec-name-text {
        font-size: 1rem;
        font-weight: 600;
        color: var(--text-color);
        display: block;
    }

    /* 规格值容器 */
    .spec-values {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    /* 规格选项基础样式 */
    .spec-option {
        position: relative;
        cursor: pointer;
        border: 2px solid var(--border-color);
        border-radius: 8px;
        background: white;
        transition: all var(--transition-fast);
        font-size: 0.9rem;
        font-weight: 500;
        user-select: none;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 40px;
        min-width: 40px;
        padding: 0.4rem 0.9rem;
        overflow: hidden;
    }

    .spec-option:hover {
        border-color: var(--primary-light);
        background: #f8faff;
        transform: translateY(-2px);
        box-shadow: 0 3px 8px rgba(74, 108, 247, 0.15);
    }

    /* 选中状态 */
    .spec-option.selected {
        border-color: var(--primary-color);
        background: var(--primary-color);
        color: white;
        font-weight: 600;
        box-shadow: 0 3px 10px rgba(74, 108, 247, 0.25);
    }

    /* 颜色选项特定样式 */
    .spec-option[data-spec-type="color"] {
        flex-direction: column;
        padding: 0.75rem;
        min-width: 80px;
        height: auto;
        text-align: center;
        gap: 0.5rem;
    }

    .color-preview {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        border: 3px solid white;
        box-shadow: 0 2px 6px rgba(0,0,0,0.15);
        transition: all var(--transition-normal);
    }

    .spec-option:hover .color-preview {
        transform: scale(1.1);
        box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    }

    .spec-option.selected .color-preview {
        border-color: white;
        box-shadow: 0 0 0 3px var(--primary-color), 0 3px 10px rgba(0,0,0,0.25);
        transform: scale(1.1);
    }

    .checkmark {
        position: absolute;
        top: -8px;
        right: -8px;
        width: 20px;
        height: 20px;
        background: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.8rem;
        color: var(--primary-color);
        font-weight: bold;
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    }

    /* 已选规格汇总 */
    .selected-specs-summary {
        margin-bottom: 1.25rem;
        padding: 1rem;
        background: linear-gradient(135deg, #f0f7ff, #e8f3ff);
        border-radius: var(--border-radius);
        border: 2px solid #d1e3ff;
        box-shadow: 0 2px 8px rgba(74, 108, 247, 0.1);
        display: none;
    }

    .summary-title {
        font-size: 0.95rem;
        font-weight: 600;
        color: var(--primary-color);
        margin-bottom: 0.75rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .summary-title i {
        font-size: 0.95rem;
    }

    .specs-list {
        display: flex;
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .spec-item {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.5rem 0.9rem;
        background: white;
        border-radius: 6px;
        font-size: 0.9rem;
        border: 1px solid #e8f0fe;
        box-shadow: 0 1px 3px var(--shadow-light);
    }

    .spec-name {
        font-weight: 600;
        color: var(--text-light);
    }

    .spec-value {
        font-weight: 700;
        color: var(--primary-color);
        padding: 0.25rem 0.75rem;
        background: #f0f7ff;
        border-radius: 20px;
        min-width: 70px;
        text-align: center;
        border: 1px solid #d1e3ff;
        transition: all var(--transition-fast);
    }

    /* 响应式调整 */
    @media (max-width: 1200px) {
        .design-area {
            flex-direction: column;
        }
        
        .sticker-panel {
            flex: none;
            max-width: 100%;
            width: 100%;
        }
        
        .preview-container {
            min-height: 650px;
        }
    }
    
    @media (max-width: 768px) {
        .design-area {
            gap: 1rem;
            margin-top: 1rem;
        }
        
        .preview-container {
            min-height: 550px;
        }
        
        .sticker-panel {
            padding: 1rem;
        }
        
        .control-btn {
            width: 28px !important;
            height: 28px !important;
            font-size: 16px !important;
        }
        
       
    }
    
/* 调整预览遮罩层，使其更透明且具有引导感 */
.preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 5;
    /* 修改背景色透明度，从 0.95 改为 0.3 */
    background: rgba(255, 255, 255, 0.3); 
    backdrop-filter: blur(1px); /* 轻微模糊即可 */
    transition: opacity 0.3s ease;
}

/* 提示文字样式优化 */
.drag-hint {
    background: rgba(0, 0, 0, 0.7); /* 使用深色背景对比更强 */
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    border: 1px solid rgba(255,255,255,0.3);
}

/* 默认背景色调暗一点，突出白色产品 */
#product-preview {
    background: #ebebeb; 
}
/* 规格容器优化 */
.spec-container {
    background: #fdfdfd;
    border: 1px solid #f0f0f0;
    margin-bottom: 0.5rem;
}

/* 选项按钮优化 */
.spec-option {
    border: 2px solid #eee;
    background: #fff;
    color: #444;
}

/* 选中态：更明显的边框和背景 */
.spec-option.selected {
    border-color: var(--primary-color);
    background: #f0f4ff;
    color: var(--primary-color);
    box-shadow: 0 0 0 1px var(--primary-color);
}

/* 颜色预览圆圈增大并加阴影 */
.color-preview {
    width: 28px;
    height: 28px;
    box-shadow: inset 0 0 2px rgba(0,0,0,0.1);
}
/* --- 预览区域与遮罩层优化 --- */
#product-preview {
    background: #f0f0f0; /* 调深背景色，防止与白色产品混在一起 */
}

.preview-overlay {
    background: rgba(0, 0, 0, 0.1); /* 大幅降低遮罩白度，变为半透明阴影 */
    backdrop-filter: blur(1px);
}

.drag-hint {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* --- 贴纸操作条修复：解决晃动与变形 --- */
.sticker-on-product {
    overflow: visible !important; /* 必须允许溢出，否则按钮会被切断 */
}

/* --- 属性选择模块优化 --- */
.spec-container {
    border: 1px solid #f0f0f0;
    background: #fafafa;
}

.spec-option {
    border: 2px solid #e0e0e0;
    background: #fff;
    transition: all 0.2s ease;
}

.spec-option.selected {
    background: #fff !important;
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 1px var(--primary-color);
}

.spec-option[data-spec-type="color"].selected .color-preview {
    transform: scale(1.1);
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--primary-color);
}

    /* 1. 修复预览区域过白：深色背景突出产品 */
    #product-preview { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: #ebebeb; }
    .preview-overlay {
        position: absolute; top: 0; left: 0; width: 100%; height: 100%;
        display: flex; align-items: center; justify-content: center;
        pointer-events: none; z-index: 5;
        background: rgba(0, 0, 0, 0.05); /* 降低遮罩白度 */
        backdrop-filter: blur(1px);
        transition: opacity 0.3s ease;
    }
    .drag-hint { background: rgba(0, 0, 0, 0.75); color: white; padding: 0.8rem 1.5rem; border-radius: 50px; font-size: 0.9rem; }

   
    /* 4. 优化规格属性模块 */
    .spec-container { background: #fdfdfd; border: 1px solid #f0f0f0; padding: 1rem; border-radius: 10px; margin-bottom: 1rem; }
    .spec-label { font-weight: 600;display: block; color: var(--text-color); }
    .spec-options-list { display: flex; flex-wrap: wrap; gap: 0.75rem; }
    .spec-option { 
        border: 2px solid #eee; background: #fff; cursor: pointer; padding: 6px 14px; 
        border-radius: 8px; transition: all 0.2s; font-size: 0.9rem;
    }
    .spec-option.selected { 
        border-color: var(--primary-color) !important; 
        background: #f0f4ff !important; 
        color: var(--primary-color);
        box-shadow: 0 0 0 1px var(--primary-color);
    }
    .color-preview { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.2); }
    
/* ===== 现代属性选择样式 ===== */
.spec-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    transition: box-shadow 0.3s ease;
}

.spec-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.spec-header {
    /*display: flex;*/
    display:none;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.spec-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: white;
    font-size: 18px;
}

.spec-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.spec-values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
}

.spec-value-card {
    position: relative;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 15px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spec-value-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-color: #6a11cb;
}

.spec-value-card.selected {
    border-color: #6a11cb;
    background: linear-gradient(135deg, #f6f8ff 0%, #f0f5ff 100%);
    box-shadow: 0 0 0 2px rgba(106, 17, 203, 0.1);
}

.card-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.option-image {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
    border-radius: 6px;
}

.color-preview-large {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.option-fallback {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 20px;
}

.selected-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    background: #6a11cb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.option-tooltip {
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
    z-index: 100;
}

.option-tooltip::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid #333;
}

.spec-value-card:hover .option-tooltip {
    opacity: 1;
    visibility: visible;
}

/* 现代选择汇总样式 */
.spec-item-modern {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: white;
    border-radius: 10px;
    margin-bottom: 10px;
    border: 1px solid #e8e8e8;
    transition: all 0.3s ease;
}

.spec-item-modern:hover {
    border-color: #6a11cb;
    box-shadow: 0 2px 8px rgba(106, 17, 203, 0.1);
}

.spec-item-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: white;
}

.spec-item-content {
    flex: 1;
}

.spec-item-name {
    font-size: 13px;
    color: #666;
    margin-bottom: 4px;
}

.spec-item-value {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
}

.color-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
    display: inline-block;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* ===== 分页改进样式 ===== */
.sticker-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* ===== 贴纸图片预览功能 ===== */
.sticker-item {
    position: relative;
    overflow: hidden;
}

.sticker-preview-icon {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 24px;
    height: 24px;
    background: rgba(0,0,0,0.6);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.sticker-item:hover .sticker-preview-icon {
    opacity: 1;
}

.sticker-preview-icon:hover {
    background: rgba(106, 17, 203, 0.8);
}

/* 图片预览模态框 */
.image-preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.image-preview-content {
    /*background: white;*/
    border-radius: 12px;
    padding: 30px;
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    max-width: min(550px, 95vw); /* 增加最大宽度 */
    max-height: min(550px, 95vh); /* 增加最大高度 */
    overflow: auto;
    animation: slideUp 0.3s ease;
}

.image-preview-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    background: #f5f5f5;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: all 0.3s ease;
}

.image-preview-close:hover {
    background: #ff6b6b;
    color: white;
}
/* 图片预览样式 */
.patch-image-preview {
    max-width: 500px;
    max-height: 500px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* 确保预览容器可以适应图片 */
.image-preview-container {
    width: auto;
    height: auto;
    max-width: 500px;
    max-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
    min-height: 200px;
    padding: 10px;
}

/* 调整模态框大小以适应图片 */
.image-preview-content {
    background: white;
    border-radius: 12px;
    padding: 20px;
    position: relative;
    max-width: 600px; /* 稍微增大以容纳图片 */
    max-height: 600px;
    animation: slideUp 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .patch-image-preview {
        max-width: 90vw;
        max-height: 90vh;
    }
    
    .image-preview-container {
        max-width: 90vw;
        max-height: 90vh;
    }
}

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

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .spec-values-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 10px;
    }
    
    .spec-value-card {
        min-height: 80px;
        padding: 10px 5px;
    }
    
    .pagination-btn {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }
}

/* 空状态提示 */
.no-specs-message {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-style: italic;
    background: #f9f9f9;
    border-radius: 10px;
    margin: 20px 0;
}

/* ===== 美化版属性选择样式 ===== */
/*.spec-selector-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 
        0 4px 6px rgba(0, 0, 0, 0.05),
        0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.spec-selector-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #6a11cb 0%, #2575fc 100%);
    border-radius: 16px 16px 0 0;
}

.spec-selector-card:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.1),
        0 4px 6px rgba(0, 0, 0, 0.05);
}*/


.spec-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    color: white;
    font-size: 20px;
    box-shadow: 0 4px 10px rgba(106, 17, 203, 0.2);
}

.spec-label {
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
    letter-spacing: -0.3px;
}

.spec-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 16px;
}

.spec-option-card {
    position: relative;
    background: white;
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.spec-option-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(106, 17, 203, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.spec-option-card:hover::before {
    opacity: 1;
}

.spec-option-card:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.1),
        0 2px 4px rgba(0, 0, 0, 0.05);
}

.spec-option-card.selected {
    border-color: #6a11cb;
    background: linear-gradient(135deg, #ffffff 0%, #f8f0ff 100%);
    box-shadow: 
        0 0 0 3px rgba(106, 17, 203, 0.1),
        0 4px 15px rgba(106, 17, 203, 0.15);
}

.option-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 15px;
    position: relative;
    z-index: 1;
}

/* 图片选项样式 */
.option-image-preview {
    width: 60px;
    height: 60px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 10px;
    margin-bottom: 10px;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.option-text {
    font-size: 14px;
    font-weight: 500;
    color: #4a5568;
    text-align: center;
    line-height: 1.4;
}

/* 颜色选择器样式 */
.color-selector {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.color-swatch {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.15),
        0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.spec-option-card:hover .color-swatch {
    transform: scale(1.1);
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.2),
        0 3px 6px rgba(0, 0, 0, 0.1);
}

.color-name {
    font-size: 14px;
    font-weight: 500;
    color: #4a5568;
    text-align: center;
}

/* 文本气泡样式 */
.option-text-bubble {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    min-width: 100px;
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.spec-option-card:hover .option-text-bubble {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(102, 126, 234, 0.4);
}

/* 选中徽章样式 */
.selected-badge-modern {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #4cd964 0%, #5ac8fa 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    box-shadow: 
        0 2px 8px rgba(76, 217, 100, 0.3),
        0 1px 3px rgba(0, 0, 0, 0.1);
    z-index: 2;
    animation: badgeAppear 0.3s ease;
}

/* 悬停效果层 */
.option-hover-effect {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(106, 17, 203, 0.1) 0%, rgba(37, 117, 252, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 10px;
}

.spec-option-card:hover .option-hover-effect {
    opacity: 1;
}

/* 空状态提示美化 */
.no-specs-message {
    text-align: center;
    padding: 60px 40px;
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f2ff 100%);
    border-radius: 16px;
    border: 2px dashed #cbd5e0;
    color: #718096;
    font-size: 16px;
}

.no-specs-message i {
    font-size: 48px;
    color: #a0aec0;
    margin-bottom: 20px;
    display: block;
}

.no-specs-message span {
    display: block;
    margin-top: 10px;
    font-style: italic;
}

/* 动画效果 */
@keyframes pulseEffect {
    0% {
        box-shadow: 0 0 0 0 rgba(106, 17, 203, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(106, 17, 203, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(106, 17, 203, 0);
    }
}

@keyframes badgeAppear {
    0% {
        transform: scale(0) rotate(-180deg);
    }
    70% {
        transform: scale(1.1) rotate(10deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
    }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .spec-options-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 12px;
    }
    
    .spec-selector-card {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .spec-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .spec-label {
        font-size: 16px;
    }
    
    .option-image-preview,
    .color-swatch {
        width: 50px;
        height: 50px;
    }
    
    .option-text-bubble {
        padding: 10px 16px;
        min-width: 80px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .spec-options-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .spec-selector-card {
        padding: 16px;
    }
}

/* 控制组标题美化 */
.control-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f0f2ff;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-content i {
    font-size: 24px;
    color: #6a11cb;
    background: linear-gradient(135deg, #f6f8ff 0%, #f0f5ff 100%);
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-content h3 {
    font-size: 18px;
    font-weight: 700;
    color: #2d3748;
    margin: 0;
    letter-spacing: -0.5px;
}

.required-badge {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

.control-description {
    color: #718096;
    font-size: 15px;
    margin-bottom: 25px;
    line-height: 1.5;
}

/******************* 加入显示名称 价格 宽高 css****************/
/* ===== 简洁无边框版本 ===== */
.sticker-item-wrapper {
    display: flex;
    flex-direction: column;
    margin-bottom: 12px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    background: white;
    transition: all 0.3s ease;
    cursor: grab;
}

.sticker-item-wrapper:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(106, 17, 203, 0.15);
}

.sticker-item-wrapper.dragging-source {
    opacity: 0.5;
    cursor: grabbing;
}



.sticker-item.dragging-source {
    opacity: 0.5;
    cursor: grabbing;
}

.sticker-info-overlay {
    background: white;
    color: #333;
    padding: 5px;
    font-size: 12px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
   
    min-height: 32px;
}

.sticker-item-wrapper:hover .sticker-info-overlay {
    background: #f8f5ff;
}

.sticker-price {
    font-weight: 600;
    color: #6a11cb;
    font-size: 13px;
}

.sticker-size {
    font-size: 11px;
    color: #666;
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 4px;
}

.sticker-info-separator {
    opacity: 0.3;
    font-size: 11px;
    width: 5px;
}




/* 替代方案：图片等比例缩放，保持完整显示，可能留有空白 */
.product-preview-img {
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    object-position: center !important;
    display: block !important;
    margin: auto !important;
    background-color: #f0f0f0 !important; /* 填充空白区域 */
}

#product-preview {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #f0f0f0 !important;
    overflow: hidden !important;
}

@keyframes slideIn {
        from {
            transform: translateX(100%);
            opacity: 0;
        }
        to {
            transform: translateX(0);
            opacity: 1;
        }
    }
    
    @keyframes slideOut {
        from {
            transform: translateX(0);
            opacity: 1;
        }
        to {
            transform: translateX(100%);
            opacity: 0;
        }
    }