/* 导入公共样式 */
@import url('common.css');

#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(10, 25, 47, 0.9) 0%, rgba(32, 18, 77, 0.9) 100%);
    opacity: 0.8;
}

/* 详情页公共样式 */
.detail-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding-top: calc(var(--nav-height) + 80px);
    padding-bottom: 40px;
    padding-left: 4%;
    padding-right: 4%;
    position: relative;
    z-index: 2;
}

/* 面包屑导航 */
.breadcrumb {
    width: 100%;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 3;
}

.breadcrumb a {
    color: var(--light-gray);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.85rem;
    padding: 2px 5px;
}

.breadcrumb i {
    font-size: 0.7rem;
    color: var(--cyan);
    opacity: 0.8;
}

.breadcrumb span {
    color: var(--cyan);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 2px 5px;
    background: rgba(100, 255, 218, 0.05);
    border-radius: 4px;
}

/* 产品详情布局 */
.product-detail {
    display: grid;
    grid-template-columns: 38% 1fr;
    gap: 30px;
    margin-bottom: 30px;
    align-items: start;
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    padding: 0;
}

/* 产品图片区域 */
.product-gallery {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0;
    background: var(--glass-bg);
    border-radius: 12px;
    padding: 15px;
    justify-self: start;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 主图容器 */
.main-image {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    margin-bottom: 12px;
    overflow: hidden;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    touch-action: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    overscroll-behavior: none;
    isolation: isolate;
}

/* 主图 */
.main-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    pointer-events: none;
    touch-action: none;
}

/* 复制成功提示 */
.copy-success {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(100, 255, 218, 0.2);
    color: var(--cyan);
    padding: 15px 25px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid var(--cyan);
}

.copy-success.show {
    opacity: 1;
    animation: fadeInOut 2s ease forwards;
}

@keyframes fadeInOut {
    0% { opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { opacity: 0; }
}

/* 缩略图容器 */
.thumbnail-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    width: 100%;
}

/* 缩略图 */
.thumbnail {
    position: relative;
    padding-bottom: 100%;
    cursor: pointer;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
}

.thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: rgba(255, 255, 255, 0.05);
}

.thumbnail.active {
    border-color: var(--cyan);
    box-shadow: 0 0 5px var(--cyan);
}

.thumbnail:hover {
    transform: translateY(-2px);
    border-color: var(--cyan);
    box-shadow: 0 0 3px var(--cyan);
}

/* 产品信息区域 */
.product-info {
    padding: 20px 18px;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    height: 100%;
    width: 100%;
    justify-self: start;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    box-sizing: border-box;
}

.product-title {
    font-size: 0.95rem;
    color: var(--white);
    margin-bottom: 6px;
    line-height: 1.4;
    font-weight: 600;
    letter-spacing: -0.3px;
    font-family: 'Arial', sans-serif;
    word-break: break-word;
    overflow-wrap: anywhere;
    display: block;
    white-space: normal;
    text-overflow: ellipsis;
    max-width: 100%;
}

.product-id {
    font-size: 0.75rem;
    color: #777;
    margin-bottom: 10px;
}

.product-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.product-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--cyan);
    display: flex;
    align-items: center;
    position: relative;
}

/* 美元符号 */
.product-price::before {
    content: '$';
    font-size: 0.7em;
    margin-right: 4px;
    opacity: 0.9;
}

/* 确保美元符号显示 */
.product-price[data-currency="USD"]::before {
    content: '$';
}

.product-views {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: rgba(100, 255, 218, 0.1);
    border-radius: 20px;
    font-size: 0.85rem;
    letter-spacing: 0.2px;
}

.product-views i {
    color: var(--cyan);
    font-size: 0.9rem;
}

.product-info-section {
    margin-top: 5px;
    margin-bottom: 20px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.product-description {
    color: var(--light-gray);
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 0.95rem;
    opacity: 0.9;
    font-family: 'Arial', sans-serif;
    letter-spacing: 0.2px;
}

/* 产品操作按钮容器 */
.product-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
    position: relative;
    width: 100%;
}

.action-btn-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    width: 100%;
}

.action-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-decoration: none;
}

.action-btn-group .action-btn {
    font-size: 0.85rem;
    padding: 12px 8px;
}

.buy-now-btn {
    background: linear-gradient(45deg, var(--cyan), var(--neon-blue));
    color: var(--deep-blue);
}

.buy-now-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 191, 255, 0.3);
}

/* 微店按钮样式 */
.weidian-btn {
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    text-decoration: none;
    border: 1px solid var(--glass-border);
}

