/* 深色主题产品详情页样式 */

/* 页面背景 - 深灰色 */
body {
    background-color: #1a1a1a !important;
}

/* 导航栏背景 - 深色主题 */
.header {
    background-color: #1a1a1a !important;
}

/* 导航栏 Logo - 白色 */
.header .brand-logo img {
    filter: brightness(0) invert(1) !important;
}

/* 导航栏文字 - 白色 */
.header .nav-links a {
    color: #fff !important;
}

/* 导航栏下拉菜单文字 - 白色 */
.header .nav-dropdown > a {
    color: #fff !important;
}

/* 导航栏悬停效果 - 橙色 */
.header .nav-links a:hover,
.header .nav-dropdown > a:hover {
    color: #FF6B35 !important;
}

/* 语言切换按钮 - 白色 */
.header .language-toggle-btn {
    border-color: #fff !important;
    color: #fff !important;
}

/* 语言切换按钮悬停 - 橙色 */
.header .language-toggle-btn:hover {
    background: #FF6B35 !important;
    color: #fff !important;
    border-color: #FF6B35 !important;
}

/* 一号线产品页面 - 下拉栏深色背景 */
.nav-dropdown .dropdown-content {
    background: #1a1a1a !important;
}

.dropdown-column h3 {
    color: #fff !important;
}

.dropdown-column a {
    color: #fff !important;
}

.dropdown-column a:hover {
    color: #FF6B35 !important;
}

/* 产品页面背景 - 深色主题 */
.hero-product-section,
.product-specs-section,
.footer {
    background-color: #1a1a1a !important;
}

/* 主内容区域 - 深色主题 */
.hero-product-section {
    background-color: #1a1a1a !important;
    color: #e0e0e0 !important;
}

.hero-product-container {
    background-color: #1a1a1a !important;
}

/* 产品轮播图样式 - 深色主题 */
.product-carousel {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: 600px;
    margin: 0 auto;
    background: #1a1a1a;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 16px;
    background: #1a1a1a;
}

.carousel-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    background: #1a1a1a;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

/* 轮播图指示器 - 深色主题 */
.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 16px;
    z-index: 10;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.2);
}

.carousel-dot.active {
    background: #fff;
    transform: scale(1.3);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}

/* 轮播图导航箭头 - 深色主题 */
.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    height: auto;
    border: none;
    background: none;
    color: white;
    font-size: 48px;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.carousel-prev { left: 20px; }
.carousel-next { right: 20px; }

.carousel-prev:hover, .carousel-next:hover {
    transform: translateY(-50%) scale(1.2);
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.9);
}

.carousel-prev:active, .carousel-next:active {
    transform: translateY(-50%) scale(0.9);
}

.carousel-prev::before { content: '‹'; font-size: 48px; }
.carousel-next::before { content: '›'; font-size: 48px; }

