:root {
    --dd-cyan: #17b6e6;
    --dd-cyan-2: #2fe6c6;
    --dd-blue: #1f86e8;
    --dd-blue-2: #1a72d8;
    --dd-ink: #123a5e;
    --dd-muted: #5c6d7c;
    --dd-pill-grad: linear-gradient(135deg, #34f0c8 0%, #20e4dc 48%, #13d3f2 100%);
    --dd-head-grad: linear-gradient(90deg, #0b93c2, #1a72d8);
}

.ddns-page {
    color: var(--dd-ink);
    background: #f4f8fc;
    font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

/* ============ 首屏 ============ */
.ddns-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 104px 0 92px;
    background: url('../image/bannerm2.jpg') center/cover no-repeat;
    color: #fff;
    text-align: center;
    overflow: hidden;
}

/* 仅顶部一条蓝色轻渐变，保证透明导航白字可读（不改变中部图片发色） */
.ddns-hero::before {
    content: "";
    position: absolute;
    left: 0; top: 0;
    width: 100%; height: 190px;
    background: linear-gradient(to bottom, rgba(16, 70, 146, 0.55), rgba(16, 70, 146, 0));
    pointer-events: none;
}
/* 仅底部一条轻渐变，承托版权脚注 */
.ddns-hero::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 100%; height: 150px;
    background: linear-gradient(to top, rgba(8, 46, 110, 0.55), rgba(8, 46, 110, 0));
    pointer-events: none;
}

.ddns-hero-inner {
    position: relative;
    z-index: 2;
}

.ddns-hero .ddns-eyebrow {
    display: inline-block;
    letter-spacing: 5px;
    font-size: 13px;
    color: #eafaff;
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.10);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    padding: 7px 22px;
    border-radius: 999px;
    margin-bottom: 24px;
}

.ddns-hero h1 {
    font-size: clamp(25px, 3.2vw, 42px);
    font-weight: 700;
    margin: 0 0 18px;
    color: #fff;
    letter-spacing: clamp(1px, 0.2vw, 2px);
    line-height: 1.3;
    /*! text-shadow: 0 3px 18px rgba(7, 44, 102, 0.45), 0 1px 3px rgba(7, 44, 102, 0.35); */
    font-family: 'Newsreader', serif;
	font-family: 'Playfair Display', serif;
}

.ddns-hero .ddns-lead {
    max-width: 780px;
    margin: 0 auto;
    font-size: clamp(14px, 1.2vw, 16.5px);
    line-height: 2;
    color: #f2faff;
    text-shadow: 0 1px 8px rgba(7, 44, 102, 0.4);
}

/* ============ 胶囊下载按钮 ============ */
.ddns-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    justify-content: center;
    margin: 40px 0 8px;
}

.ddns-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-width: 312px;
    padding: 16px 34px;
    border: none;
    border-radius: 999px;
    text-decoration: none !important;
    color: #fff !important;
    text-shadow: 0 1px 3px rgba(0, 110, 120, 0.35);
    background: var(--dd-pill-grad);
    background-size: 160% 160%;
    background-position: 0% 50%;
    box-shadow: 0 16px 36px rgba(19, 200, 226, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transition: transform .28s ease, box-shadow .28s ease, background-position .4s ease;
}

.ddns-pill:hover {
    transform: translateY(-4px);
    background-position: 100% 50%;
    box-shadow: 0 24px 48px rgba(19, 200, 226, 0.62), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    color: #fff !important;
}

.ddns-pill .ddns-pill-ico { font-size: 27px; line-height: 1; }
.ddns-pill .ddns-pill-txt { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.35; }
.ddns-pill .ddns-pill-main { font-size: 19px; font-weight: 700; letter-spacing: 1px; }
.ddns-pill .ddns-pill-sub { font-size: 12px; opacity: .95; letter-spacing: .5px; }
.ddns-pill .ddns-pill-dl { font-size: 21px; transition: transform .28s ease; }
.ddns-pill:hover .ddns-pill-dl { transform: translateY(3px); }

/* 第二个按钮与主按钮同款薄荷绿→青渐变胶囊，保持全站按钮语言统一 */
.ddns-pill-alt {
    background: var(--dd-pill-grad);
    border: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}