.weidian-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.weidian-btn i {
    transition: all 0.3s ease;
}

.weidian-btn:hover i {
    transform: scale(1.1);
}

/* 如何购买按钮样式优化 */
.how-to-buy-btn {
    text-decoration: none;
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    border: 1px solid var(--glass-border);
    transition: background-color 0.3s ease;
}

.how-to-buy-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    color: var(--white);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.1);
}

.copy-link-btn {
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    border: 1px solid var(--glass-border);
}

.copy-link-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* QC照片区域优化 */
.qc-photos {
    margin: 40px 0;
    padding: 30px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid var(--glass-border);
}

.section-title {
    font-size: 1.6rem;
    color: var(--white);
    margin-bottom: 25px;
    text-align: center;
    letter-spacing: -0.5px;
    font-weight: 600;
}

.qc-photo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 25px;
}

.qc-photo {
    aspect-ratio: 1;
    border-radius: 15px;
    overflow: hidden;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
}

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

.qc-photo:hover img {
    transform: scale(1.05);
}

/* 产品列表区域优化 */
.product-list {
    margin-top: 40px;
    padding: 30px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid var(--glass-border);
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
}

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

.product-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid var(--glass-border);
    overflow: hidden;
    transition: transform 0.3s ease;
    height: auto;
    display: flex;
    flex-direction: column;
}

.product-image {
    width: 100%;
    aspect-ratio: 1;
    position: relative;
    overflow: hidden;
    display: block;
}

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

.product-card .product-info {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: auto;
}

.product-card .product-name {
    font-size: 1.1rem;
    color: var(--white);
    margin: 0;
    line-height: 1.4;
}

.product-card .product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
}

.product-card .product-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--cyan);
}

.product-card .product-views {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--light-gray);
    font-size: 0.9rem;
}

.product-card .buy-btn {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    background: linear-gradient(45deg, var(--cyan), var(--neon-blue));
    color: var(--deep-blue);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.3s ease;
    margin-top: 5px;
}

/* 文章详情页优化 */
.article-detail {
    width: 100%;
    margin: 0 auto;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.article-header {
    margin-bottom: 40px;
    position: relative;
}

.article-title-detail {
    font-size: 2.5rem;
    color: var(--white);
    line-height: 1.3;
    margin-bottom: 25px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.article-meta-detail {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    color: var(--light-gray);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.article-meta-detail span {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    transition: var(--transition);
}

.article-meta-detail span:hover {
    background: rgba(255, 255, 255, 0.1);
}

.article-meta-detail i {
    color: var(--cyan);
    opacity: 0.9;
}

.article-category-detail {
    display: inline-block;
    background: rgba(100, 255, 218, 0.1);
    color: var(--cyan);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    transition: var(--transition);
}

.article-category-detail:hover {
    background: rgba(100, 255, 218, 0.2);
    transform: translateY(-2px);
}

.article-content-detail {
    color: var(--light-gray);
    line-height: 1.8;
    font-size: 1.1rem;
}

.article-content-detail h2 {
    color: var(--white);
    font-size: 1.8rem;
    margin: 50px 0 25px;
    position: relative;
    padding-bottom: 15px;
}

.article-content-detail h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--cyan);
    border-radius: 2px;
}

.article-content-detail h3 {
    color: var(--white);
    font-size: 1.5rem;
    margin: 35px 0 20px;
}

.article-content-detail p {
    margin-bottom: 25px;
    opacity: 0.9;
}

.article-content-detail ul, 
.article-content-detail ol {
    margin: 25px 0;
    padding-left: 25px;
}

.article-content-detail li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 5px;
}

.article-content-detail li::before {
    content: '•';
    color: var(--cyan);
    position: absolute;
    left: -15px;
    top: 0;
}

