/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #1e3c72, #2a5298, #4a69bd);
    color: #ffffff;
    line-height: 1.6;
    min-height: 100vh;
}

/* 顶部导航 */
.navbar {
    background: rgba(0, 0, 0, 0.9);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffffff;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.nav-middle {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.discord-icon {
    color: #7289da;
    padding: 0.5rem;
    border-radius: 8px;
    background: rgba(114, 137, 218, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.plug4lio-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

.plug4lio-text {
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9rem;
}

.beta-badge {
    background: #10b981;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links a:hover {
    color: #ff6b6b;
}

.express-tracking {
    color: #10b981 !important;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    display: inline-block;
}

.currency-selector {
    color: #fbbf24 !important;
}

.currency-icon {
    font-size: 1.1rem;
}

.btn {
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
    color: white;
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

/* 工具栏样式 */
.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem 0;
    flex-wrap: wrap;
    gap: 1rem;
}

.toolbar-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.toolbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.top50-badge {
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.add-now-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
    backdrop-filter: blur(5px);
}

.add-now-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.filter-label {
    color: #ff6b6b;
    font-weight: 600;
    font-size: 1.1rem;
}

.sort-dropdown {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 15px;
    backdrop-filter: blur(5px);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
}

/* 为不同浏览器设置下拉选项样式 */
.sort-dropdown option {
    background: #2c3e50 !important;
    color: #ffffff !important;
    padding: 0.5rem;
}

.sort-dropdown option:hover,
.sort-dropdown option:focus,
.sort-dropdown option:selected {
    background: #34495e !important;
    color: #ffffff !important;
}

/* 备用方案：对于不支持option样式的浏览器 */
.sort-dropdown:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* WebKit浏览器的下拉选项样式 */
@supports (-webkit-appearance: none) {
    .sort-dropdown {
        background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
        background-repeat: no-repeat;
        background-position: right 1rem center;
        background-size: 1rem;
        padding-right: 3rem;
    }
}

/* 主内容区 */
.main-content {
    margin-top: 80px;
    padding: 0.5rem;
    max-width: 100%;
    width: 100%;
}

.hero {
    display: flex;
    align-items: center;
    min-height: 40vh;
    max-width: 100%;
    margin: 0 auto;
    padding: 1rem 1rem;
    gap: 2rem;
}

.hero-content {
    flex: 0.6;
    text-align: left;
    padding-right: 1rem;
    max-width: 35%;
}

.hero-illustration {
    flex: 1.4;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 300px;
    background: linear-gradient(135deg, #4a69bd, #6c5ce7);
    border-radius: 20px;
    overflow: hidden;
}

.illustration-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.illustration-item {
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 1.2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transform: rotate(-5deg);
    transition: transform 0.3s ease;
    flex: 1;
    min-width: 120px;
    max-width: 160px;
}

.illustration-item:nth-child(2) {
    transform: rotate(5deg);
    margin-left: 0.5rem;
}

.illustration-item:nth-child(3) {
    transform: rotate(-3deg);
    margin-right: 0.5rem;
}

.illustration-item:hover {
    transform: rotate(0deg) scale(1.05);
}

.illustration-icon {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
    display: block;
}

.illustration-text {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.3;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}

.hero h1::after {
    content: "✨";
    margin-left: 0.5rem;
}

/* 搜索框 */
.search-container {
    max-width: 100%;
    margin: 1.2rem 0;
    position: relative;
    display: flex;
    align-items: center;
}

.search-box {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-right: 0.5rem;
}

.search-box::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-btn {
    background: linear-gradient(45deg, #4a69bd, #6c5ce7);
    border: none;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    min-width: 100px;
}

/* 标签和分类 */
.tags-container {
    display: flex;
    justify-content: flex-start;
    gap: 0.6rem;
    margin: 1rem 0;
    flex-wrap: wrap;
    max-width: 100%;
}

.tag {
    background: rgba(255, 255, 255, 0.15);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s;
    cursor: pointer;
}

.tag:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.categories-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 1rem 0;
    flex-wrap: wrap;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
}

.category-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    padding: 0.8rem 1.2rem;
    border-radius: 25px;
    transition: all 0.3s;
    position: relative;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.category-link.active,
.category-link:hover {
    background: linear-gradient(45deg, #ff6b6b, #4a69bd);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 105, 189, 0.3);
}

.category-link::before {
    margin-right: 0.5rem;
}

.category-link[data-category="HOT"]::before { content: "🔥"; }
.category-link[data-category="SHOES"]::before { content: "👟"; }
.category-link[data-category="T-SHIRTS"]::before { content: "👕"; }
.category-link[data-category="PANTS-SHORTS"]::before { content: "👖"; }
.category-link[data-category="HOODIE-SWEATER"]::before { content: "🧥"; }
.category-link[data-category="JACKETS"]::before { content: "🧥"; }
.category-link[data-category="ACCESSORIES"]::before { content: "🎒"; }
.category-link[data-category="OTHERS"]::before { content: "📦"; }

/* 商品网格 */
.products-container {
    max-width: 100%;
    margin: 0.5rem auto;
    padding: 0 1rem;
}

.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
    padding: 0;
}

/* 移动端调整 - 改为2列布局，加大产品卡片 */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
        display: grid !important;
    }
    
    .product-card {
        padding: 1rem !important;
        width: 100% !important;
    }
    
    .product-image {
        margin-bottom: 1rem !important;
        width: 100% !important;
    }
    
    .product-title {
        font-size: 1rem !important;
        margin-bottom: 0.6rem !important;
        line-height: 1.3 !important;
        font-weight: 500 !important;
    }
    
    .product-price {
        font-size: 1.1rem !important;
        margin-bottom: 0.7rem !important;
        font-weight: 600 !important;
    }
    
    .product-info {
        font-size: 0.85rem !important;
        margin-bottom: 0.7rem !important;
        flex-direction: column !important;
        gap: 0.4rem !important;
        align-items: flex-start !important;
    }
    
    .store-badge {
        padding: 0.4rem 0.7rem !important;
        font-size: 0.8rem !important;
    }
    
    .more-btn {
        font-size: 0.85rem !important;
        padding: 0.5rem 0.9rem !important;
    }
}

/* 超小屏幕调整 - 保持2列布局，稍微减少尺寸 */
@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.8rem !important;
        display: grid !important;
    }
    
    .product-card {
        padding: 0.8rem !important;
        width: 100% !important;
    }
    
    .product-image {
        margin-bottom: 0.8rem !important;
        width: 100% !important;
    }
    
    .product-title {
        font-size: 0.9rem !important;
        margin-bottom: 0.5rem !important;
        line-height: 1.2 !important;
        font-weight: 500 !important;
    }
    
    .product-price {
        font-size: 1rem !important;
        margin-bottom: 0.6rem !important;
        font-weight: 600 !important;
    }
    
    .product-info {
        font-size: 0.75rem !important;
        margin-bottom: 0.6rem !important;
        flex-direction: column !important;
        gap: 0.3rem !important;
        align-items: flex-start !important;
    }
    
    .store-badge {
        padding: 0.3rem 0.5rem !important;
        font-size: 0.75rem !important;
    }
    
    .more-btn {
        font-size: 0.8rem !important;
        padding: 0.4rem 0.7rem !important;
    }
}

.product-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 0.8rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    background: rgba(255, 255, 255, 0.15);
}

