/* 公共样式 - 导航栏、页脚和对话框 */

/* ==================== 基础重置样式 ==================== */
/**:not(p):not(ul) {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}*/

html {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
    overflow-x: hidden;
    width: 100%;
    position: relative;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 隱藏元素 */
.index_module_pendant__e4f0293b,
.index_module_container__2811dc79,
.dtd-btn.dtd-btn-lg {
    display: none;
}

[ddm-trace-id="change-picture-pic-1"] {
    pointer-events: none;
}

/* ==================== 导航栏样式 ==================== */
.dd-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: rgb(250, 250, 250);
    z-index: 3;
}

.dd-header-content {
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.dd-header-logo {
    display: flex;
    flex: 0 0 auto;
    position: relative;
    align-items: center;
}

.dd-header-logo img {
    display: block;
}

.dd-header-logo .logo {
    height: 36px;
}

.dd-header-logo .logo-mobile {
    display: none;
}

/* 导航菜单样式 */
.dd-header-nav {
    display: flex;
    flex: 1 1 auto;
    justify-content: center;
}

.dd-header-nav > ul {
    gap: 20px;
    margin: 0;
    height: 80px;
    display: flex;
    padding-left: 0;
    list-style: none;
    align-items: stretch;
}

.dd-header-nav > ul > li {
    display: flex;
    align-items: center;
}

/* 菜单链接样式 */
.dd-header-nav a,
.dd-header-nav a:active,
.dd-header-nav a:visited,
.dd-header-nav .parent > span {
    color: #595959;
    cursor: pointer;
    user-select: none;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s, background-color 0.2s, fill 0.2s;
}

.dd-header-nav > ul > li > a:hover,
.dd-header-nav .parent > span:hover,
.dd-header-nav > ul > li.active > a {
    color: rgb(59, 130, 246);
}

/* 下载按钮样式 */
.dd-header-download {
    padding: 4px 10px;
    color: #ffffff !important;
    font-size: 12px;
    text-decoration: none;
    margin-right: 15px;
    border-radius: 8px;
    background: linear-gradient(111deg, #654CFF 0%, #007FFF 99%);
    border: none;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0, 127, 255, 0.2);
    transition: all 0.3s ease;
}

.dd-header-download:hover {
    background: linear-gradient(111deg, #5a42e6 0%, #0075eb 99%);
    box-shadow: 0 4px 8px rgba(0, 127, 255, 0.3);
}

/* 下拉菜单遮罩 */
.modal {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    position: fixed;
    pointer-events: none;
    background-color: #000;
    transition: opacity 0.3s;
}

.modal.active {
    opacity: 0.3;
}

/* 父级菜单项 */
.parent > ul {
    left: 0;
    right: 0;
    gap: 15px;
    top: 80px;
    height: 0;
    opacity: 0;
    display: flex;
    position: fixed;
    overflow: hidden;
    list-style: none;
    padding: 0;
    margin: 0;
    align-items: center;
    background-color: #fff;
    justify-content: center;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.067);
    transition: height 0.3s, opacity 0.2s;
}

.parent > ul a {
    width: 210px;
    height: 140px;
    display: flex;
    font-size: 16px;
    font-weight: bold;
    align-items: center;
    text-decoration: none;
    flex-direction: column;
    background-color: #f4f4f4;
    color: #595959;
}

.parent:hover > ul {
    opacity: 1;
    height: 280px;
}

.dd-header-nav .parent li:hover a,
.dd-header-nav .parent li.active a,
.parent > ul > li:hover svg path,
.dd-header-nav .parent li.active svg path {
    fill: #fff;
    color: #fff;
    background-color: rgb(59, 130, 246);
}

.parent > ul svg {
    height: 30px;
    margin: 30px auto 10px;
}

/* 语言切换器样式 */
.lang-switch {
    gap: 0.2em;
    display: flex;
    user-select: none;
    position: relative;
    align-items: center;
}

.lang-switch > svg {
    transition: rotate 0.1s ease-in-out;
}

.lang-switch > ul::before {
    position: absolute;
    content: " ";
    width: 100%;
    top: -20px;
    height: 20px;
}

.lang-switch > ul {
    top: 32px;
    left: 50%;
    padding: 0.3em;
    display: none;
    margin-top: 0;
    margin-left: 0;
    list-style: none;
    background: #fff;
    border-radius: 6px;
    position: absolute;
    width: max-content;
    transform: translateX(-50%);
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.lang-switch > ul > li {
    width: 100%;
    box-sizing: border-box;
}

.lang-switch > ul > li img[alt] {
    display: unset;
}

.lang-switch a {
    color: #444;
    width: 100%;
    padding: 0.3em 0.7em;
    border-radius: 6px;
    display: inline-block;
    text-decoration: none;
    box-sizing: border-box;
    transition: color 0.2s, background-color 0.2s;
}

.lang-switch a:hover {
    color: #8585f4;
    background-color: #f6f6f6;
}

.lang-switch:hover > svg:nth-child(2) {
    rotate: 180deg;
}

.lang-switch:hover > ul,
.lang-switch > ul:hover {
    display: unset;
}

.dd-header-spacer {
    height: 80px;
}

/* ==================== 页脚样式 ==================== */
.dd-footer {
    background: #f6f6f6;
    padding: 79px 0 0;
}

.dd-footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.dd-footer-contact {
    padding-bottom: 47px;
    border-bottom: 1px solid rgba(126, 134, 142, 0.24);
}

.dd-footer-contact-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.dd-footer-contact-title {
    font-weight: 500;
    font-size: 14px;
    color: #000000;
}

.dd-footer-contact-email,
.dd-footer-contact-phone {
    font-size: 14px;
    color: rgba(23, 26, 29, 0.6);
}

.dd-footer-contact-email a {
    color: rgba(23, 26, 29, 0.6);
    text-decoration: none;
}

.dd-footer-contact-email a:hover {
    color: #007fff;
}

.dd-footer-download {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 47px 0 42px;
}

.dd-footer-download-item {
    position: relative;
}

.dd-footer-logo {
    border: 2px solid #cdd1dd;
    border-radius: 6px;
    padding: 4px 8px;
    display: flex;
    align-items: center;
    height: 42px;
    box-sizing: border-box;
}

.dd-footer-logo img {
    height: 27px;
    width: auto;
    object-fit: contain;
    filter: saturate(0) brightness(0.6);
}

.dd-download-btn {
    cursor: pointer;
    transition: transform 0.3s;
}

.dd-download-btn:hover,
.dd-footer-logo:hover {
    transform: translateY(-2px);
}

.dd-download-btn img {
    display: block;
    height: 32px;
    width: auto;
}

.dd-download-btn .dd-download-hover {
    display: none;
}

.dd-download-btn:hover .dd-download-normal {
    display: none;
}

.dd-download-btn:hover .dd-download-hover {
    display: block;
}

.dd-qr-popup {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(10px) scale(0.9);
    width: 130px;
    background: #ffffff;
    box-shadow: 0 2px 16px 0 rgba(0, 0, 0, 0.18);
    border-radius: 6px;
    padding: 13px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out, visibility 0.2s;
    z-index: 10;
}

.dd-download-btn:hover .dd-qr-popup {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0) scale(1);
}

.dd-qr-popup img {
    width: 104px;
    height: 104px;
    display: block;
    margin: 0 auto 8px;
}

.dd-qr-popup-text {
    font-size: 12px;
    color: #000000;
    text-align: center;
    line-height: 17px;
    padding-top: 5px;
    border-top: 0.5px solid #b4babd;
}

.dd-footer-copyright {
    text-align: center;
    font-size: 12px;
    color: rgba(23, 26, 29, 0.6);
    line-height: 22px;
    padding: 42px 0;
}

/* ==================== 彈窗樣式 ==================== */
.dd-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.dd-modal.show {
    display: flex;
}

.dd-modal-content {
    background: #ffffff;
    border-radius: 16px;
    padding: 36px 48px;
    max-width: 594px;
    width: 90%;
    position: relative;
    box-shadow: 0px 20px 40px 0px rgba(23, 26, 29, 0.08);
}

.dd-modal-close {
    position: absolute;
    right: 17px;
    top: 16px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    transition: background 0.3s;
}

.dd-modal-close:hover {
    background: rgba(0, 0, 0, 0.3);
}

.dd-modal-title {
    font-size: 20px;
    font-weight: 500;
    text-align: center;
    margin-bottom: 30px;
}

.dd-modal-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 30px;
}