.article-content-detail img {
    max-width: 100%;
    border-radius: 12px;
    margin: 35px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.article-content-detail img:hover {
    transform: scale(1.02);
}

.article-content-detail blockquote {
    border-left: 4px solid var(--cyan);
    padding: 20px 30px;
    margin: 35px 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: var(--white);
}

.article-content-detail blockquote p {
    margin: 0;
}

.article-tags {
    display: flex;
    gap: 12px;
    margin-top: 50px;
    flex-wrap: wrap;
    padding-top: 30px;
    border-top: 1px solid var(--glass-border);
}

.article-tag {
    background: rgba(100, 255, 218, 0.1);
    color: var(--cyan);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-tag:hover {
    background: rgba(100, 255, 218, 0.2);
    transform: translateY(-2px);
}

.article-tag i {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* 文章导航 */
.article-navigation {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--glass-border);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.nav-article {
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: var(--transition);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.nav-article:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.nav-article.prev {
    text-align: left;
}

.nav-article.next {
    text-align: right;
}

.nav-label {
    font-size: 0.85rem;
    color: var(--cyan);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.nav-article.next .nav-label {
    justify-content: flex-end;
}

.nav-title {
    color: var(--white);
    font-size: 1rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 响应式布局优化 */
@media (max-width: 1200px) {
    .product-detail {
        grid-template-columns: 38% 62%;
        gap: 20px;
    }
    
    .product-gallery {
        max-width: 100%;
    }
    
    .product-info {
        max-width: 100%;
        padding: 18px 15px;
        min-width: 0;
    }
    
    .product-title {
        font-size: 0.9rem;
    }
    
    .product-price {
        font-size: 1.6rem;
    }
}

@media (max-width: 992px) {
    .detail-container {
        padding-top: calc(var(--nav-height) + 60px);
    }
    
    .product-detail {
        grid-template-columns: 40% 60%;
        gap: 15px;
        max-width: 100%;
    }
    
    .product-gallery {
        max-width: 100%;
        padding: 12px;
    }
    
    .product-info {
        padding: 15px 12px;
        max-width: 100%;
        min-width: 0;
    }
    
    .product-title {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }
    
    .product-price {
        font-size: 1.5rem;
    }
    
    .breadcrumb {
        padding: 6px 12px;
        margin-bottom: 15px;
    }
}

@media (max-width: 768px) {
    body.modal-open {
        position: fixed;
        width: 100%;
        height: 100%;
        overflow: hidden;
    }
    
    .detail-container {
        padding-top: calc(var(--nav-height) + 50px);
        padding-left: 15px;
        padding-right: 15px;
        overscroll-behavior: none;
    }
    
    .product-detail {
        grid-template-columns: 1fr;
        gap: 15px;
        max-width: 500px;
        width: 100%;
    }

    .product-gallery {
        max-width: 100%;
        padding: 10px;
        margin: 0 auto;
        justify-self: center;
    }
    
    .main-image {
        padding-bottom: 100%;
        max-width: 100%;
        margin: 0 auto 10px auto;
    }
    
    .thumbnail-container {
        max-width: 100%;
        margin: 0 auto;
    }
    
    .product-info {
        padding: 15px;
        max-width: 100%;
        margin: 0 auto;
        justify-self: center;
    }
    
    .action-btn-group {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }
    
    .action-btn-group .action-btn {
        font-size: 0.75rem;
        padding: 10px 6px;
        gap: 4px;
    }
    
    .action-btn-group .action-btn i {
        font-size: 0.85rem;
    }
    
    .product-title {
        font-size: 0.9rem;
        margin-bottom: 8px;
        line-height: 1.4;
    }
    
    .product-price {
        font-size: 1.3rem;
    }
    
    .product-id {
        font-size: 0.75rem;
        margin-bottom: 8px;
    }
    
    .breadcrumb {
        display: none;
    }

    .action-btn {
        padding: 12px;
        font-size: 0.9rem;
    }
    
    .product-description {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .section-title {
        font-size: 1.4rem;
        margin-bottom: 20px;
    }

    .platform-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 5px;
    }
    
    .platform-modal-content {
        padding: 20px 15px;
        width: 95%;
        max-height: 85vh;
    }
    
    .platform-modal h3 {
        font-size: 1.3rem;
        margin-bottom: 10px;
    }
    
    .modal-note {
        font-size: 0.8rem;
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    .detail-container {
        padding-top: calc(var(--nav-height) + 40px);
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .product-detail {
        gap: 12px;
    }

    .product-gallery {
        max-width: 100%;
        padding: 8px;
    }
    
    .main-image {
        padding-bottom: 100%;
        max-width: 100%;
    }
    
    .thumbnail-container {
        max-width: 100%;
        gap: 6px;
    }
    
    .product-info {
        padding: 12px;
        max-width: 100%;
    }
    
    .product-title {
        font-size: 0.85rem;
        margin-bottom: 8px;
        line-height: 1.4;
    }
    
    .product-price {
        font-size: 1.4rem;
    }
    
    .product-views {
        padding: 6px 12px;
        font-size: 0.75rem;
    }
    
    .section-title {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }

    .platform-option {
        padding: 10px;
    }
    
    .platform-option img {
        width: 40px;
        height: 40px;
    }
    
    .platform-option span {
        font-size: 0.8rem;
    }
    
    .platform-list {
        gap: 10px;
    }
    
    .close-modal {
        font-size: 20px;
        top: 8px;
        right: 12px;
    }
}

@media (max-width: 359px) {
    .product-gallery {
        max-width: 100%;
        padding: 6px;
    }
    
    .main-image {
        margin-bottom: 6px;
        padding-bottom: 100%;
    }
    
    .thumbnail-container {
        gap: 4px;
        grid-template-columns: repeat(4, 1fr);
    }
    
    .product-info {
        padding: 10px;
        max-width: 100%;
    }
    
    .product-title {
        font-size: 0.8rem;
        margin-bottom: 5px;
        line-height: 1.4;
    }
    
    .product-price {
        font-size: 1.3rem;
    }

    .action-btn {
        padding: 8px;
        font-size: 0.8rem;
    }
    
    .product-description {
        font-size: 0.8rem;
    }
    
    .section-title {
        font-size: 1.2rem;
    }
}

/* 平台选择模态框 */
.platform-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    overscroll-behavior: contain;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.platform-modal-content {
    background: linear-gradient(135deg, var(--deep-blue), rgba(32, 18, 77, 0.95));
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    padding: 25px;
    position: relative;
    border: 1px solid var(--cyan);
    box-shadow: 0 0 30px rgba(100, 255, 218, 0.4);
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    background: transparent;
    border: none;
    color: var(--cyan);
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s;
}

.close-modal:hover {
    color: var(--pink);
    transform: scale(1.1);
}

.platform-modal h3 {
    color: var(--cyan);
    text-align: center;
    margin-bottom: 15px;
    font-size: 1.5rem;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(100, 255, 218, 0.3);
}

.modal-note {
    text-align: center;
    color: var(--light-slate);
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.platform-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 10px;
    overflow-y: auto;
    max-height: calc(80vh - 140px);
    scrollbar-width: thin;
    scrollbar-color: var(--cyan) var(--deep-blue);
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.platform-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    border: 1px solid transparent;
}

.platform-option:hover {
    background: rgba(100, 255, 218, 0.1);
    transform: translateY(-5px);
    border-color: var(--cyan);
    box-shadow: 0 5px 15px rgba(100, 255, 218, 0.2);
}

.platform-option img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin-bottom: 10px;
    border-radius: 8px;
}

.platform-option span {
    color: var(--lightest-slate);
    font-size: 0.9rem;
    text-align: center;
    font-weight: 500;
}

/* 社交媒体分享模态框 - 完全匹配平台选择模态框的样式 */
.social-share-dropdown {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    overscroll-behavior: contain;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.social-share-content {
    background: linear-gradient(135deg, var(--deep-blue), rgba(32, 18, 77, 0.95));
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    padding: 25px;
    position: relative;
    border: 1px solid var(--cyan);
    box-shadow: 0 0 30px rgba(100, 255, 218, 0.4);
}

.close-share {
    position: absolute;
    top: 10px;
    right: 15px;
    background: transparent;
    border: none;
    color: var(--cyan);
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s;
}

.close-share:hover {
    color: var(--pink);
    transform: scale(1.1);
}

.social-share-title {
    color: var(--cyan);
    text-align: center;
    margin-bottom: 15px;
    font-size: 1.5rem;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(100, 255, 218, 0.3);
}

.social-share-note {
    text-align: center;
    color: var(--light-slate);
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.social-share-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 10px;
    padding: 10px;
    overflow-y: auto;
    max-height: calc(80vh - 140px);
    scrollbar-width: thin;
    scrollbar-color: var(--cyan) var(--deep-blue);
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.social-share-item {
    display: flex;
    align-items: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: all 0.3s;
    text-decoration: none;
    border: 1px solid transparent;
    color: var(--white);
}

.social-share-item:hover {
    background: rgba(100, 255, 218, 0.1);
    transform: translateY(-5px);
    border-color: var(--cyan);
    box-shadow: 0 5px 15px rgba(100, 255, 218, 0.2);
    color: var(--cyan);
}

.social-share-item i {
    width: 30px;
    font-size: 1.2rem;
    margin-right: 10px;
    text-align: center;
}

.social-share-item span {
    font-size: 1rem;
}

/* 移动端优化 - 确保两个模态框使用相同的媒体查询 */
@media (min-width: 481px) {
    .social-share-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .platform-list,
    .social-share-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .platform-modal-content,
    .social-share-content {
        padding: 20px 15px;
        width: 90%;
    }
}

@media (max-width: 480px) {
    .platform-option,
    .social-share-item {
        padding: 10px;
    }
    
    .platform-option img {
        width: 40px;
        height: 40px;
    }
    
    .platform-option span,
    .social-share-item span {
        font-size: 0.8rem;
    }
    
    .social-share-item i {
        width: 25px;
        font-size: 1rem;
    }
    
    .social-share-title,
    .platform-modal h3 {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }
    
    .social-share-note,
    .modal-note {
        font-size: 0.8rem;
        margin-bottom: 15px;
    }
}

/* 收藏按钮样式 */
.favorite-btn {
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    text-decoration: none;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    position: relative;
}

.favorite-btn::before {
    content: "\f004";
    font-family: "Font Awesome 5 Free";
    font-weight: 400;
    font-size: 16px;
    transition: all 0.3s ease;
    margin-right: 4px;
}


.favorite-btn span:empty::after {
    content: "Favorites";
}


.favorite-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.favorite-btn:hover::before {
    transform: scale(1.1);
}

/* 已收藏状态 - 使用易优CMS的类名 */
.favorite-btn.on::before {
    color: #ff6b6b;
    font-weight: 900;
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .favorite-btn {
        padding: 12px;
        gap: 6px;
    }
    
    .favorite-btn::before {
        font-size: 14px;
    }
}

/* 收藏通知样式优化 */
.favorite-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 15px 25px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.favorite-notification i {
    color: #4caf50;
    font-size: 18px;
}

.favorite-notification.show {
    opacity: 1;
    animation: fadeInOut 2s ease forwards;
}

/* 添加淡入淡出动画 */
@keyframes fadeInOut {
    0% { opacity: 0; }
    15% { opacity: 1; }
    85% { opacity: 1; }
    100% { opacity: 0; }
}

/* 错误提示样式 */
.favorite-notification.error i {
    color: #ff6b6b;
}

/* 添加消息类型判断 */
.favorite-notification[data-type="error"] i {
    color: #ff6b6b;
}

.favorite-notification[data-type="success"] i {
    color: #4caf50;
}

.favorite-notification[data-type="info"] i {
    color: #2196f3;
}

/* ============================================
   SKU 选择器样式
   ============================================ */

.sku-selector-section {
    width: 100%;
    margin: 20px 0;
    padding: 18px 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    min-width: 0;
    overflow: hidden;
    box-sizing: border-box;
}

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

.sku-group:last-child {
    margin-bottom: 0;
}

.sku-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: var(--light-gray);
}

.sku-label i {
    color: var(--cyan);
    font-size: 1rem;
}

.sku-selected {
    color: var(--cyan);
    font-weight: 600;
    padding: 4px 12px;
    background: rgba(100, 255, 218, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(100, 255, 218, 0.2);
}

.sku-options-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    width: 100%;
    box-sizing: border-box;
}

/* SKU 选项 */
.sku-option {
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1.5px solid var(--glass-border);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    overflow: hidden;
    flex-shrink: 0;
    box-sizing: border-box;
}

/* 样式选项（图片） */
.sku-option.style-option {
    width: 56px;
    height: 56px;
    padding: 2px;
    flex-shrink: 0;
}

.sku-option.style-option img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

/* 尺寸选项（文字） */
.sku-option.size-option {
    min-width: 30px;
    padding: 6px 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--light-gray);
    flex-shrink: 0;
}

/* 悬停效果 */
.sku-option:hover {
    border-color: var(--cyan);
    background: rgba(100, 255, 218, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(100, 255, 218, 0.2);
}

/* 激活状态 */
.sku-option.active {
    border-color: var(--cyan);
    background: rgba(100, 255, 218, 0.15);
    box-shadow: 0 0 15px rgba(100, 255, 218, 0.3);
}

.sku-option.active::after {
    content: '✓';
    position: absolute;
    top: 2px;
    right: 2px;
    width: 18px;
    height: 18px;
    background: var(--cyan);
    color: var(--bg-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* 禁用状态 */
.sku-option.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    border-style: dashed;
}

.sku-option.disabled:hover {
    transform: none;
    border-color: var(--glass-border);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .sku-selector-section {
        padding: 15px;
    }
    
    .sku-option.style-option {
        width: 50px;
        height: 50px;
    }
    
    .sku-option.size-option {
        min-width: 28px;
        padding: 5px 8px;
        font-size: 0.75rem;
    }
    
    .sku-label {
        font-size: 0.9rem;
    }
} 