body {
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    background-attachment: fixed;
}

.product-detail-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 100px 20px 40px 20px;
}

/* 已购买提示 */
.purchased-notice {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 3px solid #28a745;
    border-radius: 16px;
    padding: 25px 30px;
    margin-bottom: 30px;
    box-shadow: 0 8px 24px rgba(40, 167, 69, 0.3);
    animation: slideDown 0.5s ease-out;
}

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

.purchased-content {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.purchased-content i {
    font-size: 40px;
    color: #28a745;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.purchased-content span {
    font-size: 20px;
    color: #155724;
    font-weight: 500;
}

.purchased-content strong {
    color: #0d4521;
    font-size: 24px;
    font-weight: bold;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 6px;
}

.btn-contact-service {
    margin-left: auto;
    padding: 12px 28px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-contact-service:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.product-detail-wrapper {
    display: flex;
    gap: 40px;
    background: #fff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.product-left {
    flex: 0 0 50%;
    max-width: 50%;
}

.product-carousel,
.product-carousel-mobile {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #f8f9fa;
    position: relative;
}

.product-carousel .carousel-item,
.product-carousel-mobile .carousel-item {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease-in-out, visibility 0.6s ease-in-out;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.product-carousel .carousel-item.active,
.product-carousel-mobile .carousel-item.active {
    opacity: 1;
    visibility: visible;
    position: relative;
    z-index: 2;
}

.product-carousel .carousel-item img,
.product-carousel-mobile .carousel-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

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

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

.carousel-indicators .indicator.active {
    background: #667eea;
    width: 24px;
    border-radius: 5px;
}

.carousel-indicators .indicator:hover {
    background: rgba(102, 126, 234, 0.8);
}

.product-carousel-mobile {
    display: none;
}

.product-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
    max-height: 800px;
}

.product-icon {
    width: 80px;
    height: 80px;
}

.product-icon img {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    object-fit: cover;
}

.product-title {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    margin: 0;
    line-height: 1.3;
}

.product-subtitle {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

/* 版本下拉选择 */
.version-selection {
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e8e8e8;
}

.version-selection label {
    font-size: 16px;
    color: #333;
    font-weight: bold;
    display: block;
    margin-bottom: 10px;
}

/* 自定义下拉菜单 */
.custom-dropdown {
    position: relative;
    width: 100%;
}

.dropdown-selected {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: #fff;
    border: 2px solid #667eea;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.dropdown-selected:hover {
    border-color: #5568d3;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.dropdown-arrow {
    color: #667eea;
    font-size: 12px;
    transition: transform 0.3s;
}

.custom-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-options {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #fff;
    border: 2px solid #667eea;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

.custom-dropdown.active .dropdown-options {
    max-height: 400px;
    opacity: 1;
    overflow-y: auto;
}

.dropdown-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-option:last-child {
    border-bottom: none;
}

.dropdown-option:hover {
    background: linear-gradient(135deg, #f0f4ff 0%, #fce4ec 100%);
}

.dropdown-option.selected {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.option-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.option-name {
    font-size: 15px;
    font-weight: 500;
}

.option-price {
    font-size: 18px;
    font-weight: bold;
    color: #ff6600;
}

.dropdown-option.selected .option-price {
    color: #fff;
}

.option-check {
    font-size: 20px;
    color: #fff;
    opacity: 0;
    transition: opacity 0.2s;
}

.dropdown-option.selected .option-check {
    opacity: 1;
}

.product-price-box {
    padding: 20px 0;
    border-top: 1px solid #e8e8e8;
    border-bottom: 1px solid #e8e8e8;
}

.price-label {
    font-size: 16px;
    color: #666;
}

.price-value {
    font-size: 32px;
    font-weight: bold;
    color: #ff6600;
    margin: 0 8px;
}

.price-unit {
    font-size: 18px;
    color: #ff6600;
}

.product-actions-box {
    margin-top: 10px;
}

.btn-primary {
    display: inline-block;
    width: 100%;
    padding: 16px 48px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    border: none;
    cursor: pointer;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
    color: #fff;
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.pay-options {
    margin-top: 15px;
    font-size: 16px;
}

.pay-options label {
    cursor: pointer;
    margin-right: 20px;
    display: inline-flex;
    align-items: center;
}

.pay-options input[type="radio"] {
    margin-right: 8px;
}

.product-description-inline {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e8e8e8;
    line-height: 1.8;
    color: #555;
    font-size: 15px;
}

.product-description-inline img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 15px 0;
}

/* 版本卡片列表 */
.version-cards-section {
    margin-top: 50px;
    padding: 40px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.version-cards-section h2 {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
}

.version-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.version-card-item {
    background: #fff;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.version-card-item:hover {
    border-color: #667eea;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.version-card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
}

.version-card-icon img {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    object-fit: cover;
}

.version-card-title {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.version-card-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
    min-height: 40px;
}

.version-card-price {
    font-size: 28px;
    font-weight: bold;
    color: #ff6600;
    margin-bottom: 20px;
}

.version-card-price span {
    font-size: 14px;
    color: #999;
}

.version-card-btn {
    width: 100%;
    padding: 12px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.version-card-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* 加载提示 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    text-align: center;
    color: #fff;
}

.spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto 20px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.loading-spinner p {
    font-size: 16px;
    margin: 0;
}

/* 错误提示 */
.error-toast {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border: 2px solid #dc3545;
    border-radius: 8px;
    padding: 15px 25px;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10000;
    animation: slideDown 0.3s ease-out;
}

.error-toast i {
    font-size: 24px;
    color: #dc3545;
}

.error-toast span {
    font-size: 16px;
    color: #333;
}

/* 警告提示 */
.warning-notice {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 2px solid #ffc107;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.warning-notice i {
    font-size: 32px;
    color: #ff6b00;
}

.warning-notice span {
    font-size: 16px;
    color: #856404;
    flex: 1;
}

/* ICP备案 */
.icp-footer {
    max-width: 1400px;
    margin: 30px auto 0;
    padding: 20px;
    text-align: center;
    color: #666;
    font-size: 14px;
}

.icp-footer a {
    color: #667eea;
    text-decoration: none;
}

.icp-footer a:hover {
    text-decoration: underline;
}

@media (max-width: 1200px) {
    .product-detail-wrapper {
        flex-direction: column;
    }
    
    .product-left {
        flex: none;
        max-width: 100%;
        display: none;
    }
    
    .product-right {
        max-height: none;
    }
    
    .product-carousel-mobile {
        display: block;
        margin: 20px 0;
    }
    
    .product-subtitle {
        display: none;
    }
    
    .product-title {
        font-size: 24px;
    }
    
    .price-value {
        font-size: 28px;
    }
    
    .version-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .purchased-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .btn-contact-service {
        margin-left: 0;
        width: 100%;
    }
    
    /* 手机端下拉菜单优化 */
    .dropdown-options {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        border-radius: 16px 16px 0 0;
        max-height: 0;
    }
    
    .custom-dropdown.active .dropdown-options {
        max-height: 60vh;
    }
    
    .dropdown-option {
        padding: 18px;
    font-size: 16px;
}
}

@media (max-width: 768px) {
    .product-detail-container {
        padding: 80px 15px 30px 15px;
    }
    
    .product-detail-wrapper {
        padding: 20px;
    }
    
    .version-cards-section {
        padding: 20px;
    }
    
    .version-cards-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}
