/* Comparison Table Styles */

/* 对比页面整体样式 */
.comparison-page {
    min-height: 100vh;
    background: #FFFFFF;
}

/* 对比区域 */
.comparison-section {
    padding: 60px 0;
    background: #FFFFFF;
}

.comparison-container {
    max-width: 1300px;
    margin: 0 auto;
    /* padding: 0 170px; */
}

.comparison-title {
    font-family: 'PingFang SC', sans-serif;
    font-weight: 600;
    font-size: 42px;
    line-height: 1.4;
    text-align: center;
    color: #0C0D13;
    margin-bottom: 80px;
}

/* 表格容器 */
.comparison-table-wrapper {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    border: 1px solid #EEF1F7;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: relative;
}

.comparison-table {
    width: 100%;
    min-width: 1100px;
    border-collapse: collapse;
    display: table;
}

/* 表头样式 */
.table-header {
    background: #FFFFFF;
}

.header-row {
    display: flex;
    align-items: stretch;
}

.header-cell {
    border-bottom: 1px solid #EEF1F7;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-cell.feature-cell {
    flex: 0 0 160px;
    background: #FFFFFF;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: sticky;
    left: 0;
    z-index: 20;
    box-shadow: none;
}

.header-cell.plan-cell {
    flex: 1;
    min-width: 180px;
    padding: 19px;
    border: none;
}

/* 方案信息 */
.plan-info {
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.plan-name {
    font-family: 'PingFang SC', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.1;
    color: #0C0D13;
    margin: 0;
}

.plan-price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin: 0;
}

.currency {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: #0C0D13;
}

.price-number {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 26px;
    line-height: 1.1;
    color: #0C0D13;
}

.price-text {
    font-family: 'PingFang SC', sans-serif;
    font-weight: 600;
    font-size: 26px;
    line-height: 1.1;
    color: #0C0D13;
}

.price-period {
    font-family: 'PingFang SC', sans-serif;
    font-weight: 400;
    font-size: 13px;
    color: #0C0D13;
}

