.compare-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: var(--spacing-sm) 0;
}
.compare-header {
    text-align: center;
    margin-bottom: 2rem;
}
.compare-header h1 {
    font-size: 2.2rem;
    color: var(--color-accent-primary);
    margin-bottom: 0.75rem;
}
.compare-header p {
    color: var(--color-text-muted);
    font-size: 1rem;
    max-width: 700px;
    margin: 0 auto;
}
.compare-meta {
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.85rem;
    margin-bottom: 2rem;
}
.compare-meta span {
    margin: 0 0.5rem;
}
.compare-variant-nav {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}
.compare-variant-nav a {
    padding: 0.5rem 1.25rem;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
}
.compare-variant-nav a:hover,
.compare-variant-nav a.active {
    color: var(--color-text-primary);
    border-color: var(--color-text-secondary);
}
.compare-hero-images {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    margin: 1.5rem 0 2rem;
}
.compare-hero-images .image-card {
    width: 100%;
    max-width: 1280px;
    text-align: center;
}
.compare-hero-images img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(var(--color-text-primary-rgb), 0.1);
    box-shadow: 0 4px 20px rgba(var(--color-black-rgb), 0.3);
}
.compare-hero-images .image-label {
    color: var(--color-text-muted);
    font-size: 0.8rem;
    margin-top: 0.4rem;
}
.compare-section {
    margin-bottom: 2.5rem;
}
.compare-section h2 {
    color: var(--color-accent-primary);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(var(--color-accent-primary-rgb), 0.12);
}
.compare-section h3 {
    color: var(--color-text-primary);
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    margin-top: 1.5rem;
}
.compare-section p {
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: 0.75rem;
}
.compare-section ul {
    margin: 0.5rem 0 1rem 1.5rem;
    list-style: disc;
}
.compare-section ul li {
    color: var(--color-text-secondary);
    margin-bottom: 0.4rem;
    line-height: 1.6;
}
.compare-section strong {
    color: var(--color-text-primary);
}
.compare-table-wrapper {
    overflow-x: auto;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(var(--color-text-primary-rgb), 0.08);
}
.compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.compare-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: rgba(var(--color-bg-primary-rgb), 0.97);
    color: var(--color-accent-primary);
    padding: 0.85rem 1rem;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid rgba(var(--color-accent-primary-rgb), 0.2);
    backdrop-filter: blur(8px);
}
.compare-table thead th:first-child {
    width: 32%;
}
.compare-table thead th:not(:first-child) {
    width: 34%;
}
.compare-table tbody tr {
    border-bottom: 1px solid rgba(var(--color-text-primary-rgb), 0.04);
}
.compare-table tbody tr:nth-child(even) {
    background: rgba(var(--color-text-primary-rgb), 0.02);
}
.compare-table tbody tr:hover {
    background: rgba(var(--color-accent-primary-rgb), 0.04);
}
.compare-table tbody td {
    padding: 0.7rem 1rem;
    color: var(--color-text-secondary);
    vertical-align: top;
    line-height: 1.5;
}
.compare-table tbody td:first-child {
    color: var(--color-text-primary);
    font-weight: 500;
}
/* Product columns — space for badge icons */
.compare-table tbody td:nth-child(2),
.compare-table tbody td:nth-child(3) {
    padding-left: 3rem;
    position: relative;
}
/* Badge icons for check/cross */
.check,
.cross {
    position: absolute;
    left: 0.7rem;
    top: 0.6rem;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0;
    line-height: 1;
}
.check {
    background: rgba(var(--color-accent-success-rgb), 0.15);
    color: var(--color-accent-success);
}
.check::before {
    content: '';
    width: 5px;
    height: 9px;
    border: solid currentColor;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
}
.cross {
    background: rgba(var(--color-accent-danger-rgb), 0.15);
    color: var(--color-accent-danger);
}
.cross::before,
.cross::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 2.5px;
    background: currentColor;
    margin-left: -6px;
    margin-top: -1.25px;
}
.cross::before {
    transform: rotate(45deg);
}
.cross::after {
    transform: rotate(-45deg);
}
/* Category separator rows */
.compare-table .category-row td {
    background: rgba(var(--color-accent-primary-rgb), 0.06);
    color: var(--color-accent-primary);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.6rem 1rem;
    border-bottom: 2px solid rgba(var(--color-accent-primary-rgb), 0.2);
}
.verdict-box {
    background: rgba(var(--color-accent-primary-rgb), 0.04);
    border: 1px solid rgba(var(--color-accent-primary-rgb), 0.15);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}