/* 可点击的产品卡片样式 */
.clickable-card {
    cursor: pointer;
    transition: all 0.3s ease;
}

.clickable-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.clickable-card:active {
    transform: translateY(-4px) scale(1.01);
    transition: all 0.1s ease;
}

/* 为可点击卡片增强视觉效果 */
.clickable-card .product-title {
    transition: color 0.3s ease;
}

.clickable-card:hover .product-title {
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.clickable-card .product-price {
    transition: all 0.3s ease;
}

.clickable-card:hover .product-price {
    color: #4fc3f7;
    transform: scale(1.05);
}

/* More按钮在可点击卡片中的样式调整 */
.clickable-card .more-btn {
    opacity: 0.7;
    transition: all 0.3s ease;
}

.clickable-card:hover .more-btn {
    opacity: 1;
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.2);
}

/* 可点击的产品卡片样式 */
.clickable-card {
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
}

.clickable-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    background: rgba(255, 255, 255, 0.2);
}

.clickable-card:active {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.clickable-card .more-btn {
    pointer-events: auto;
    z-index: 10;
    position: relative;
}

.product-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: all 0.3s ease;
    display: block;
    position: relative;
}

/* 为不支持aspect-ratio的浏览器提供备用方案 */
.product-image {
    height: 0;
    padding-bottom: 100%;
}

