.dn-page {
    background: #f4f4f4;
    overflow: hidden;
}

.dn-hero {
    min-height: 680px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.dn-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
}

.dn-hero .text {
    position: relative;
    z-index: 2;
    max-width: 1120px;
}

.dn-hero__desc {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.dn-hero__title {
    font-size: 88px;
    line-height: 100px;
    font-weight: 700;
    color: #fff;
}

/* 水平宽度由 .type-area 的 ratio padding 约束，勿再叠 max-width 以免与全站不一致 */
.dn-main {
    width: 100%;
    /* 仅设上下 padding，保留 .type-area 左右边距 */
    padding-top: 116px;
    padding-bottom: 82px;
    position: relative;
    overflow: visible;
}

.dn-main__admin {
    position: absolute;
    right: 0;
    top: 116px;
    z-index: 2;
}

/* 与卡片网格同宽、同对齐（设计稿内容区 1368px，置于 type-area 内居中） */
.dn-content {
    width: 100%;
    max-width: 1368px;
    margin: 0 auto;
    overflow: visible;
}

.dn-toolbar {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    max-width: 720px;
    margin: 0 0 60px;
    position: relative;
    z-index: 30;
    overflow: visible;
}

.dn-region-select {
    position: relative;
    flex-shrink: 0;
    z-index: 31;
}

.dn-region-select.is-open {
    z-index: 200;
}

.dn-region-select__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-width: 180px;
    height: 55px;
    padding: 0 20px 0 24px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 60px;
    background: transparent;
    color: #333;
    font-size: 14px;
    font-weight: 300;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.dn-region-select.is-open .dn-region-select__trigger,
.dn-region-select__trigger:hover {
    background: #fff;
}

.dn-region-select__arrow {
    width: 11px;
    height: auto;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.dn-region-select.is-open .dn-region-select__arrow {
    transform: rotate(180deg);
}

.dn-region-select__menu {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    z-index: 1000;
    min-width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.dn-region-select__option {
    display: block;
    width: 100%;
    padding: 10px 20px;
    border: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
    background: #fff;
    color: #333;
    font-size: 14px;
    font-weight: 300;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.dn-region-select__option:last-child {
    border-bottom: 0;
}

.dn-region-select__option:hover,
.dn-region-select__option.is-active {
    background: #71b638;
    color: #fff;
}

.dn-search__form {
    display: flex;
    align-items: stretch;
    flex: 1;
    min-width: 0;
    max-width: 480px;
    gap: 0;
    height: 55px;
    box-sizing: border-box;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 60px;
    background: transparent;
    padding: 0;
    overflow: hidden;
    transition: background-color 0.2s ease;
}

.dn-search__form:focus-within {
    background: #fff;
}

.dn-search__field {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    height: 100%;
    background: transparent;
}

.dn-search__icon {
    flex-shrink: 0;
    width: 20px;
    height: auto;
    margin-left: 24px;
}

.dn-search__input {
    flex: 1;
    min-width: 0;
    height: 100%;
    border: 0;
    outline: none;
    padding: 0 16px 0 12px;
    font-size: 14px;
    font-weight: 300;
    color: #333;
    background: transparent;
    border-radius: 60px;
}

.dn-search__input::placeholder {
    color: #666;
}

.dn-search__btn {
    flex-shrink: 0;
    align-self: stretch;
    height: auto;
    min-width: 135px;
    padding: 0 40px;
    border: 0;
    border-radius: 0;
    background: #76bc43;
    color: #fff;
    font-size: 14px;
    font-weight: 300;
    cursor: pointer;
    transition: background 0.2s ease;
}

.dn-search__btn:hover {
    background: #6aaa3c;
}

.dn-highlight,
mark.dn-highlight {
    background: #76bc43;
    color: #000;
    padding: 0;
    border-radius: 0;
}

.dn-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    column-gap: 40px;
    row-gap: 25px;
    position: relative;
    z-index: 1;
}

.dn-card {
    width: 100%;
    min-height: 435px; 
    background: #fff;
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow 0.35s ease;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.dn-card:hover {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}

.dn-card--hidden,
.dn-card--filtered {
    display: none;
}

.dn-card__media {
    position: relative;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 40px;
    background: #fff radial-gradient(#2655A800, #2655A81a);
}

.dn-card__logo {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    mix-blend-mode: multiply;
}

.dn-card__logo img {
    max-width: 100%;
    max-height: 160px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.dn-card__body {
    padding: 22px 31px 30px;
    min-height: 185px;
    background: #fff;
}

.dn-card__title {
    font-size: 24px;
    line-height: 36px;
    color: #000;
    font-weight: 500;
    margin: 0 0 10px;
}

.dn-card__meta {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
    font-size: 16px;
    line-height: 30px;
    font-weight: 300;
    color: #333;
}

.dn-card__meta--country {
    margin-top: 8px;
}

.dn-card__meta--website {
    margin-top: 2px;
}

.dn-card__meta-icon-wrap {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 5px;
    overflow: visible;
}

.dn-card__meta-icon {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.dn-card__meta-icon--location {
    width: 13px;
    height: 17px;
}

.dn-card__meta-icon--link {
    width: 14px;
    height: 14px;
}

.dn-card__meta a {
    color: #333;
    text-decoration: none;
    word-break: break-all;
}

.dn-card__meta a:hover {
    color: #0058b7;
    text-decoration: underline;
}

.dn-load-more {
    margin-top: calc(var(--ratio-size) * 20);
    text-align: center;
}

.dn-load-more p {
    margin: 0;
    font-size: calc(var(--ratio-size) * 18);
    line-height: calc(var(--ratio-size) * 30);
    font-weight: 400;
    color: #333;
}

/* Dialog */
.dn-dialog {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10050;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.dn-dialog__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.dn-dialog__panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow: auto;
    border-radius: 0;
    background: #fff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.dn-dialog__close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 2;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: #76bc43;
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.dn-dialog__close:hover {
    background: #6aaa3c;
}

.dn-dialog__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 40px 56px 32px 40px;
    background: #f0f2f5;
    border-radius: 0;
}

.dn-dialog__header-text {
    flex: 1;
    min-width: 0;
    padding-right: 40px;
}

.dn-dialog__title {
    font-size: 32px;
    line-height: 1.25;
    font-weight: 700;
    color: #000;
    margin: 0 0 16px;
    padding-right: 24px;
}

.dn-dialog__meta {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 15px;
    line-height: 1.5;
    color: #666;
    margin: 0 0 10px;
}

.dn-dialog__meta-icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpath d='M12 21s7-4.5 7-10a7 7 0 1 0-14 0c0 5.5 7 10 7 10z'/%3E%3Ccircle cx='12' cy='11' r='2.5'/%3E%3C/svg%3E") center/contain no-repeat;
}

.dn-dialog__meta-icon--globe {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3a15 15 0 0 1 0 18M12 3a15 15 0 0 0 0 18'/%3E%3C/svg%3E");
}

.dn-dialog__website {
    color: #666;
    word-break: break-all;
    text-decoration: none;
}

.dn-dialog__website:hover {
    color: #0058b7;
    text-decoration: underline;
}

.dn-dialog__logo-wrap {
    flex-shrink: 0;
    width: 180px;
    max-height: 120px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    align-self: center;
}

.dn-dialog__logo {
    max-width: 100%;
    max-height: 120px;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.dn-dialog__body {
    padding: 32px 40px 40px;
    background: #fff;
    border-radius: 0;
}

.dn-dialog__body p {
    font-size: 15px;
    line-height: 1.7;
    color: #555;
    margin: 0 0 16px;
}

.dn-dialog__body p:last-child {
    margin-bottom: 0;
}

@media (max-width: 1200px) {
    .dn-main {
        padding-top: 80px;
        padding-bottom: 50px;
    }

    .dn-main__admin {
        top: 80px;
        right: 20px;
    }
    .dn-content {
        max-width: none;
    }
    .dn-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 24px;
        row-gap: 24px;
    }
    .dn-hero__title {
        font-size: 56px;
        line-height: 1.15;
    }
}

@media (max-width: 767px) {
    .dn-main.type-area {
        padding-left: 16px;
        padding-right: 16px;
    }

    .dn-main {
        padding-top: 48px;
        padding-bottom: 40px;
    }

    .dn-main__admin {
        top: 48px;
        right: 16px;
    }

    .dn-grid {
        grid-template-columns: 1fr;
        row-gap: 20px;
    }

    .dn-hero {
        min-height: 380px;
    }

    .dn-hero__desc {
        font-size: 16px;
    }

    .dn-hero__title {
        font-size: 36px;
        line-height: 1.15;
    }

    .dn-toolbar {
        flex-direction: column;
        align-items: stretch;
        max-width: 100%;
        margin-bottom: 32px;
        gap: 12px;
    }

    .dn-search__form {
        max-width: 100%;
        flex-wrap: wrap;
        height: auto;
        min-height: 55px;
        padding: 8px;
        border-radius: 16px;
    }

    .dn-region-select,
    .dn-region-select__trigger {
        width: 100%;
        min-width: 0;
    }

    .dn-search__field {
        flex: 1 1 100%;
        min-height: 44px;
    }

    .dn-search__btn {
        width: 100%;
        min-width: 0;
        margin-top: 4px;
    }

    .dn-card {
        min-height: 0;
    }

    .dn-card__title {
        font-size: 20px;
        line-height: 1.3;
    }

    .dn-card__body {
        padding: 18px 16px 24px;
        min-height: 0;
    }

    .dn-card__meta {
        font-size: 14px;
        line-height: 1.5;
    }

    .dn-card__media {
        height: 200px;
        padding: 24px 16px;
    }

    .dn-dialog {
        padding: 16px;
    }

    .dn-dialog__header {
        flex-direction: column;
        align-items: flex-start;
        padding: 32px 48px 24px 24px;
    }

    .dn-dialog__logo-wrap {
        width: 100%;
        justify-content: flex-start;
    }

    .dn-dialog__body {
        padding: 24px;
    }
}
