:root {
    --primary: #3F6E78;
    --secondary: #2D4F5A;
    --accent: #89D5CC;
}

.dns-page {
    max-width: 1120px;
}

.dns-page [id] {
    scroll-margin-top: 12px;
}

.hero {
    position: relative;
    padding-top: 10px;
    margin-bottom: 18px;
}

.hero-centered {
    text-align: center;
}

.hero-centered .hero-kicker {
    left: 50%;
    transform: translateX(-50%);
}

.hero-centered h1 {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.hero-centered .hero-lead {
    margin-left: auto;
    margin-right: auto;
}

.hero-kicker {
    position: absolute;
    top: 0;
    left: 0;
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(63, 110, 120, 0.2);
    font-size: 0.76rem;
    letter-spacing: 0.12em;
    color: #355761;
    background: rgba(255, 255, 255, 0.45);
}

.hero-lead {
    margin-top: 18px;
    max-width: 100%;
    line-height: 1.9;
    color: #324c55;
    text-wrap: pretty;
}

/* 避免“看起来中途断句”的强制断行 */
.hero-lead,
.tech-header p,
.info-card p,
.timeline-item p {
    word-break: normal;
    overflow-wrap: anywhere;
}

.hero-meta {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.meta-card {
    padding: 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.42);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.48), rgba(137, 213, 204, 0.08));
}

.meta-label {
    display: block;
    font-size: 0.78rem;
    color: #5a6f77;
    margin-bottom: 5px;
}

.meta-value {
    font-size: 0.92rem;
    color: #203840;
}

.quick-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0 18px;
}

.quick-nav a {
    text-decoration: none;
    color: var(--secondary);
    font-size: 0.86rem;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(63, 110, 120, 0.22);
    background: rgba(255, 255, 255, 0.45);
    transition: background 0.2s ease, transform 0.2s ease;
}

.quick-nav a.active {
    background: rgba(137, 213, 204, 0.24);
    border-color: rgba(63, 110, 120, 0.3);
}

.quick-nav a:hover {
    background: rgba(137, 213, 204, 0.2);
    transform: translateY(-1px);
}

.tech-section {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    margin: 18px 0;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.2) 44%, rgba(63, 110, 120, 0.06)),
        rgba(255, 255, 255, 0.15);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.48),
        0 12px 26px rgba(10, 20, 30, 0.1);
}

.tech-section::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(105deg, rgba(255, 255, 255, 0) 20%, rgba(231, 250, 247, 0.15) 50%, rgba(255, 255, 255, 0) 80%);
    opacity: 0.45;
    transform: translateX(-120%);
    pointer-events: none;
}

.tech-section:hover::before {
    animation: liquid-sheen 2.2s ease-out 1;
}

.tech-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(63, 110, 120, 0.2);
}

.tech-header h2 {
    font-size: 1.28rem;
}

.tech-header p {
    margin-top: 3px;
    color: #536a72;
}

.tech-icon {
    font-size: 1.4rem;
    color: var(--primary);
}

.card-grid {
    display: grid;
    gap: 12px;
}

.card-grid.three-cols {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-grid.two-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.info-card {
    padding: 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.45), rgba(63, 110, 120, 0.06));
}

.info-card h3 {
    color: var(--secondary);
    font-size: 1.03rem;
    margin-bottom: 7px;
}

.info-card p {
    color: #40575d;
    line-height: 1.68;
}

.bullet-list {
    list-style: none;
    margin: 2px 0 0;
    padding: 0;
}

.bullet-list li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 8px;
    color: #3f555d;
    line-height: 1.66;
}

.bullet-list li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 0.62em;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: rgba(137, 213, 204, 0.95);
    box-shadow: 0 0 0 3px rgba(137, 213, 204, 0.2);
}

.access-info p + p {
    margin-top: 8px;
}

.access-info a {
    color: var(--primary);
}

.text-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.text-link:hover {
    text-decoration: underline;
}

.protocol-card {
    padding: 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.46), rgba(137, 213, 204, 0.08));
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.protocol-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(10, 20, 30, 0.08);
}

.protocol-name {
    color: var(--secondary);
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.protocol-description {
    line-height: 1.65;
    margin-bottom: 10px;
}

.protocol-features {
    list-style: none;
    padding-left: 0;
}

.protocol-features li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 6px;
}

.protocol-features li::before {
    content: "•";
    position: absolute;
    left: 7px;
    color: var(--accent);
}

.table-wrap {
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
    padding: 11px 12px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.28);
}

.comparison-table th {
    background: rgba(63, 110, 120, 0.14);
    color: var(--secondary);
    font-size: 0.95rem;
}