/* 支持aspect-ratio的浏览器会覆盖上面的设置 */
@supports (aspect-ratio: 1 / 1) {
    .product-image {
        height: auto;
        padding-bottom: 0;
    }
}

.product-image:not([src]),
.product-image[src=""],
.product-image[src*="placeholder.svg"] {
    object-fit: contain;
    padding: 10px;
}

.product-image.loading {
    opacity: 0.7;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.product-image.error {
    opacity: 0.9;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* 防止图片闪烁 */
.product-image,
.product-image::before,
.product-image::after {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-perspective: 1000;
    perspective: 1000;
}

/* 图片加载动画 */
@keyframes imageLoad {
    0% { opacity: 0.3; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.product-image:not(.loading):not(.error) {
    animation: imageLoad 0.5s ease-in-out;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #ffffff;
    line-height: 1.3;
}

.product-price {
    font-size: 1.3rem;
    font-weight: bold;
    color: #a8e6cf;
    margin-bottom: 1rem;
}

.product-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

.qc-photos, .score {
    color: rgba(255, 255, 255, 0.8);
}

.store-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #ff6b6b;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: bold;
}

.more-btn {
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 15px;
    cursor: pointer;
    font-weight: 500;
    float: right;
    font-size: 0.85rem;
}

/* 宽屏样式 */
@media (min-width: 1200px) {
    .hero {
        gap: 3rem;
        padding: 1.5rem 2rem;
    }
    
    .hero-content {
        max-width: 32%;
    }
    
    .hero h1 {
        font-size: 3.5rem;
    }
    
    .search-container {
        max-width: 450px;
    }
    
    .tags-container {
        max-width: 450px;
    }
    
    .hero-illustration {
        min-height: 350px;
    }
    
    .illustration-item {
        transform: scale(1.05);
        max-width: 180px;
    }
}

/* 超宽屏样式 */
@media (min-width: 1600px) {
    /* 产品样式已在精确断点中处理 */
}

/* 商品详情页面样式 */
.product-detail {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.product-detail-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.product-main-image {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.main-product-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 15px;
    background: white;
    padding: 1rem;
}

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

.product-detail-title {
    font-size: 2rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

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

.product-detail-price {
    font-size: 2.5rem;
    font-weight: bold;
    color: #a8e6cf;
}

.product-rating {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
}

.product-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.btn-find-similar {
    background: linear-gradient(45deg, #4a69bd, #5a7bd6);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 10px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-buy-now {
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 10px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-copy-link {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.8rem 2rem;
    border-radius: 10px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.btn-generate-link {
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 10px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.btn-generate-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.generated-link-area {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: slideDown 0.3s ease-out;
}

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

.generated-link-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.generated-link-label {
    color: #a8e6cf;
    font-weight: 600;
    font-size: 1rem;
}

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

.generated-link-input {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-family: monospace;
    font-size: 0.9rem;
}

.btn-copy-generated {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-copy-generated:hover {
    background: #45a049;
}

.link-note {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    font-style: italic;
}

.product-supplier {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.supplier-badge {
    background: #ff6b6b;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.supplier-arrow {
    color: #ff6b6b;
    font-size: 1.2rem;
}

/* YouTube视频区域样式 */
.product-video-section {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.video-section-title {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
}

.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    border-radius: 15px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.youtube-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 15px;
}

.video-info {
    text-align: center;
    margin-top: 1rem;
}

.watch-on-youtube {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #4fc3f7;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background: rgba(79, 195, 247, 0.1);
}

.watch-on-youtube:hover {
    color: #ffffff;
    background: rgba(79, 195, 247, 0.2);
    transform: translateY(-2px);
}

.external-link-icon {
    font-size: 0.8rem;
}

/* QC照片区域样式 */
.qc-photos-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.qc-section-title {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 2rem;
}

.qc-photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.qc-photo-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 1rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s;
}

.qc-photo-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.qc-photo-image {
    position: relative;
    margin-bottom: 1rem;
}

.qc-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 10px;
    background: #2a2a2a;
}

.qc-controls {
    position: absolute;
    bottom: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.7);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.qc-nav-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0.2rem;
    transition: all 0.3s;
}

.qc-nav-btn:hover {
    color: #ff6b6b;
}

.qc-counter {
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    min-width: 40px;
    text-align: center;
}

.qc-download-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    padding: 0.4rem;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.qc-download-btn:hover {
    background: rgba(255, 107, 107, 0.8);
}

.qc-photo-info {
    text-align: center;
}

.qc-time {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .product-detail {
        padding: 1rem;
    }
    
    .product-detail-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .product-detail-title {
        font-size: 1.5rem;
    }
    
    .product-detail-price {
        font-size: 2rem;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    /* YouTube视频移动端样式 */
    .product-video-section {
        margin: 1.5rem auto;
        padding: 0 1rem;
    }
    
    .video-section-title {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    
    .video-container {
        border-radius: 12px;
    }
    
    .qc-photos-section {
        padding: 0 1rem;
    }
    
    .qc-photos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .main-content {
        padding: 0.5rem;
        margin-top: 70px;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
    
    .nav-middle {
        display: none;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .nav-links a {
        font-size: 0.8rem;
    }
    
    .express-tracking,
    .currency-selector {
        display: none;
    }
    
    .hero {
        flex-direction: column;
        gap: 0.5rem;
        min-height: auto;
        padding: 0.2rem 0;
    }
    
    .hero-content {
        text-align: center;
        padding-right: 0;
    }
    
    .hero-illustration {
        display: none !important;
    }
    
    .illustration-content {
        flex-direction: row;
        gap: 0.8rem;
    }
    
    .illustration-item {
        padding: 0.8rem;
        font-size: 0.9rem;
        min-width: 80px;
        max-width: 120px;
    }
    
    .illustration-icon {
        font-size: 2rem;
        margin-bottom: 0.6rem;
    }
    
    .illustration-text {
        font-size: 0.85rem;
    }
    
    .hero h1 {
        display: none !important;
    }
    
    .search-container {
        flex-direction: column;
        gap: 0.5rem;
        margin: 0.2rem auto;
        max-width: 100%;
    }
    
    .search-box {
        margin-right: 0;
    }
    
    .search-btn {
        width: 100%;
        padding: 0.8rem;
    }
    
    .categories-nav {
        gap: 0.5rem;
        margin: 0.5rem 0;
        padding: 0 0.5rem;
    }
    
    .category-link {
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .toolbar {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        padding: 0.5rem 0;
    }
    
    .toolbar-left {
        order: 2;
    }
    
    .toolbar-right {
        order: 1;
    }
    
    .top50-badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .add-now-btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .filter-label {
        font-size: 1rem;
    }
    
    .sort-dropdown {
        font-size: 0.9rem;
    }
    
    .tags-container {
        display: none !important;
    }
    
    .tag {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .categories-nav {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.3rem;
    }
    
    .category-link {
        padding: 0.5rem 0.6rem;
        font-size: 0.75rem;
    }
    
    .illustration-content {
        gap: 0.5rem;
    }
    
    .illustration-item {
        padding: 0.6rem;
        min-width: 70px;
        max-width: 100px;
    }
    
    .illustration-icon {
        font-size: 1.8rem;
        margin-bottom: 0.4rem;
    }
    
    .illustration-text {
        font-size: 0.75rem;
    }
}

/* 移动端底部导航 */
@media (max-width: 768px) {
    .mobile-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(10px);
        display: flex;
        justify-content: around;
        padding: 0.8rem;
        z-index: 1000;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .mobile-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        color: #ffffff;
        text-decoration: none;
        font-size: 0.75rem;
        transition: color 0.3s;
        padding: 0.2rem;
    }
    
    .mobile-nav-item:hover {
        color: #4a69bd;
    }
    
    .mobile-nav-item::before {
        font-size: 1.3rem;
        margin-bottom: 0.2rem;
    }
    
    .mobile-nav-item[data-nav="home"]::before { content: "🏠"; }
    .mobile-nav-item[data-nav="posts"]::before { content: "📝"; }
    .mobile-nav-item[data-nav="messages"]::before { content: "💬"; }
    .mobile-nav-item[data-nav="profile"]::before { content: "👤"; }
    
    body {
        padding-bottom: 70px;
    }
}

/* 加载动画 */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #4a69bd;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* 表单样式 */
.form-container {
    max-width: 500px;
    margin: 2rem auto;
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #ffffff;
}

.form-input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    backdrop-filter: blur(5px);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* Select 元素特殊样式 */
.form-input[type="select"],
.form-input select,
select.form-input {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.8rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
}

/* Select 选项样式 - 增强兼容性 */
.form-input option,
select.form-input option {
    background: #2c3e50 !important;
    color: #ffffff !important;
    padding: 0.5rem;
}

/* 确保选项有正确的背景色 */
.form-input option:hover,
select.form-input option:hover {
    background: #34495e !important;
}

.form-input option:checked,
select.form-input option:checked {
    background: #4a69bd !important;
}

/* 针对不同浏览器的特殊处理 */
@supports (-webkit-appearance: none) {
    .form-input option,
    select.form-input option {
        background: #2c3e50 !important;
        color: #ffffff !important;
    }
}

/* Firefox 特殊处理 */
@-moz-document url-prefix() {
    .form-input option,
    select.form-input option {
        background: #2c3e50 !important;
        color: #ffffff !important;
    }
}

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

.alert {
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    font-weight: 500;
}

.alert-success {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.alert-error {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 500px;
    width: 90%;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* 空状态和错误状态 */
.empty-state, .error-state {
    text-align: center;
    padding: 3rem 1rem;
    grid-column: 1 / -1;
}

.empty-state h3, .error-state h3 {
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.empty-state p, .error-state p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1rem;
}

/* 购买平台弹窗样式 */
.buy-platform-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.buy-platform-modal-content {
    position: relative;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    margin: 5% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.buy-platform-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px 20px 0 0;
}

.buy-platform-header h2 {
    color: white;
    margin: 0;
    font-size: 1.5rem;
}

.buy-platform-close {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background 0.3s;
}

.buy-platform-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.buy-platform-body {
    padding: 2rem;
}

.platform-option {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.platform-option:has(.platform-info[style*="margin-left: 0"]) {
    /* 当没有图标时的特殊样式 */
    padding-left: 2rem;
}

.platform-option:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(74, 105, 189, 0.5);
    transform: translateY(-2px);
}

.platform-option.recommended {
    border-color: #4CAF50;
    background: rgba(76, 175, 80, 0.1);
}

.platform-logo {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    overflow: hidden;
}

.platform-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.platform-info {
    flex: 1;
}

.platform-info h3 {
    color: white;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.platform-info p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.4;
}

.platform-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.copy-link-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.copy-link-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.platform-arrow {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
    margin-left: 0.5rem;
}

.recommended-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: #4CAF50;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* 购买平台弹窗移动端响应 */
@media (max-width: 768px) {
    .buy-platform-modal-content {
        width: 95%;
        margin: 2% auto;
    }
    
    .platform-option {
        flex-direction: column;
        text-align: center;
    }
    
    .platform-logo {
        margin-bottom: 1rem;
        margin-right: 0;
    }
    
    .platform-actions {
        margin-top: 1rem;
    }
}

 