/* 按钮样式 */
.plan-btn {
    width: 150px;
    padding: 6px 14px;
    border: none;
    border-radius: 30px;
    font-family: 'PingFang SC', sans-serif;
    font-weight: 600;
    font-size: 13px;
    line-height: 2.1;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.trial-btn {
    background: #3F62FF;
    color: #FFFFFF;
}

.buy-btn {
    background: #3F62FF;
    color: #FFFFFF;
}

.plan-btn:hover {
    background: #2A4FFF;
    transform: translateY(-1px);
}

/* 方案列背景色 */
.plan-explorer {
    background: #F7F9FF;
}

.plan-basic {
    background: #FFFFFF;
}

.plan-professional {
    background: #F7F9FF;
}

.plan-enterprise {
    background: #FFFFFF;
}

.plan-ultimate {
    background: #F7F9FF;
}

/* 表格主体 */
.table-body {
    background: #FFFFFF;
}

.feature-row {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid #EEF1F7;
}

.feature-row:last-child {
    border-bottom: none;
}

/* 功能单元格 */
.feature-cell {
    flex: 0 0 200px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background: #FFFFFF;
    border-right: 1px solid #EEF1F7;
    min-height: 74px;
    position: sticky;
    left: 0;
    z-index: 10;
    box-shadow: 2px 0 4px rgba(0, 0, 0, 0.1);
}

.feature-title {
    font-family: 'PingFang SC', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.8;
    color: #0C0D13;
}

/* 计划单元格 */
.plan-cell {
    flex: 1;
    min-width: 180px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid #EEF1F7;
    min-height: 74px;
}

.plan-cell:last-child {
    border-right: none;
}

/* 文本单元格 - 调整背景色与表头保持一致 */
.text-cell {
    font-family: 'PingFang SC', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.4;
    color: #0C0D13;
    background: #FFFFFF;
}

/* 为不同方案列设置对应的背景色 - 使用更具体的选择器 */
.comparison-table .plan-cell.plan-explorer.text-cell {
    background: #F7F9FF;
}

.comparison-table .plan-cell.plan-basic.text-cell {
    background: #FFFFFF;
}

.comparison-table .plan-cell.plan-professional.text-cell {
    background: #F7F9FF;
}

.comparison-table .plan-cell.plan-enterprise.text-cell {
    background: #FFFFFF;
}

.comparison-table .plan-cell.plan-ultimate.text-cell {
    background: #F7F9FF;
}

/* 图标单元格 - 调整背景色与表头保持一致 */
.icon-cell {
    background: #FFFFFF;
}

/* 为不同方案列设置对应的背景色 - 使用更具体的选择器 */
.comparison-table .plan-cell.plan-explorer.icon-cell {
    background: #F7F9FF;
}

.comparison-table .plan-cell.plan-basic.icon-cell {
    background: #FFFFFF;
}

.comparison-table .plan-cell.plan-professional.icon-cell {
    background: #F7F9FF;
}

.comparison-table .plan-cell.plan-enterprise.icon-cell {
    background: #FFFFFF;
}

.comparison-table .plan-cell.plan-ultimate.icon-cell {
    background: #F7F9FF;
}

.feature-icon {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    color: #FFFFFF;
}

.feature-icon.yes {
    background: #28BE66;
    background-image: url(../images/new/icon_yes.svg);
    display: inline-block;
    width: 16px;
    height: 16px;
}

.feature-icon.no {
    background: #E86057;
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url(../images/new/icon_no.svg);
}

/* 响应式设计 */

/* 平板横屏 (≤1340px) */
@media (max-width: 1340px) {
    .comparison-container {
        padding: 0 100px;
        max-width: 1200px;
    }
    
    .comparison-title {
        font-size: 38px;
        margin-bottom: 60px;
    }
    
    .comparison-table {
        min-width: 1000px;
    }
    
    .header-cell.feature-cell {
        flex: 0 0 160px;
    }
    
    .feature-cell {
        flex: 0 0 180px;
    }
    
    .plan-cell {
        min-width: 160px;
    }
}

/* 平板竖屏 (≤1220px) */
@media (max-width: 1220px) {
    .comparison-container {
        padding: 0 60px;
        max-width: 1100px;
    }
    
    .comparison-title {
        font-size: 32px;
        margin-bottom: 50px;
    }
    
    .comparison-table {
        min-width: 900px;
    }
    
    .header-cell.feature-cell {
        flex: 0 0 160px;
        padding: 15px;
    }
    
    .feature-cell {
        flex: 0 0 160px;
        padding: 15px;
    }
    
    .plan-cell {
        min-width: 140px;
        padding: 15px;
    }
    
    .plan-name {
        font-size: 15px;
    }
    
    .price-number,
    .price-text {
        font-size: 22px;
    }
    
    .plan-btn {
        width: 130px;
        font-size: 12px;
    }
}

/* 手机大屏 (≤1000px) */
@media (max-width: 1000px) {
    .comparison-section {
        padding: 40px 0;
    }
    
    .comparison-container {
        padding: 0 20px;
        max-width: 100%;
    }
    
    .comparison-title {
        font-size: 28px;
        margin-bottom: 40px;
    }
    
    .comparison-table-wrapper {
        border-radius: 6px;
    }
    
    .comparison-table {
        min-width: 800px;
    }
    
    .header-cell.feature-cell {
        flex: 0 0 140px;
        padding: 12px;
    }

    .table-body .feature-cell {
        flex: 0 0 140px;
        padding: 12px;
    }
    
    .feature-cell {
        flex: 0 0 140px;
        padding: 12px;
        min-height: 60px;
    }
    
    .plan-cell {
        min-width: 120px;
        padding: 12px;
        min-height: 60px;
    }
    
    .feature-title {
        font-size: 14px;
        line-height: 1.6;
    }
    
    .plan-name {
        font-size: 14px;
    }
    
    .price-number,
    .price-text {
        font-size: 20px;
    }
    
    .currency {
        font-size: 14px;
    }
    
    .price-period {
        font-size: 12px;
    }
    
    .plan-btn {
        width: 110px;
        font-size: 11px;
        padding: 5px 12px;
    }
    
    .plan-info {
        gap: 15px;
    }
    
    .text-cell {
        font-size: 13px;
    }
    
    .feature-icon {
        width: 14px;
        height: 14px;
        font-size: 9px;
    }
}

/* 手机小屏 (≤768px) */
@media (max-width: 768px) {
    .comparison-section {
        padding: 30px 0;
    }
    
    .comparison-container {
        padding: 0 15px;
    }
    
    .comparison-title {
        font-size: 24px;
        margin-bottom: 30px;
    }
    
    .comparison-table {
        min-width: 700px;
    }
    
    .header-cell.feature-cell {
        flex: 0 0 120px;
        padding: 10px;
    }

    .table-body .feature-cell {
        flex: 0 0 120px;
        padding: 10px;
    }

    .feature-cell {
        flex: 0 0 120px;
        padding: 10px;
        min-height: 50px;
    }
    
    .plan-cell {
        min-width: 100px;
        padding: 10px;
        min-height: 50px;
    }
    
    .feature-title {
        font-size: 13px;
    }
    
    .plan-name {
        font-size: 13px;
    }
    
    .price-number,
    .price-text {
        font-size: 18px;
    }
    
    .plan-btn {
        width: 90px;
        font-size: 10px;
        padding: 4px 10px;
    }
    
    .plan-info {
        gap: 12px;
    }
    
    .text-cell {
        font-size: 12px;
    }
    
    .feature-icon {
        width: 12px;
        height: 12px;
        font-size: 8px;
    }
}

/* 手机超小屏 (≤480px) */
@media (max-width: 480px) {
    .comparison-section {
        padding: 20px 0;
    }
    
    .comparison-container {
        padding: 0 10px;
    }
    
    .comparison-title {
        font-size: 20px;
        margin-bottom: 25px;
        line-height: 1.3;
    }
    
    .comparison-table {
        min-width: 600px;
    }
    
    .header-cell.feature-cell {
        flex: 0 0 100px;
        padding: 8px;
    }

    .table-body .feature-cell {
        flex: 0 0 100px;
        padding: 8px;
    }
    
    .feature-cell {
        flex: 0 0 100px;
        padding: 8px;
        min-height: 45px;
    }
    
    .plan-cell {
        min-width: 85px;
        padding: 8px;
        min-height: 45px;
    }
    
    .feature-title {
        font-size: 11px;
        line-height: 1.4;
    }
    
    .plan-name {
        font-size: 12px;
    }
    
    .price-number,
    .price-text {
        font-size: 16px;
    }
    
    .currency {
        font-size: 12px;
    }
    
    .price-period {
        font-size: 10px;
    }
    
    .plan-btn {
        width: 75px;
        font-size: 9px;
        padding: 3px 8px;
    }
    
    .plan-info {
        gap: 10px;
    }
    
    .text-cell {
        font-size: 11px;
    }
    
    .feature-icon {
        width: 10px;
        height: 10px;
        font-size: 7px;
    }
}

/* 滚动条样式 */
.comparison-table-wrapper::-webkit-scrollbar {
    height: 8px;
}

.comparison-table-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.comparison-table-wrapper::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.comparison-table-wrapper::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 表格悬停效果 */
.feature-row:hover {
    /* background: rgba(63, 98, 255, 0.02); */
}

.feature-row:hover .feature-cell {
    /* background: rgba(63, 98, 255, 0.02); */
}

.feature-row:hover .plan-cell {
    /* background: rgba(63, 98, 255, 0.05); */
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.comparison-table {
    animation: fadeInUp 0.6s ease forwards;
}

/* 无障碍访问优化 */
.plan-btn:focus {
    outline: 2px solid #3F62FF;
    outline-offset: 2px;
}

/* 打印样式 */
@media print {
    .comparison-section {
        padding: 20px 0;
    }
    
    .comparison-container {
        padding: 0;
        max-width: 100%;
    }
    
    .comparison-table-wrapper {
        overflow: visible;
        border: 1px solid #000;
    }
    
    .comparison-table {
        min-width: auto;
        width: 100%;
    }
    
    .plan-btn {
        background: #fff !important;
        color: #000 !important;
        border: 1px solid #000 !important;
    }
}