.comparison-table td {
    color: #314a53;
    font-size: 0.94rem;
}

.comparison-table td:first-child {
    font-weight: 700;
    color: #2a4650;
}

.timeline {
    display: grid;
    gap: 10px;
}

.timeline-item {
    padding: 14px;
    border-radius: 12px;
    border-left: 3px solid rgba(137, 213, 204, 0.8);
    background: rgba(255, 255, 255, 0.44);
}

.timeline-item h3 {
    color: var(--secondary);
    margin-bottom: 6px;
    font-size: 1rem;
}

.timeline-item p {
    color: #3f555d;
    line-height: 1.65;
}

.faq-list {
    display: grid;
    gap: 10px;
}

.faq-list details {
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.45);
    padding: 12px 14px;
}

.faq-list summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--secondary);
}

.glossary-search {
    width: 100%;
    margin-top: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.5);
    outline: none;
}

.glossary-search:focus {
    border-color: rgba(137, 213, 204, 0.55);
}

.faq-list p {
    margin-top: 9px;
    color: #40565f;
    line-height: 1.65;
}

.join-form {
    display: grid;
    gap: 12px;
}

.join-field {
    display: grid;
    gap: 6px;
}

.join-field span {
    font-size: 0.9rem;
    color: #355761;
    font-weight: 600;
}

.join-field input,
.join-field select,
.join-field textarea {
    width: 100%;
    border: 1px solid rgba(63, 110, 120, 0.22);
    border-radius: 12px;
    padding: 11px 12px;
    font: inherit;
    color: #314a53;
    background: rgba(255, 255, 255, 0.52);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.join-field input:focus,
.join-field select:focus,
.join-field textarea:focus {
    border-color: rgba(137, 213, 204, 0.62);
    box-shadow: 0 0 0 3px rgba(137, 213, 204, 0.18);
}

.join-field textarea {
    resize: vertical;
    min-height: 120px;
}

.join-field.is-invalid input,
.join-field.is-invalid select,
.join-field.is-invalid textarea {
    border-color: rgba(209, 76, 76, 0.78);
    box-shadow: 0 0 0 3px rgba(209, 76, 76, 0.15);
}

.join-error {
    min-height: 1.1em;
    color: #a13a3a;
    font-size: 0.82rem;
    line-height: 1.4;
}

.join-checks label {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    color: #3f555d;
    line-height: 1.6;
    font-size: 0.92rem;
}

.join-checks input[type="checkbox"] {
    margin-top: 3px;
}

.join-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.join-submit {
    border: none;
    border-radius: 999px;
    padding: 11px 20px;
    font: inherit;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 8px 18px rgba(63, 110, 120, 0.26);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.join-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(63, 110, 120, 0.3);
}

.join-submit:disabled {
    cursor: not-allowed;
    opacity: 0.78;
    transform: none;
    box-shadow: none;
}

.join-submit-loading {
    display: none;
}

.join-submit.is-loading .join-submit-text {
    display: none;
}

.join-submit.is-loading .join-submit-loading {
    display: inline;
}

.join-feedback {
    min-height: 1.4em;
    margin-top: 2px;
    padding: 0;
    border-radius: 10px;
    font-size: 0.92rem;
    line-height: 1.55;
    color: #3f555d;
}

.join-feedback.is-error,
.join-feedback.is-success {
    padding: 8px 10px;
    border: 1px solid transparent;
}

.join-feedback.is-error {
    color: #8e2f2f;
    background: rgba(226, 120, 120, 0.14);
    border-color: rgba(209, 76, 76, 0.28);
}

.join-feedback.is-success {
    color: #1f5b4c;
    background: rgba(137, 213, 204, 0.2);
    border-color: rgba(74, 165, 149, 0.35);
}

.back-to-top {
    position: fixed;
    right: 18px;
    bottom: 18px;
    padding: 10px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.42);
    background: rgba(255, 255, 255, 0.55);
    color: var(--secondary);
    cursor: pointer;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 9999;
}

.back-to-top.show {
    opacity: 1;
    transform: translateY(0);
}

.reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

@keyframes liquid-sheen {
    0%, 58%, 100% {
        transform: translateX(-120%);
    }
    78% {
        transform: translateX(120%);
    }
}

@media (max-width: 900px) {
    .hero-meta,
    .card-grid.three-cols,
    .card-grid.two-cols {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .dns-page {
        width: 92%;
    }

    .tech-section {
        padding: 18px 14px;
    }

    .tech-header {
        align-items: flex-start;
    }

    .quick-nav a {
        font-size: 0.82rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .reveal,
    .reveal.in-view {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .tech-section::before {
        display: none;
    }
}
