/* Nextcloud 功能对比落地页样式 */
.nextcloud-compare-page * {
    box-sizing: border-box;
}

/* ========== 顶部 Hero / Banner 区域 ========== */
.nc-hero-banner {
    width: 100%;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #5eb3e4 0%, #3a9fd5 50%, #2891c9 100%);
    background-color: #5eb3e4;
    padding: 48px 20px 56px;
    position: relative;
    overflow: hidden;
}

.nc-hero-banner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse 80% 50% at 50% 120%, rgba(255,255,255,0.08) 0%, transparent 60%);
    pointer-events: none;
}

.nc-hero-inner {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.nc-hero-title {
    font-size: 38px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 16px 0;
    letter-spacing: 0.5px;
    line-height: 1.3;
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}

.nc-hero-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.92);
    margin: 0 0 32px 0;
    line-height: 1.6;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.nc-hero-cta {
    margin-top: 8px;
}

/* 主 CTA 按钮样式 */
.nc-cta-btn {
    display: inline-block;
    padding: 10px 28px;
    background: #ffffff;
    color: #0082c9 !important;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none !important;
    border-radius: 24px;
    border: 2px solid transparent;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    cursor: pointer;
}

.nc-cta-btn:hover {
    background: rgba(255, 255, 255, 0.95);
    color: #006ba3 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.nc-cta-btn:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .nc-hero-banner {
        min-height: 240px;
        padding: 36px 16px 44px;
    }
    .nc-hero-title {
        font-size: 28px;
    }
    .nc-hero-subtitle {
        font-size: 15px;
    }
    .nc-cta-btn {
        padding: 8px 22px;
        font-size: 14px;
    }
}

/* ========== 面包屑导航区域 - 与内容对齐 ========== */
.nc-breadcrumb-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.nc-breadcrumb-wrapper .position-navigation {
    padding-top: 12px;
    padding-bottom: 12px;
    margin-left: -8px;
}

.nextcloud-compare-page .nc-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

.nextcloud-compare-page .nc-table-wrapper {
    overflow-x: auto;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.nextcloud-compare-page .nc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    min-width: 1200px;
}

.nextcloud-compare-page .nc-table thead th {
    background: #0082c9;
    color: #fff;
    padding: 16px 12px;
    text-align: center;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 10;
}

.nextcloud-compare-page .nc-table thead th:first-child {
    text-align: left;
    min-width: 220px;
}

.nextcloud-compare-page .nc-table thead th img {
    height: 32px;
    margin-bottom: 6px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.nextcloud-compare-page .nc-table tbody tr {
    border-bottom: 1px solid #e8e8e8;
}

.nextcloud-compare-page .nc-table tbody tr:hover {
    background: #f8fbfd;
}

.nextcloud-compare-page .nc-table tbody td {
    padding: 12px;
    text-align: center;
    vertical-align: middle;
}

.nextcloud-compare-page .nc-table tbody td:first-child {
    text-align: left;
    font-weight: 500;
    background: #fafafa;
    position: relative;
}

.nextcloud-compare-page .nc-table tr.nc-category td {
    background: #e8f4fc !important;
    font-weight: 700;
    color: #0082c9;
    font-size: 15px;
    padding: 14px 12px;
}

.nextcloud-compare-page .nc-yes {
    color: #2d8c3c;
    font-weight: 600;
}

.nextcloud-compare-page .nc-yes::before {
    content: "✓ ";
}

.nextcloud-compare-page .nc-no {
    color: #c42b2b;
}

.nextcloud-compare-page .nc-no::before {
    content: "✗ ";
}

.nextcloud-compare-page .nc-partial {
    color: #b36b00;
}

.nextcloud-compare-page .nc-na {
    color: #888;
    font-style: italic;
}

.nextcloud-compare-page .nc-has-tooltip {
    position: relative;
    cursor: help;
    border-bottom: 1px dotted #666;
}

.nextcloud-compare-page .nc-tooltip {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 400;
    white-space: normal;
    width: 280px;
    text-align: left;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: opacity 0.2s, visibility 0.2s;
    line-height: 1.5;
}

.nextcloud-compare-page .nc-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: #333;
}

.nextcloud-compare-page .nc-has-tooltip:hover .nc-tooltip {
    visibility: visible;
    opacity: 1;
}

.nextcloud-compare-page .nc-table td:first-child .nc-tooltip {
    left: 0;
    transform: none;
}

.nextcloud-compare-page .nc-table td:first-child .nc-tooltip::after {
    left: 20px;
    transform: none;
}

.nextcloud-compare-page .nc-footer-note {
    margin-top: 30px;
    padding: 20px;
    background: #f8f8f8;
    border-radius: 8px;
    font-size: 13px;
    color: #666;
    line-height: 1.8;
}

.nextcloud-compare-page .nc-footer-note p {
    margin-bottom: 10px;
}

.nextcloud-compare-page .nc-footer-note p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .nextcloud-compare-page .nc-title {
        font-size: 26px;
    }

    .nextcloud-compare-page .nc-tooltip {
        width: 220px;
        font-size: 12px;
    }
}