.dd-modal-btn {
    width: 216px;
    height: 62px;
    background: #007fff;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.dd-modal-btn:hover {
    background: #0075eb;
}

.dd-modal-btn-hint {
    font-size: 10px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 2px;
}

.dd-modal-tips {
    text-align: center;
    font-size: 10px;
    color: rgba(23, 26, 29, 0.4);
    margin-bottom: 24px;
}

.dd-modal-confirm {
    background: rgba(0, 127, 255, 0.08);
    padding: 16px;
    border-radius: 8px;
}

.dd-modal-confirm-title {
    font-size: 16px;
    font-weight: 500;
    color: #171a1d;
    text-align: center;
    margin-bottom: 16px;
}

.dd-modal-confirm-items {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.dd-modal-confirm-item img {
    width: 216px;
    height: 154px;
    border-radius: 8px;
    display: block;
    margin-bottom: 5px;
}

.dd-modal-confirm-item-text {
    font-size: 12px;
    color: rgba(23, 26, 29, 0.6);
    text-align: center;
    line-height: 18px;
    max-width: 216px;
}

/* ==================== Mac下載對話框樣式 ==================== */
.mac-modal,
.linux-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.mac-modal.show,
.linux-modal.show {
    display: flex;
}

.mac-modal-content,
.linux-modal-content {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px 48px;
    max-width: 594px;
    width: 100%;
    position: relative;
    box-shadow: 0px 20px 40px 0px rgba(23, 26, 29, 0.15);
    max-height: 90vh;
    overflow-y: auto;
}

.mac-modal-close,
.linux-modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.06);
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s;
    border: none;
}

