/* ============================================================
   encrypted-traffic.css — 加密流量探测专题页专属样式
   与 style.css 全局变量完全兼容
   ============================================================ */

/* ===== HERO ===== */
.et-hero {
    position: relative;
    min-height: 680px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(180deg, #f0f5ff 0%, #ffffff 100%);
    padding-top: 72px;
}
#etCanvas {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
}
.et-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: radial-gradient(ellipse at 30% 50%, transparent 0%, rgba(240,245,255,0.2) 50%, rgba(255,255,255,0.5) 100%);
    pointer-events: none;
}
.et-hero-content {
    position: relative;
    z-index: 3;
    max-width: 960px;
    text-align: center;
    padding: 48px 24px;
}
.et-hero .breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 13px;
    color: var(--text-light);
}
.et-hero .breadcrumb a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}
.et-hero .breadcrumb a:hover { text-decoration: underline; }
.et-hero .breadcrumb svg {
    width: 14px; height: 14px;
    color: var(--text-light);
}
.et-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(26, 110, 255, 0.08);
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 100px;
    margin-bottom: 20px;
    border: 1px solid rgba(26, 110, 255, 0.15);
    animation: fadeInDown 0.8s ease-out;
}
.et-hero-badge::before {
    content: '';
    width: 6px; height: 6px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.et-hero h1 {
    font-size: clamp(30px, 5vw, 48px);
    font-weight: 900;
    line-height: 1.15;
    color: var(--text);
    margin-bottom: 20px;
    letter-spacing: -1px;
    animation: fadeInUp 0.8s ease-out 0.15s both;
}
.et-hero h1 .highlight {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.et-hero-content > p {
    font-size: clamp(14px, 2vw, 17px);
    color: var(--text-secondary);
    max-width: 720px;
    margin: 0 auto 32px;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}
.et-hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 36px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.5s both;
}
.et-hero-stats .stat-item { text-align: center; }
.et-hero-stats .stat-number {
    font-size: 36px;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.et-hero-stats .stat-label {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 8px;
    font-weight: 500;
}

/* ===== OVERVIEW ===== */
.overview-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.overview-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: var(--transition);
    position: relative;
}
.overview-card:hover {
    border-color: rgba(26, 110, 255, 0.2);
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}
.overview-card.active {
    border-color: var(--primary);
    box-shadow: 0 8px 32px rgba(26, 110, 255, 0.12);
}
.overview-card.active::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: var(--radius) var(--radius) 0 0;
}
.ov-icon {
    width: 48px; height: 48px;
    background: var(--primary-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.ov-icon svg {
    width: 24px; height: 24px;
    color: var(--primary);
}
.overview-card h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
}
.overview-card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 14px;
}
.ov-meta {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 600;
    background: var(--bg-warm);
    padding: 4px 12px;
    border-radius: 100px;
    display: inline-block;
}
.overview-card.active .ov-meta {
    background: var(--primary-light);
    color: var(--primary);
}

/* ===== CHALLENGES ===== */
.challenge-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.challenge-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.challenge-card:hover {
    border-color: rgba(26, 110, 255, 0.2);
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}
.ch-num {
    font-size: 48px;
    font-weight: 900;
    color: var(--primary);
    opacity: 0.12;
    line-height: 1;
    margin-bottom: 8px;
}
.challenge-card h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    margin-top: -20px;
    position: relative;
}
.challenge-card > p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}
.ch-source {
    font-size: 12px;
    color: var(--text-light);
    line-height: 1.6;
    padding-top: 14px;
    border-top: 1px dashed var(--border);
}

/* ===== INSIGHTS ===== */
.insights-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.insight-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: var(--transition);
}
.insight-card:hover {
    border-color: rgba(26, 110, 255, 0.2);
    box-shadow: var(--shadow-hover);
}
.insight-card.wide {
    grid-column: span 2;
}
.insight-card h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
}
.insight-note {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-top: 12px;
}
.insight-source {
    font-size: 11px;
    color: var(--text-light);
    margin-top: 10px;
    font-weight: 500;
}

/* ===== TOPICS ===== */
.topic-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.topic-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: block;
}
.topic-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}
.topic-card:hover {
    border-color: rgba(26, 110, 255, 0.2);
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}
.topic-card:hover::before { transform: scaleX(1); }
.topic-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 16px;
}
.topic-icon {
    width: 48px; height: 48px;
    background: var(--primary-light);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.topic-icon svg {
    width: 24px; height: 24px;
    color: var(--primary);
}
.topic-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}
.topic-tag {
    font-size: 11px;
    font-weight: 700;
    color: var(--primary);
    background: var(--primary-light);
    padding: 3px 10px;
    border-radius: 100px;
}
.topic-status {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 100px;
}
.topic-status.active {
    background: #e6f7ed;
    color: #2ea043;
}
.topic-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}
.topic-card > p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 14px;
}
.topic-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}
.topic-tags span {
    font-size: 11px;
    color: var(--primary);
    background: var(--primary-light);
    padding: 3px 10px;
    border-radius: 100px;
    font-weight: 500;
}
.topic-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}
.topic-count {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 500;
}
.topic-card .arrow {
    width: 28px; height: 28px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateX(-8px);
    transition: var(--transition);
    color: var(--primary);
    font-size: 14px;
    font-weight: 700;
}
.topic-card:hover .arrow {
    opacity: 1;
    transform: translateX(0);
}