.verdict-box h3 {
    color: var(--color-accent-primary);
    margin-top: 0;
}
.verdict-box p {
    color: var(--color-text-secondary);
    line-height: 1.7;
}
.cta-box {
    text-align: center;
    margin: 2.5rem 0;
    padding: 2rem;
    background: rgba(var(--color-accent-primary-rgb), 0.03);
    border: 1px solid rgba(var(--color-accent-primary-rgb), 0.1);
    border-radius: 8px;
}
.cta-box h3 {
    color: var(--color-text-primary);
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}
.cta-box p {
    color: var(--color-text-muted);
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}
.cta-box .btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    font-size: 1rem;
}
.compare-footer-links {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(var(--color-text-primary-rgb), 0.06);
}
.compare-footer-links p {
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}
.compare-footer-links a {
    color: var(--color-accent-primary);
    text-decoration: none;
    margin: 0 0.5rem;
}
.compare-footer-links a:hover {
    text-decoration: underline;
}
.compare-article-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
}
.compare-article {
    display: flex;
    gap: 1.25rem;
    background: rgba(var(--color-bg-overlay-rgb), 0.6);
    border: 1px solid rgba(var(--color-text-primary-rgb), 0.08);
    border-radius: 10px;
    padding: 1rem;
    text-decoration: none;
    transition: border-color 0.2s, background 0.2s;
}
.compare-article:hover {
    border-color: var(--color-text-tertiary);
    background: rgba(var(--color-bg-overlay-rgb), 0.85);
}
.article-thumb {
    flex-shrink: 0;
    width: 120px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(var(--color-text-primary-rgb), 0.06);
}
.article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.article-body {
    flex: 1;
    min-width: 0;
}
.article-body h3 {
    color: var(--color-accent-primary);
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
}
.article-body p {
    color: var(--color-text-secondary);
    font-size: 0.88rem;
    line-height: 1.5;
    margin: 0 0 0.4rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.article-body .tag {
    display: inline-block;
    background: rgba(var(--color-accent-primary-rgb), 0.08);
    color: var(--color-accent-primary);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
}
.pro-badge {
    display: inline-block;
    background: rgba(var(--color-accent-primary-rgb), 0.1);
    color: var(--color-accent-primary);
    padding: 0.15rem 0.5rem;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 600;
}
.con-badge {
    display: inline-block;
    background: rgba(var(--color-accent-danger-rgb), 0.12);
    color: var(--color-accent-danger);
    padding: 0.15rem 0.5rem;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 600;
}
.timeline {
    position: relative;
    padding-left: 1.5rem;
    margin: 1rem 0;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(var(--color-accent-primary-rgb), 0.15);
}
.timeline-item {
    position: relative;
    margin-bottom: 1rem;
    padding-left: 1rem;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -1.35rem;
    top: 0.4rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-accent-primary);
}
.timeline-item .year {
    color: var(--color-accent-primary);
    font-weight: 600;
    font-size: 0.85rem;
}
.timeline-item p {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    margin: 0.2rem 0 0;
    line-height: 1.5;
}
.arch-diagram {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: stretch;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}
.arch-node {
    background: rgba(var(--color-bg-overlay-rgb), 0.7);
    border: 1px solid rgba(var(--color-text-primary-rgb), 0.1);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    text-align: center;
    min-width: 140px;
}
.arch-node h4 {
    color: var(--color-accent-primary);
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}
.arch-node p {
    color: var(--color-text-muted);
    font-size: 0.8rem;
    margin: 0;
}
.arch-arrow {
    display: flex;
    align-items: center;
    color: var(--color-text-muted);
    font-size: 1.5rem;
}
@media (max-width: 768px) {
    .compare-header h1 { font-size: 1.6rem; }
    .compare-table tbody td { font-size: 0.82rem; padding: 0.55rem 0.75rem; }
    .arch-diagram { flex-direction: column; align-items: center; }
    .arch-arrow { transform: rotate(90deg); }
    .compare-article { flex-direction: column; }
    .article-thumb { width: 100%; height: auto; aspect-ratio: 16 / 9; }
}


