
/* 整体布局 */
:root {
    --primary: #2c3e50;
    --secondary: #3498db;
    --accent: #1a5276;
    --light: #f8f9fa;
    --dark: #2c3e50;
    --text: #333;
    --border: #e9ecef;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

body {
    background-color: var(--light);
    color: var(--text);
    line-height: 1.6;
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 目录部分 - 使用第一个定义（left定位） */
.toc-container {
    position: fixed;
    left: 1080px;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    z-index: 1000;
    width: 220px;
    max-height: 70vh;
    overflow-y: auto;
    transition: all 0.3s ease;
}

.toc-title {
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--primary);
    border-bottom: 2px solid var(--secondary);
    padding-bottom: 5px;
    font-size: 1.1rem;
}

.toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.toc-item {
    margin-bottom: 8px;
    position: relative;
}

.toc-link {
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    display: block;
    padding: 5px 0 5px 15px;
    border-left: 2px solid transparent;
}

.toc-link:hover, .toc-link.active {
    color: var(--secondary);
    font-weight: 500;
    border-left-color: var(--secondary);
}

/* 移动端目录按钮 */
.toc-mobile-toggle {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--secondary);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    z-index: 1001;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    font-size: 1.2rem;
    cursor: pointer;
}

.toc-mobile-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 60px 20px 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    z-index: 999;
    max-height: 80vh;
    overflow-y: auto;
}

/* 斜对角布局样式 */
.diagonal-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.diagonal-row {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
    gap: 30px;
    align-items: start;
}

.diagonal-row.reversed {
    grid-template-columns: minmax(0, 3fr) minmax(0, 7fr);
}

.diagonal-row.reversed .diagonal-content {
    order: -1;
}

.diagonal-video {
    background: rgba(0,0,0,0.3);
    height: 335px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    position: relative;
    overflow: hidden;
}

.diagonal-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.diagonal-content {
    padding: 30px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.2);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.diagonal-content h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: white;
}

.diagonal-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.9);
}

/* VS 分隔区域样式 */
.vs-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 5px 0;
    position: relative;
    height: 20px;
}

.vs-style-1 {
    flex-direction: row;
}

.vs-style-1 .vs-line {
    flex: 1;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
}

.vs-style-1 .vs-text {
    margin: 0 5px;
    font-size: 40px;
    font-weight: 800;
    color: white;
    text-shadow: 0 0 20px rgba(255,255,255,0.7);
    letter-spacing: 2px;
}

/* Section Styles */
.section {
    padding: 25px 0;
    border-bottom: 1px solid var(--border);
}

.section-header {
    text-align: center;
    margin-bottom: 10px;
}

/* 修复视频对比部分的背景色 */
.video-comparison {
    background: linear-gradient(135deg, #0097c1 0%, #006a8c 100%);
    color: var(--text);
    padding: 10px 0;
    border-radius: 0;
    margin-bottom: 0;
}

/* Principle Section */   
.principle-layout {
    margin-top: 40px;
}

.principle-row {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 20px;
    align-items: center;
}

.principle-image {
    background: #e9ecef;
    width: 100%;
    height: 0;
    padding-bottom: 100%;
    position: relative;
    border-radius: 15px;
    border: 1px solid var(--border);
    overflow: hidden;
}

.principle-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}

.principle-content {
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Poll Section */
.poll-container {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8e53 100%);
    border-radius: 15px;
    padding: 50px 40px;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    min-height: 300px;
}

.poll-question {
    color: white !important;
    font-size: 1.6rem !important;
    font-weight: bold;
    margin-bottom: 35px !important;
    text-align: center;
    line-height: 1.4;
}

.poll-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 30px 0;
    max-width: 800px;
    margin: 0 auto;
}

.poll-btn {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.15) !important;
    border: 2px solid rgba(255, 255, 255, 0.5) !important;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    text-align: left;
    overflow: hidden;
    color: white !important;
}

.poll-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #4CAF50, #45a049);
    transition: width 0.8s ease;
    z-index: 0;
}

.option-text, .vote-count {
    position: relative;
    z-index: 2;
}

.option-text {
    flex: 1;
    font-weight: 500;
    color: white !important;
}

.vote-count {
    background: white !important;
    color: #ff6b35 !important;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    min-width: 40px;
    text-align: center;
    transition: all 0.3s ease;
}

.poll-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    background: white !important;
}

.poll-btn:hover .option-text {
    color: #ff6b35 !important;
}

.poll-btn:hover .vote-count {
    background: #ff6b35 !important;
    color: white !important;
}

.vote-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: rgba(76, 175, 80, 0.95);
    color: white;
    padding: 20px 40px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.2rem;
    z-index: 10000;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    pointer-events: none;
    backdrop-filter: blur(10px);
}

.vote-toast.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/*过渡区*/
.transition-text.custom-bg {
    background: rgba(255, 255, 255, 0.8) !important;
    color: #0097c1 !important;
    margin: 5px !important;
    padding: 0px !important;
}

/* 优势区section背景 */
.section.features-section {
    background: white !important;
    padding: 10px 0;
}

.advantages-container {
    max-width: 1200px;
    margin: 0 auto;
}

#advantages {
    background: #f0f9ff !important;
    padding: 40px 0;
}