.mac-modal-close:hover,
.linux-modal-close:hover {
    background: rgba(0, 0, 0, 0.12);
}

.mac-modal-close svg,
.linux-modal-close svg {
    width: 16px;
    height: 16px;
}

.mac-modal-title {
    font-size: 20px;
    font-weight: 600;
    color: #171a1d;
    text-align: center;
    margin-bottom: 32px;
}

.mac-modal-btn-wrap {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.mac-modal-btn {
    flex: 1;
    padding: 16px 20px;
    background: #007fff;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: background 0.3s;
}

.mac-modal-btn:hover,
.linux-modal-download-btn:hover {
    background: #0075eb;
}

.mac-modal-btn.intel {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.mac-modal-btn.intel:hover {
    background: linear-gradient(135deg, #5568d3 0%, #6a4193 100%);
}

.mac-modal-btn span {
    font-size: 12px;
    font-weight: 400;
    opacity: 0.9;
    margin-top: 4px;
}

.mac-modal-tips {
    text-align: center;
    font-size: 12px;
    color: rgba(23, 26, 29, 0.6);
    margin-bottom: 32px;
}

.mac-modal-tips a {
    color: #007fff;
    text-decoration: none;
}

.mac-modal-tips a:hover {
    text-decoration: underline;
}

.mac-modal-confirm {
    background: rgba(0, 127, 255, 0.05);
    padding: 20px;
    border-radius: 8px;
}

.mac-modal-confirm h3 {
    font-size: 16px;
    font-weight: 600;
    color: #171a1d;
    text-align: center;
    margin-bottom: 20px;
}

.mac-modal-picture-wrap {
    display: flex;
    gap: 20px;
}

.mac-modal-pic-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mac-modal-pic-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 12px;
}

.mac-modal-pic-item span {
    font-size: 12px;
    color: rgba(23, 26, 29, 0.7);
    text-align: center;
    line-height: 1.5;
}

/* ==================== Linux下載對話框樣式 ==================== */
.linux-modal-title {
    font-size: 20px;
    font-weight: 600;
    color: #171a1d;
    margin-bottom: 24px;
}

.linux-modal-subheading {
    font-size: 16px;
    font-weight: 600;
    color: #171a1d;
    margin-top: 24px;
    margin-bottom: 12px;
}

.linux-modal-line {
    font-size: 14px;
    color: rgba(23, 26, 29, 0.7);
    line-height: 1.8;
    margin-bottom: 16px;
}

.linux-modal-line span {
    color: #007fff;
    font-weight: 500;
}

.linux-modal-select-box {
    display: flex;
    align-items: center;
    margin: 20px 0;
}

.linux-modal-select-label {
    font-size: 14px;
    color: #171a1d;
    margin-right: 16px;
    white-space: nowrap;
}

.linux-modal-select {
    flex: 1;
    position: relative;
}

.linux-modal-select select {
    width: 100%;
    height: 40px;
    padding: 0 40px 0 12px;
    border: 1px solid rgba(126, 134, 142, 0.24);
    border-radius: 4px;
    font-size: 14px;
    color: #171a1d;
    background: #ffffff;
    cursor: pointer;
    appearance: none;
    outline: none;
    transition: border-color 0.3s;
}

.linux-modal-select select:hover {
    border-color: #007fff;
}

.linux-modal-select select:focus {
    border-color: #007fff;
    box-shadow: 0 0 0 2px rgba(0, 127, 255, 0.1);
}

.linux-modal-select::after {
    content: '';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #666;
    pointer-events: none;
}

.linux-modal-btn-wrap {
    display: flex;
    justify-content: center;
    margin-top: 32px;
}

.linux-modal-download-btn {
    height: 44px;
    width: 213px;
    padding: 0 24px;
    background: #007fff;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

/* ==================== 響應式設計 - 公共部分 ==================== */
@media screen and (min-width: 1200px) {
    .dd-footer-download {
        flex-wrap: nowrap;
    }
}

@media screen and (max-width: 768px) {
    .dd-footer-download {
        gap: 12px;
    }

    .dd-modal-content {
        padding: 24px;
    }

    .dd-modal-btns {
        flex-direction: column;
    }

    .dd-modal-btn {
        width: 100%;
    }

    .dd-modal-confirm-items {
        flex-direction: column;
    }
}

/* 平板橫屏 (768px - 1199px) */
@media screen and (max-width: 1199px) and (min-width: 768px) {
    .dd-footer-download {
        gap: 8px;
    }
}

/* 平板豎屏和大手機 (481px - 767px) */
@media screen and (max-width: 767px) and (min-width: 481px) {
    .dd-header-nav {
        gap: 20px;
    }

    .dd-header-nav > ul {
        gap: 15px;
    }

    .parent > ul a {
        width: 180px;
        height: 130px;
    }

    .parent:hover > ul {
        height: 260px;
    }

    .dd-download-btn img {
        height: 38px;
    }

    .dd-footer-logo {
        height: 38px;
    }

    .dd-footer-contact-divider {
        display: none;
    }
}

/* 手機屏幕 (≤480px) */
@media screen and (max-width: 480px) {
    .dd-footer-contact-divider {
        display: none;
    }

    body {
        max-width: 100vw;
    }

    .dd-header {
        width: 100%;
    }

    .dd-header-content {
        padding: 0 15px;
        max-width: 100%;
    }

    .dd-header-logo .logo {
        display: none;
    }

    .dd-header-logo .logo-mobile {
        display: block;
        height: 32px;
    }

    .dd-header-nav {
        gap: 15px;
        flex-shrink: 0;
    }

    .dd-header-nav > ul {
        gap: 10px;
    }

    .dd-header-nav a {
        font-size: 13px;
        white-space: nowrap;
    }

    .dd-header-download {
        padding: 6px 16px;
        font-size: 13px;
        white-space: nowrap;
    }

    /* 隐藏部分菜单项 */
    .parent > ul {
        gap: 10px;
    }

    .parent > ul a {
        width: 150px;
        height: 120px;
        font-size: 14px;
    }

    .parent:hover > ul {
        height: 240px;
    }

    .parent > ul svg {
        height: 24px;
        margin: 20px auto 8px;
    }

    .dd-footer-container {
        padding: 0 15px;
    }

    .dd-footer-contact-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .dd-footer-download {
        gap: 8px;
    }

    .dd-download-btn img {
        height: 36px;
    }

    .dd-footer-logo {
        height: 36px;
    }

    .dd-footer-logo img {
        height: 24px;
    }

    .dd-modal-confirm-item img {
        width: 100%;
        height: auto;
    }
}

/* 超小屏幕 (≤375px) */
@media screen and (max-width: 375px) {
    * {
        max-width: 100vw;
    }

    .dd-header-nav {
        gap: 8px;
    }

    .dd-header-nav > ul {
        gap: 8px;
    }

    .dd-header-nav a {
        font-size: 12px;
    }

    .dd-header-download {
        padding: 5px 12px;
        font-size: 12px;
    }

    .parent > ul a {
        width: 130px;
        height: 100px;
        font-size: 12px;
    }

    .parent:hover > ul {
        height: 200px;
    }

    .parent > ul svg {
        height: 20px;
        margin: 15px auto 5px;
    }

    .dd-download-btn img {
        height: 32px;
    }

    .dd-footer-logo {
        height: 32px;
    }

    .dd-footer-logo img {
        height: 22px;
    }
}

/* Mac/Linux 对话框响应式 */
@media screen and (max-width: 1199px) {
    .mac-modal-content,
    .linux-modal-content {
        padding: 30px 24px;
    }

    .mac-modal-btn-wrap,
    .mac-modal-picture-wrap,
    .linux-modal-select-box {
        flex-direction: column;
    }

    .mac-modal-picture-wrap {
        gap: 16px;
    }

    .linux-modal-select-box {
        align-items: flex-start;
    }

    .linux-modal-select-label {
        margin-bottom: 8px;
    }

    .linux-modal-select {
        width: 100%;
    }
}
