/* 产品详情页样式 */
:root {
    --primary-color: #4a6cf7;
    --secondary-color: #6c757d;
    --accent-color: #ff6b6b;
    --text-color: #e0e0e0;
    --text-muted: #a0a0a0;
    --bg-dark: #1a1a2e;
    --bg-card: #232342;
    --bg-hover: #2a2a4a;
    --border-color: #3a3a5a;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
}

/* 面包屑导航优化 */
.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    padding: 15px;
    margin-bottom: 25px;
    color: var(--text-muted);
    font-size: 14px;
    background-color: var(--bg-card);
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

.breadcrumb::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.breadcrumb-label {
    font-weight: 600;
    color: var(--text-color);
    margin-right: 10px;
    background-color: var(--bg-hover);
    padding: 5px 10px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.breadcrumb-label i {
    color: var(--primary-color);
}

.breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 5px 8px;
    border-radius: 4px;
    position: relative;
}

.breadcrumb a:hover {
    color: var(--primary-color);
    background-color: var(--bg-hover);
}

.breadcrumb a:hover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    animation: breadcrumbUnderline 0.3s ease forwards;
}

@keyframes breadcrumbUnderline {
    to {
        width: 80%;
        left: 10%;
    }
}

.breadcrumb i {
    margin: 0 6px;
    font-size: 12px;
    color: var(--accent-color);
    opacity: 0.8;
}

.current-page {
    color: var(--primary-color);
    font-weight: 600;
    padding: 5px 8px;
    border-radius: 4px;
    background-color: rgba(74, 108, 247, 0.1);
}

@media (max-width: 768px) {
    .breadcrumb {
        padding: 12px;
        margin-bottom: 20px;
        font-size: 12px;
    }
    
    .breadcrumb-label {
        padding: 4px 8px;
        margin-right: 6px;
        margin-bottom: 5px;
    }
    
    .breadcrumb a {
        padding: 3px 5px;
    }
    
    .current-page {
        padding: 3px 5px;
    }
}

/* 产品详情容器 */
.product-detail-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

/* 左侧产品信息 */
.product-info {
    flex: 1;
    min-width: 300px;
}

/* 产品图片区域 */
.product-gallery {
    margin-bottom: 30px;
}

.main-image {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* 产品详情 */
.product-details {
    background-color: var(--bg-card);
    border-radius: 8px;
    padding: 25px;
}

.product-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-color);
}

.product-price {
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.current-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--accent-color);
}

.original-price {
    font-size: 18px;
    color: var(--text-muted);
    text-decoration: line-through;
}

.product-features {
    margin-bottom: 25px;
}

.product-features h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.product-features ul {
    list-style: none;
    padding: 0;
}

.product-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.product-features i {
    color: var(--success-color);
}

/* 产品操作区域 */
.product-actions {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.download-section h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.download-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.download-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background-color: var(--bg-hover);
    color: var(--text-color);
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.download-button:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 108, 247, 0.2);
}

.download-button:active {
    transform: translateY(0);
}

.download-button i {
    transition: transform 0.3s ease;
}

.download-button:hover i {
    transform: translateY(-2px);
}

.download-button.mirror {
    background-color: var(--secondary-color);
}

.download-button.mirror:hover {
    background-color: #5a6268;
}

.purchase-section {
    margin-top: 10px;
}

.purchase-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 20px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.purchase-button:hover {
    background-color: #3a5bd9;
}

.purchase-button.maintenance {
    background-color: #5a5a5a;
    color: #e0e0e0;
    cursor: not-allowed;
    position: relative;
    opacity: 1;
    border: 1px dashed #999;
    background-image: repeating-linear-gradient(
        45deg,
        rgba(0, 0, 0, 0.1),
        rgba(0, 0, 0, 0.1) 10px,
        rgba(0, 0, 0, 0) 10px,
        rgba(0, 0, 0, 0) 20px
    );
    box-shadow: none;
}

.purchase-button.maintenance:hover {
    background-color: #5a5a5a;
    transform: none;
    box-shadow: none;
}