.ddns-pill-alt:hover {
    background: var(--dd-pill-grad);
    color: #fff !important;
}

/* 平台标识 */
.ddns-platform {
    margin-top: 22px;
    font-size: 14px;
    color: #eaf6ff;
    letter-spacing: .5px;
    text-shadow: 0 1px 6px rgba(7, 44, 102, 0.4);
}
.ddns-platform .fa-windows { font-size: 16px; margin-right: 6px; }

/* 玻璃信息卡：累计下载 / 版本 / 授权 */
.ddns-meta {
    display: flex;
    align-items: stretch;
    max-width: 760px;
    margin: 30px auto 0;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 16px;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(8, 50, 110, 0.18);
    overflow: hidden;
}
.ddns-meta-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px 12px;
    border-right: 1px solid rgba(255, 255, 255, 0.22);
}
.ddns-meta-item:last-child { border-right: none; }
.ddns-meta-label { font-size: 12px; letter-spacing: 2px; color: rgba(234, 246, 255, 0.82); }
.ddns-meta-num { font-size: 19px; font-weight: 700; color: #fff; }
.ddns-meta-num b { font-size: 27px; color: #eafffb; margin-right: 2px; }

/* SHA256 行 */
.ddns-hashline {
    max-width: 900px;
    margin: 22px auto 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.ddns-hash {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 12px;
    color: rgba(240, 250, 255, 0.92);
    background: rgba(8, 44, 96, 0.20);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    padding: 8px 14px;
}
.ddns-hash span { flex: 0 0 auto; color: #cdf3ff; letter-spacing: .5px; }
.ddns-hash b { font-family: Consolas, Monaco, monospace; font-weight: 400; word-break: break-all; text-align: left; }

/* 首屏底部版权 */
.ddns-hero-foot {
    position: absolute;
    left: 0; right: 0; bottom: 24px;
    z-index: 2;
    font-size: 12.5px;
    letter-spacing: 1px;
    color: rgba(240, 250, 255, 0.9);
    text-shadow: 0 1px 6px rgba(7, 44, 102, 0.5);
}

/* ============ 内容区 ============ */
.ddns-section { padding: 66px 0; }
.ddns-section-head { text-align: center; margin-bottom: 40px; }
.ddns-section-head .ddns-eyebrow { color: var(--dd-cyan); letter-spacing: 3px; font-size: 13px; }
.ddns-section-head h2 {
    font-size: 28px;
    color: var(--dd-ink);
    margin: 10px 0 14px;
    font-weight: 700;
    letter-spacing: 1px;
}
.ddns-section-head .ddns-bar {
    width: 56px; height: 3px;
    background: var(--dd-head-grad);
    margin: 0 auto 16px;
    border-radius: 2px;
}
.ddns-section-head p { color: var(--dd-muted); max-width: 760px; margin: 0 auto; line-height: 1.95; }

.ddns-intro { background: #fff; border-top: 1px solid #e6eef5; }

.ddns-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.ddns-feature {
    background: #fff;
    border: 1px solid #e3edf5;
    border-top: 3px solid var(--dd-cyan);
    border-radius: 10px;
    padding: 28px 24px;
    transition: transform .22s ease, box-shadow .22s ease;
}
.ddns-feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 32px rgba(18, 110, 180, 0.14);
}
.ddns-feature h4 { color: var(--dd-ink); font-size: 17px; margin: 0 0 10px; font-weight: 700; }
.ddns-feature h4::before {
    content: "";
    display: inline-block;
    width: 18px; height: 2px;
    background: var(--dd-cyan);
    margin-right: 8px;
    vertical-align: middle;
}
.ddns-feature p { color: var(--dd-muted); font-size: 14px; line-height: 1.85; margin: 0; }

/* 版本表 */
.ddns-table-wrap {
    max-width: 1000px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #e1ebf4;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(18, 90, 150, 0.06);
}
.ddns-table-wrap table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ddns-table-wrap th, .ddns-table-wrap td {
    padding: 15px 16px;
    text-align: left;
    border-bottom: 1px solid #eef3f8;
    word-break: break-all;
}
.ddns-table-wrap th {
    background: var(--dd-head-grad);
    color: #fff;
    font-weight: 700;
    letter-spacing: 1px;
    border-bottom: none;
}
.ddns-table-wrap tbody tr:hover td { background: #f4fafe; }
.ddns-table-wrap tr:last-child td { border-bottom: none; }
.ddns-table-wrap .ddns-hash {
    font-family: Consolas, Monaco, monospace;
    font-size: 12px;
    color: #62748a;
    background: none; border: none; padding: 0; justify-content: flex-start;
}
.ddns-mini-dl {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 999px;
    background: var(--dd-pill-grad);
    color: #fff !important;
    font-size: 13px;
    letter-spacing: 1px;
    text-decoration: none !important;
    white-space: nowrap;
    box-shadow: 0 6px 16px rgba(14, 110, 190, 0.28);
    transition: transform .2s ease, box-shadow .2s ease;
}
.ddns-mini-dl:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(14, 110, 190, 0.4); color: #fff !important; }

/* 公益说明 */
.ddns-notice {
    max-width: 1000px;
    margin: 30px auto 0;
    background: #eef7fd;
    border: 1px solid #c8e4f6;
    border-left: 4px solid var(--dd-blue);
    border-radius: 8px;
    padding: 18px 22px;
    color: #1d5278;
    line-height: 1.9;
    font-size: 14px;
}

.ddns-contact { text-align: center; color: var(--dd-muted); font-size: 15px; line-height: 2; }
.ddns-contact a { color: #0e82c6; text-decoration: none; }
.ddns-contact a:hover { text-decoration: underline; }
.ddns-copy { text-align: center; color: #93a1ad; font-size: 13px; padding: 22px 0 8px; }

/* ============ 桌面端：头部绝对定位，hero 全屏并避让头部（高约152px） ============ */
@media (min-width: 992px) {
    .ddns-hero { min-height: 100vh; min-height: 100svh; min-height: 100dvh; padding: 244px 0 104px; }
}

/* 平板 */
@media (max-width: 991px) {
    .ddns-feature-grid { grid-template-columns: repeat(2, 1fr); }
}

/* 手机 */
@media (max-width: 768px) {
    .ddns-hero { padding: 70px 0 60px; }
    .ddns-hero h1 { font-size: 27px; letter-spacing: 1px; }
    .ddns-feature-grid { grid-template-columns: 1fr; }
    .ddns-pills { flex-direction: column; align-items: center; gap: 16px; margin-top: 32px; }
    .ddns-pill { width: 100%; max-width: 380px; min-width: 0; }
    .ddns-meta { padding: 0; }
    .ddns-meta-item { padding: 14px 8px; }
    .ddns-meta-label { font-size: 11px; letter-spacing: 1px; }
    .ddns-meta-num { font-size: 15px; }
    .ddns-meta-num b { font-size: 21px; }
    .ddns-hashline { margin-top: 18px; }
    .ddns-hash { flex-direction: column; gap: 4px; align-items: flex-start; }
    .ddns-hash b { text-align: left; }
    .ddns-hero-foot { position: static; margin-top: 34px; padding: 0 16px; }
    .ddns-table-wrap { overflow-x: auto; }
}

/* 小屏手机 */
@media (max-width: 480px) {
    .ddns-hero h1 { font-size: 23px; line-height: 1.4; }
    .ddns-hero .ddns-lead { font-size: 14px; }
    .ddns-br { display: none; }
    .ddns-section-head h2 { font-size: 23px; }
    .ddns-pill { padding: 14px 24px; }
    .ddns-pill .ddns-pill-main { font-size: 17px; }
}

/* 窄屏防横向溢出 */
@media (max-width: 768px) {
    html, body { overflow-x: hidden; }
    .ddns-page, .ddns-hero { max-width: 100%; overflow-x: hidden; }
    .ddns-hero .container { padding-left: 16px; padding-right: 16px; }
    .ddns-hero h1 { overflow-wrap: break-word; word-break: break-word; }
    .ddns-hero .ddns-lead { overflow-wrap: break-word; word-break: break-word; }
    /* 窄屏版本表隐藏“下载”列（首屏胶囊按钮已是主下载入口），避免拥挤 */
    .ddns-table-wrap th:nth-child(5),
    .ddns-table-wrap td:nth-child(5) { display: none; }
    .ddns-table-wrap table { min-width: 500px; }
}