/* 配色选择器样式 - 深色主题 */
.color-selector {
    margin-top: 24px;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.color-options {
    display: flex;
    gap: 16px;
    justify-content: flex-start;
}

.color-option {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid transparent;
    background: #2a2a2a;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
}

.color-option:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.color-option.active {
    transform: scale(1.15);
}

.color-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.color-option:hover .color-dot {
    transform: scale(1.1);
}

.color-option.active .color-dot {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.color-name {
    font-size: 14px;
    color: #e0e0e0;
    font-weight: 500;
    text-align: left;
}

/* 产品信息区域 - 深色主题 */
.hero-product-info {
    background: #1a1a1a;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.product-name {
    font-size: 48px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.product-tagline {
    font-size: 18px;
    color: #b0b0b0;
    margin-bottom: 24px;
    font-weight: 500;
}

.product-subtitle {
    font-size: 16px;
    line-height: 1.6;
    color: #d0d0d0;
    margin-bottom: 32px;
}

/* 购买按钮 - 深色主题 */
.buy-button-container {
    position: relative;
    margin-bottom: 24px;
}

.buy-button {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    border: none;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(255, 107, 53, 0.3);
}

.buy-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.4);
}

.buy-button.active {
    border-radius: 50px 50px 0 0;
    background: linear-gradient(135deg, #C84B1E 0%, #E55A2B 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(200, 75, 30, 0.4);
}

.buy-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #2a2a2a;
    border-radius: 0 0 50px 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    border: none;
    box-sizing: border-box;
    pointer-events: none;
    margin-top: -1px;
    backdrop-filter: blur(10px);
}

.buy-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.buy-option {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 24px;
    text-decoration: none;
    color: #e0e0e0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid #3a3a3a;
    position: relative;
    overflow: hidden;
}

.buy-option:last-child {
    border-bottom: none;
    border-radius: 0 0 50px 50px;
    margin-bottom: 0;
}

.buy-option:hover {
    background: linear-gradient(135deg, #3a3a3a 0%, #4a4a4a 100%);
    transform: translateX(4px);
    color: #ffffff;
}

.platform-logo {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.platform-logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 4px;
    max-width: 120px;
}

.platform-name {
    font-size: 14px;
    font-weight: 500;
}

/* 页脚 - 深色主题 */

.footer {
    background-color: #2a2a2a !important;
    color: #e0e0e0 !important;
}

.footer-content {
    color: #e0e0e0 !important;
}

.footer-section h3 {
    color: #ffffff !important;
}

.footer-section a {
    color: #b0b0b0 !important;
}

.footer-section a:hover {
    color: #ffffff !important;
}

.footer-bottom {
    color: #b0b0b0 !important;
}

/* 头部区域 - 深色主题 */
.header-section {
    background-color: #1a1a1a !important;
    color: #e0e0e0 !important;
}

.header-block {
    background-color: #1a1a1a !important;
    border-bottom: none !important;
    margin-top: 80px !important;
}


/* 确保按钮容器内的所有文字都可见 */
.header-block .button-container {
    color: #333333 !important;
}

.header-block .button-container * {
    color: #333333 !important;
}

.header-block .button-container a:hover * {
    color: #000000 !important;
}

/* 深色主题下返回和下一个按钮样式调整 */
.header-block .back-link, 
.header-block .next-link {
    border: none !important;
    background: #f5f5f5 !important;
    color: #666666 !important;
    transition: all 0.3s ease !important;
}

.header-block .back-link:hover, 
.header-block .next-link:hover {
    background: #e8e8e8 !important;
    color: #333333 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

.header-block .back-text, 
.header-block .next-text {
    color: #666666 !important;
}

.header-block .back-arrow, 
.header-block .next-arrow {
    color: #666666 !important;
}

.header-block .back-link:hover .back-text,
.header-block .next-link:hover .next-text {
    color: #333333 !important;
}

.header-block .back-link:hover .back-arrow,
.header-block .next-link:hover .next-arrow {
    color: #333333 !important;
}

/* 详情页区域 - 深色主题 */
.detail-page-section {
    background-color: #1a1a1a !important;
}

.detail-page-grid {
    background-color: #1a1a1a !important;
}

.detail-page-image {
    background-color: #1a1a1a !important;
}

/* 产品页面通用元素 - 深色主题 */
.hero-product-section h1, 
.hero-product-section h2, 
.hero-product-section h3, 
.hero-product-section h4, 
.hero-product-section h5, 
.hero-product-section h6 {
    color: #ffffff !important;
}

.hero-product-section p {
    color: #d0d0d0 !important;
}

.hero-product-section a {
    color: #e0e0e0 !important;
}

.hero-product-section a:hover {
    color: #ffffff !important;
}

/* 产品参数区域 - 深色主题 */
.product-specs-section {
    background-color: #1a1a1a !important;
    padding: 60px 0;
}

.specs-container {
    background-color: #1a1a1a !important;
}

.specs-table-container {
    background-color: #2a2a2a !important;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.specs-table {
    background-color: transparent !important;
    color: #e0e0e0 !important;
}

.specs-table td {
    color: #e0e0e0 !important;
    border-color: #444 !important;
    padding: 12px 16px;
}

.specs-table td:first-child {
    color: #b0b0b0 !important;
    font-weight: 500;
}


/* 补充缺失的文案样式 - 深色主题 */
.hero-product-display {
    width: 100% !important;
    background-color: #1a1a1a !important;
}

/* 按钮文字样式 - 深色主题 */
.back-text, .next-text {
    color: #e0e0e0 !important;
}

.back-arrow, .next-arrow {
    color: #e0e0e0 !important;
}

/* 产品标签和描述文字 - 深色主题 */
.product-tagline {
    color: #b0b0b0 !important;
}

.product-subtitle {
    color: #d0d0d0 !important;
}

/* 表格标题和内容 - 深色主题 */
.specs-table th {
    color: #ffffff !important;
    background-color: #333333 !important;
}

.specs-table td {
    color: #e0e0e0 !important;
    background-color: transparent !important;
}

/* 页脚链接和文字 - 深色主题 */
.footer-section p {
    color: #b0b0b0 !important;
}

.footer-section a {
    color: #b0b0b0 !important;
}

.footer-section a:hover {
    color: #ffffff !important;
}

/* 确保产品区域span和div文字可见 - 深色主题 */
.hero-product-section span, 
.hero-product-section div {
    color: inherit;
}



/* 确保产品区域按钮元素都有正确的颜色 - 深色主题 */
.hero-product-section button, 
.hero-product-section input, 
.hero-product-section select, 
.hero-product-section textarea {
    color: #e0e0e0 !important;
}

/* 确保产品区域文本内容在深色背景下可见 */
.hero-product-section .product-name,
.hero-product-section .product-tagline,
.hero-product-section .product-subtitle,
.hero-product-section .color-name {
    color: inherit;
}

/* 特殊处理一些可能被覆盖的元素 */
.product-name {
    color: #ffffff !important;
}

.color-name {
    color: #e0e0e0 !important;
}

/* 确保表格边框在深色主题下可见 */
.specs-table {
    border-collapse: collapse;
}

.specs-table td {
    border-bottom: 1px solid #444444 !important;
}

.specs-table tr:last-child td {
    border-bottom: none !important;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .product-carousel {
        height: 400px;
    }
    
    .hero-product-info {
        padding: 24px;
    }
    
    .product-name {
        font-size: 36px;
    }
    
    .carousel-prev,
    .carousel-next {
        font-size: 32px;
    }
    
    .carousel-prev { left: 10px; }
    .carousel-next { right: 10px; }
}