.purchase-button.maintenance i {
    animation: rotate 2s linear infinite;
    margin-right: 8px;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.purchase-button.maintenance[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 12px;
    background-color: rgba(0, 0, 0, 0.9);
    color: white;
    border-radius: 6px;
    font-size: 14px;
    white-space: nowrap;
    z-index: 10;
    margin-bottom: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.3s ease-out;
}

.purchase-button.maintenance[data-tooltip]:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
    margin-bottom: 2px;
    z-index: 10;
}

/* 右侧最近成交 */
.recent-sales {
    width: 300px;
    background-color: var(--bg-card);
    border-radius: 8px;
    padding: 20px;
}

.recent-sales h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.sales-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* 最近成交区域链接样式 */
.sales-list a.sale-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.sales-list a.sale-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sales-list a.sale-item:hover {
    background-color: var(--bg-hover);
    transform: translateX(5px);
    padding-left: 10px;
    border-radius: 4px;
}

.sales-list a.sale-item:hover .sale-title {
    color: var(--primary-color);
}

.sales-list a.sale-item:hover .sale-image {
    transform: scale(1.05);
    border: 1px solid var(--primary-color);
}

.sale-image {
    width: 60px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    background-color: var(--bg-hover);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.sale-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sale-info {
    flex: 1;
}

.sale-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sale-price {
    font-size: 16px;
    font-weight: 600;
    color: var(--accent-color);
}

.sale-time {
    font-size: 12px;
    color: var(--text-muted);
}

/* 产品详情内容 */
.product-content {
    background-color: var(--bg-card);
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 40px;
}

.product-content h2 {
    font-size: 22px;
    margin-bottom: 25px;
    color: var(--text-color);
}

.content-section {
    line-height: 1.6;
    color: var(--text-color);
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    min-width: 0;
}

.content-section h3 {
    font-size: 18px;
    margin: 25px 0 15px;
    color: var(--text-color);
}

.content-section p {
    margin-bottom: 15px;
}

.content-section ul, .content-section ol {
    padding-left: 20px;
    margin-bottom: 15px;
}

.content-section li {
    margin-bottom: 8px;
}

/* 强制正文内容换行，覆盖粘贴内容带来的内联样式 */
.content-section p,
.content-section div,
.content-section span,
.content-section li,
.content-section td,
.content-section th,
.content-section h3,
.content-section h4,
.product-description {
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
}

.content-section pre,
.content-section code {
    white-space: pre-wrap !important;
    word-break: break-all;
}

/* 正文内图片、视频、表格等内容的移动端自适应 */
.content-section img,
.product-content img,
.product-description img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    margin: 16px auto;
    border-radius: 8px;
    box-sizing: border-box;
}

.content-section video,
.product-content video {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    margin: 16px auto;
    border-radius: 8px;
}

.content-section iframe,
.product-content iframe {
    max-width: 100% !important;
    display: block;
    margin: 16px auto;
}

.content-section table,
.product-content table {
    max-width: 100%;
    display: block;
    overflow-x: auto;
    border-collapse: collapse;
}

