/* ==================== 市場對比頁面樣式 ==================== */

/* Hero區域 */
.comparison-hero {
    margin-top: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    padding: 80px 0;
    text-align: center;
}

.comparison-hero-content h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
}

.comparison-hero-content p {
    font-size: 18px;
    opacity: 0.95;
}

/* 對比表格區域 */
.comparison-table-section {
    padding: 80px 0;
    background: white;
}

.table-wrapper {
    overflow-x: auto;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    table-layout: fixed;
}

.comparison-table thead {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
}

.comparison-table th {
    padding: 18px 12px;
    text-align: center;
    font-weight: 700;
    font-size: 18px;
    border-bottom: 2px solid var(--border);
    height: 70px;
}

.comparison-table td {
    padding: 0 12px;
    border-bottom: 1px solid var(--border);
    font-size: 16px;
    text-align: center;
    vertical-align: middle;
    height: 140px;
    overflow: hidden;
}

.comparison-table tbody tr:hover {
    background: #f9fafb;
}

.comparison-table tbody tr.highlight-row {
    background: rgba(37, 99, 235, 0.05);
}

.comparison-table tbody tr.highlight-row:hover {
    background: rgba(37, 99, 235, 0.1);
}

/* 品牌名稱 */
.brand-name {
    font-weight: 700;
    color: var(--text);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    height: 140px;
}

.brand-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    font-weight: 700;
}

.brand-icon.rgf {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.brand-icon.fake {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.brand-icon.selective {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.brand-icon.pict {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
}

/* 狀態 */
.status {
    text-align: center;
}

.status-icon {
    font-size: 24px;
    font-weight: 700;
    display: block;
    margin-bottom: 5px;
}

.status.pass .status-icon {
    color: var(--success-color);
}

.status.partial .status-icon {
    color: var(--warning-color);
}

.status.fail .status-icon {
    color: var(--danger-color);
}

.status-text {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 16px;
}

.status.pass .status-text {
    color: var(--success-color);
}

.status.partial .status-text {
    color: var(--warning-color);
}

.status.fail .status-text {
    color: var(--danger-color);
}

.status p {
    font-size: 14px;
    color: var(--text-light);
    margin: 0;
    line-height: 1.6;
}

/* 結論 */
.conclusion {
    text-align: center;
}

.conclusion-text {
    font-weight: 700;
    color: var(--text);
    margin: 0;
    font-size: 18px;
}

.conclusion-text.danger {
    color: var(--danger-color);
}

.conclusion-text.success {
    color: var(--success-color);
}

.conclusion-sub {
    font-size: 12px;
    color: var(--text-light);
    margin: 5px 0 0 0;
}

/* 詳細分析區域 */
.detailed-analysis {
    padding: 90px 0 100px;
    background: radial-gradient(circle at top, #eef4ff 0, #f9fafb 45%, #f3f4f6 100%);
}

.detailed-analysis h2 {
    font-size: 40px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    color: var(--text);
    letter-spacing: 0.06em;
    position: relative;
}

.detailed-analysis h2::after {
    content: "MARKET STORIES";
    display: block;
    margin-top: 8px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--text-light);
}

.analysis-item {
    background: white;
    padding: 38px 42px;
    border-radius: 18px;
    margin-bottom: 32px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.22);
    position: relative;
    overflow: hidden;
}

.analysis-item.highlight {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.06), rgba(6, 182, 212, 0.04));
    border-left: 4px solid var(--secondary-color);
}

.analysis-item::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.08), transparent 55%);
    opacity: 0;
    transition: opacity 0.25s ease-out;
}

.analysis-item:hover::before {
    opacity: 1;
}

.analysis-item h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 18px;
    letter-spacing: 0.02em;
}

.analysis-item p {
    font-size: 17px;
    color: var(--text-light);
    margin-bottom: 14px;
    line-height: 1.9;
}

.analysis-item p.warning {
    background: rgba(239, 68, 68, 0.1);
    border-left: 4px solid var(--danger-color);
    padding: 15px;
    border-radius: 4px;
    color: #7f1d1d;
    font-weight: 600;
}

.analysis-list {
    list-style: none;
    margin: 20px 0;
    padding-left: 0;
}

.analysis-list li {
    padding: 8px 0;
    padding-left: 30px;
    position: relative;
    color: var(--text-light);
    font-size: 16px;
    line-height: 1.7;
}

.analysis-list li:before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 18px;
}

/* 分析結論 */
.analysis-conclusion {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-left: 4px solid var(--secondary-color);
}

.analysis-conclusion h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 15px;
}

.analysis-conclusion p {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.8;
}

.analysis-conclusion p.highlight-text {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 18px;
}

/* CTA區域 */
.comparison-cta {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    padding: 80px 0;
    text-align: center;
}

.comparison-cta h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 30px;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .comparison-hero-content h1 {
        font-size: 32px;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 15px;
        font-size: 13px;
    }

    .comparison-table th {
        font-size: 12px;
    }

    .brand-name {
        flex-direction: column;
        align-items: flex-start;
    }

    .brand-icon {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }

    .analysis-item {
        padding: 30px;
    }

    .detailed-analysis h2 {
        font-size: 28px;
    }

    .analysis-item h3 {
        font-size: 18px;
    }

    .comparison-cta h2 {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .comparison-hero {
        padding: 60px 0;
    }

    .comparison-hero-content h1 {
        font-size: 24px;
    }

    .comparison-table-section {
        padding: 40px 0;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 10px;
        font-size: 11px;
    }

    .status-icon {
        font-size: 18px;
    }

    .brand-name {
        font-size: 12px;
    }

    .analysis-item {
        padding: 20px;
        margin-bottom: 20px;
    }

    .analysis-item h3 {
        font-size: 16px;
    }

    .analysis-item p {
        font-size: 14px;
    }

    .detailed-analysis {
        padding: 40px 0;
    }

    .comparison-cta {
        padding: 60px 0;
    }

    .comparison-cta h2 {
        font-size: 20px;
    }
}