/* ===== PUBLICATIONS ===== */
.pub-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.pub-item {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.pub-item:hover {
    border-color: rgba(26, 110, 255, 0.2);
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}
.pub-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 100px;
    margin-bottom: 10px;
}
.pub-badge.survey {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    color: #4338ca;
}
.pub-badge.journal {
    background: #f0fdf4;
    color: #16a34a;
}
.pub-badge.conf {
    background: #fff7ed;
    color: #ea580c;
}
.pub-item h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.4;
}
.pub-authors {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}
.pub-abs {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 14px;
}
.pub-abs {
    flex: 1 0 auto;
}
.pub-link {
    font-size: 13px;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: auto;
    padding-top: 14px;
}
.pub-link:hover { text-decoration: underline; }

/* ===== ROADMAP ===== */
.et-roadmap {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}
.et-roadmap::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0; bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-light) 50%, var(--border) 100%);
}
.et-roadmap-item {
    position: relative;
    padding-left: 60px;
    padding-bottom: 40px;
}
.et-roadmap-item:last-child { padding-bottom: 0; }
.et-roadmap-dot {
    position: absolute;
    left: 11px;
    top: 4px;
    width: 18px; height: 18px;
    background: white;
    border: 3px solid var(--border);
    border-radius: 50%;
    transition: var(--transition);
}
.et-roadmap-item.done .et-roadmap-dot {
    border-color: var(--primary);
    background: var(--primary);
}
.et-roadmap-item.active .et-roadmap-dot {
    border-color: var(--primary);
    background: var(--primary);
    box-shadow: 0 0 0 5px rgba(26, 110, 255, 0.15);
    animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 0 5px rgba(26, 110, 255, 0.15); }
    50% { box-shadow: 0 0 0 8px rgba(26, 110, 255, 0.08); }
}
.et-roadmap-content {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: var(--transition);
}
.et-roadmap-content:hover {
    border-color: rgba(26, 110, 255, 0.2);
    box-shadow: var(--shadow);
}
.et-roadmap-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.et-phase {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    background: var(--primary-light);
    padding: 4px 12px;
    border-radius: 100px;
}
.et-status {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 100px;
}
.et-status.done {
    background: #e6f7ed;
    color: #2ea043;
}
.et-status.ongoing {
    background: #fff7ed;
    color: #f57c00;
}
.et-status.planned {
    background: #f0f0f5;
    color: var(--text-light);
}
.et-time {
    font-size: 12px;
    color: var(--text-light);
    margin-left: auto;
    font-weight: 500;
}
.et-roadmap-content h4 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
}
.et-roadmap-content > p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 12px;
}
.et-roadmap-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.et-roadmap-tags span {
    font-size: 12px;
    color: var(--primary);
    background: var(--primary-light);
    padding: 4px 12px;
    border-radius: 100px;
    font-weight: 500;
}

/* ===== CONTACT BOX ===== */
.contact-box {
    background: var(--primary-gradient);
    border-radius: var(--radius);
    padding: 60px 48px;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.contact-bg {
    position: absolute;
    top: -50%; right: -20%;
    width: 400px; height: 400px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}
.contact-content {
    position: relative;
    z-index: 1;
}
.contact-box h3 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 12px;
}
.contact-box p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
    max-width: 520px;
    margin: 0 auto 28px;
    line-height: 1.8;
}
.contact-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}
.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}
.contact-btn-primary {
    background: white;
    color: var(--primary);
}
.contact-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
.contact-btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}
.contact-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* ===== MOBILE ===== */
@media (max-width: 1024px) {
    .overview-grid { grid-template-columns: repeat(2, 1fr); }
    .challenge-grid { grid-template-columns: repeat(2, 1fr); }
    .insights-grid { grid-template-columns: 1fr; }
    .insight-card.wide { grid-column: span 1; }
    .topic-grid { grid-template-columns: repeat(2, 1fr); }
    .pub-list { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 72px;
        left: 0; right: 0;
        background: white;
        flex-direction: column;
        padding: 16px 24px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
        gap: 4px;
        border-bottom: 1px solid var(--border);
    }
    .nav-links.active { display: flex; }
    .mobile-toggle { display: flex; }
    .et-hero { min-height: 520px; padding-top: 96px; }
    .et-hero h1 { font-size: clamp(26px, 7vw, 36px); }
    .et-hero-stats { gap: 24px; margin-top: 28px; }
    .et-hero-stats .stat-number { font-size: 28px; }
    .overview-grid { grid-template-columns: 1fr; }
    .challenge-grid { grid-template-columns: 1fr; }
    .topic-grid { grid-template-columns: 1fr; }
    .contact-box { padding: 40px 24px; }
    .contact-box h3 { font-size: 22px; }
    .contact-actions { flex-direction: column; align-items: center; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .section { padding: 48px 0; }
}

/* ===== CHART MOBILE ADAPTATION ===== */
@media (max-width: 768px) {
    #chart-tls-version { height: 280px !important; }
    #chart-http-version { height: 220px !important; }
    #chart-cert-algo { height: 220px !important; }
    #chart-ct-growth { height: 300px !important; }
    .insight-card { padding: 20px 16px; }
    .insight-note { font-size: 12px; }
}
@media (max-width: 400px) {
    #chart-ct-growth { height: 280px !important; }
}