.content-section pre,
.product-content pre {
    max-width: 100%;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* 功能网格 */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.feature-item {
    background-color: var(--bg-hover);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.feature-icon {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.feature-item h4 {
    font-size: 16px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.feature-item p {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .product-detail-container {
        flex-direction: column;
    }
    
    .recent-sales {
        width: 100%;
    }
    
    .main-image {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .product-info {
        min-width: 0;
        width: 100%;
    }

    .product-details {
        padding: 18px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .main-image {
        height: 250px;
    }

    .product-price {
        flex-wrap: wrap;
        gap: 10px;
    }

    .download-password {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .download-button {
        width: 100%;
    }

    .product-content {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .product-title {
        font-size: 20px;
    }
    
    .current-price {
        font-size: 24px;
    }
    
    .original-price {
        font-size: 16px;
    }
    
    .download-button,
    .download-password {
        padding: 10px 15px;
    }
    
    .download-password code {
        padding: 3px 8px;
        font-size: 13px;
    }
    
    .main-image {
        height: 200px;
    }

    .product-details {
        padding: 15px;
    }

    .product-title {
        font-size: 19px;
    }

    .current-price {
        font-size: 22px;
    }
}

/* 下载密码样式优化 */
.download-password {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: var(--bg-hover);
    padding: 12px 20px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    text-align: center;
}

.download-password:hover {
    background-color: var(--bg-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.download-password span {
    color: var(--text-muted);
    font-size: 14px;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.download-password code {
    background-color: var(--bg-dark);
    padding: 4px 12px;
    border-radius: 4px;
    color: var(--primary-color);
    font-family: monospace;
    font-size: 14px;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    min-width: 80px;
    text-align: center;
    display: inline-block;
}

.download-password:hover code {
    background-color: var(--bg-hover);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(74, 108, 247, 0.1);
}

.copy-password {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.copy-password:hover {
    color: var(--primary-color);
    background-color: var(--bg-dark);
    transform: scale(1.1);
}

.copy-password:active {
    transform: scale(0.95);
}

.copy-password i {
    transition: transform 0.3s ease;
}

.copy-password:hover i {
    transform: rotate(15deg);
}

/* 复制成功提示 */
.copy-success {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: var(--success-color);
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 14px;
    animation: slideIn 0.3s ease-out, fadeOutSimple 0.3s ease-out 2s forwards;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
}

.copy-success::before {
    content: '✓';
    font-weight: bold;
}

/* 复制失败提示 */
.copy-success.copy-error {
    background-color: var(--danger-color);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.2);
}

.copy-success.copy-error::before {
    content: '!';
    font-weight: bold;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOutSimple {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* 产品描述样式 */
.product-description {
    color: var(--text-color);
    line-height: 1.8;
    font-size: 15px;
    margin: 0;
    padding: 15px;
    background-color: var(--bg-hover);
    border-radius: 6px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    min-width: 0;
}

.product-description:hover {
    background-color: var(--bg-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 维护提示样式 */
.maintenance-tooltip {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 15px 25px;
    border-radius: 6px;
    font-size: 16px;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.3s ease-out;
}

.maintenance-tooltip.fade-out {
    animation: fadeOut 0.3s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
    to {
        opacity: 0;
        transform: translate(-50%, -40%);
    }
}

/* 产品详情内容样式增强 */
.section-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--text-color);
    position: relative;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.content-subtitle {
    font-size: 20px;
    font-weight: 600;
    margin: 30px 0 20px;
    color: var(--primary-color);
    position: relative;
    padding-left: 15px;
}

.content-subtitle::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.content-paragraph {
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--text-color);
    text-align: justify;
}

.feature-title {
    font-size: 16px;
    font-weight: 600;
    margin: 10px 0;
    color: var(--text-color);
}

.feature-desc {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-muted);
}

.requirement-list, .benefits-list {
    padding-left: 20px;
    margin-bottom: 25px;
}

.requirement-list li, .benefits-list li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 15px;
    color: var(--text-color);
}

.requirement-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.benefits-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 20px;
        margin-bottom: 20px;
        padding-bottom: 12px;
    }
    
    .content-subtitle {
        font-size: 18px;
        margin: 25px 0 15px;
    }
    
    .content-paragraph {
        font-size: 14px;
    }
}

/* 服务承诺模块样式 */
.service-promise {
    display: flex;
    justify-content: space-between;
    background-color: var(--bg-card);
    border-radius: 8px;
    margin-bottom: 30px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    background-image: linear-gradient(45deg, rgba(0, 0, 0, 0.1) 25%, transparent 25%, transparent 50%, rgba(0, 0, 0, 0.1) 50%, rgba(0, 0, 0, 0.1) 75%, transparent 75%, transparent);
    background-size: 8px 8px;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.promise-item {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 20px;
    position: relative;
}

.promise-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background-color: rgba(255, 255, 255, 0.15);
}

.promise-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(74, 108, 247, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 24px;
    color: var(--primary-color);
}

.promise-content h3 {
    font-size: 16px;
    color: var(--primary-color);
    margin: 0 0 5px 0;
    font-weight: 600;
}

.promise-content p {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
}

@media (max-width: 768px) {
    .service-promise {
        flex-direction: column;
    }
    
    .promise-item {
        padding: 15px;
    }
    
    .promise-item:not(:last-child)::after {
        right: 10%;
        top: auto;
        bottom: 0;
        height: 1px;
        width: 80%;
    }
    
    .promise-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
} 