.advantages-container {
    background: white !important;
    padding: 20px 20px;
    border-radius: 0 0 15px 15px;
    max-width: 1000px;
    margin: 0 auto;
}

.advantage-row {
    display: flex;
    align-items: center;
    padding: 10px 0;
    gap: 10px;
}

.advantage-row:nth-child(even) {
    flex-direction: row-reverse;
}

.advantage-image {
    background: #e9ecef;
    width: 600px;
    height: 246px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    overflow: hidden;
    flex-shrink: 0;
}

.advantage-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.advantage-content {
    flex: 1;
    padding: 20px;
}

.advantage-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary);
}

/* 产品图片容器 - 正方形 */
.section#products {
    background: white !important;
    padding: 25px 0;
}

.product-image {
    background: #f8f9fa;
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.buy-btn {
    display: block;
    background: linear-gradient(135deg, #ff6b35 0%, #ff8e53 100%);
    color: white;
    text-align: center;
    text-decoration: none;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(179, 0, 0, 0.3);
}

.buy-btn:hover {
    background: linear-gradient(135deg, #d32f2f, #b30000);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(179, 0, 0, 0.4);
    color: white;
    text-decoration: none;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 10px;
}

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-content {
    padding: 30px;
}

.scenario-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.scenario-item {
    background: #e9ecef;
    height: 200px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
}

/* CTA Section */
.cta-section {
    text-align: center;
    background: linear-gradient(135deg, #0097c1 0%, #006a8c 100%);
    border-radius: 0px;
    margin-top: 0 !important;
    padding-top: 10px !important;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    width: 300px !important;
    min-width: 300px !important;
    text-align: center;
    display: inline-block !important;
    flex: none !important;
    font-weight: bold !important;
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-weight: bold !important;
}

.btn-primary {
    background: #ff9457;
    color: white;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Comments Section */
.comments-section {
    background: white;
    padding: 20px 0;
    margin-top: 20px;
}

.comments-container {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border-radius: 0px;
    padding: 0px;
    border: 1px solid var(--border);
}

.comments-container .utterances {
    max-width: 100% !important;
    margin: 0 auto !important;
}

.comments-section .container {
    max-width: 1000px;
}

.comments-section .utterances-frame {
    width: 100% !important;
}

/* 响应式设计 - 移动端优化 */
@media (max-width: 1024px) {
    .toc-container {
        display: none;
    }
    
    .toc-mobile-toggle {
        display: block;
    }
    
    .diagonal-video {
        height: 350px;
    }
    
    .advantage-image {
        min-width: 250px;
        height: 200px;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .diagonal-row,
    .diagonal-row.reversed {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .diagonal-row.reversed .diagonal-content {
        order: 0;
    }
    
    .diagonal-video {
        height: 250px;
        order: -1;
    }
    
    .diagonal-content {
        padding: 25px;
    }
    
    .diagonal-content h3 {
        font-size: 1.5rem;
    }
    
    .diagonal-content p {
        font-size: 1rem;
    }
    
    .vs-style-1 .vs-text {
        font-size: 30px;
    }
    
    .video-comparison {
        padding: 40px 0;
    }
    
    .principle-row {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .principle-image {
        padding-bottom: 100%;
        order: -1;
    }
    
    .principle-content h3 {
        font-size: 1.5rem;
    }
    
    .principle-content p {
        font-size: 1rem;
    }
    
    .advantage-row {
        flex-direction: column !important;
        margin-bottom: 40px;
        gap: 20px;
    }
    
    .advantage-image {
        min-width: 100%;
        height: 200px;
        width: 100%;
    }
    
    .advantage-image img {
        object-fit: contain;
        width: 100%;
        height: 100%;
        background: #f8f9fa;
    }
    
    .advantage-content {
        padding: 15px;
    }
    
    .advantage-content h3 {
        font-size: 1.3rem;
        text-align: center !important;
    }
    
    .poll-container {
        padding: 30px 20px;
    }
    
    .poll-question {
        font-size: 1.3rem;
    }
    
    .poll-btn {
        padding: 14px 16px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .product-image {
        height: 250px;
        background: #f8f9fa;
    }
    
    .product-image img {
        object-fit: contain;
        width: 100%;
        height: 100%;
        padding: 15px;
    }
    
    .product-content {
        padding: 20px;
    }
    
    .scenario-gallery {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .scenario-item {
        height: 150px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        padding: 14px 20px;
        font-size: 1rem;
    }
    
    .cta-buttons .btn {
        width: 100% !important;
        min-width: auto !important;
    }
    
    .transition-text {
        padding: 20px;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .section {
        padding: 30px 0;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .diagonal-video {
        height: 200px;
    }
    
    .video-placeholder {
        height: 180px;
        font-size: 1rem;
    }
    
    .advantage-image {
        height: 150px;
    }
    
    .product-image {
        height: 200px;
    }
    
    .scenario-item {
        height: 120px;
        font-size: 0.9rem;
    }
    
    .poll-question {
        font-size: 1.2rem;
    }
    
    .poll-btn {
        padding: 12px 14px;
        font-size: 0.9rem;
    }
    
    .transition-text {
        padding: 15px;
        font-size: 1rem;
    }
    
    .toc-mobile-toggle {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}
    