:root {
    --bg-black: #000000;
    --card-bg: #181818;
    --cyan: #00f0ff;
    --white: #ffffff;
    --gray: #888888;
    --border: #222222;
}

body {
    margin: 0;
    background: var(--bg-black);
    color: var(--white);
    font-family: sans-serif;
}

.DADA-pc-only {
    display: flex !important;
}

.DADA-mobile-only {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

#DADA-menu-btn {
    background: none;
    border: none;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

#DADA-menu-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--cyan);
}

.DADA-pc-top-bar {
    background: #1e1e1e;
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

.DADA-bar-content {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.DADA-bar-text {
    font-size: 14px;
    margin: 0;
}

.DADA-bar-btn {
    background: var(--white);
    border: none;
    padding: 6px 16px;
    border-radius: 4px;
    font-weight: bold;
    margin-left: 15px;
    text-decoration: none;
    color: #000;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.DADA-bar-btn:hover {
    background-color: #f0f0f0;
    transform: translateY(-1px);
}

.DADA-bar-close {
    font-size: 14px;
    color: var(--gray);
    cursor: pointer;
    transition: color 0.3s ease;
}

.DADA-bar-close:hover {
    color: var(--white);
    position: absolute;
    right: 20px;
}

.DADA-mobile-app-promo {
    background: #000;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.DADA-promo-left {
    display: flex;
    align-items: center;
}

.DADA-app-icon {
    width: 36px;
    height: 36px;
    background: var(--cyan);
    border-radius: 8px;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 12px;
    transition: transform 0.3s ease;
}

.DADA-app-icon:hover {
    transform: scale(1.05);
}

.DADA-app-name {
    font-weight: bold;
    font-size: 15px;
    margin: 0;
}

.DADA-app-desc {
    font-size: 12px;
    color: var(--gray);
    margin: 2px 0 0;
}

.DADA-app-open {
    background: var(--white);
    color: #000;
    padding: 6px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.DADA-app-open:hover {
    background-color: #f0f0f0;
    transform: translateY(-1px);
}

.DADA-main-header {
    height: 64px;
    background: var(--bg-black);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all 0.3s ease;
}

.DADA-nav-container {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
}

.DADA-logo-link img {
    height: 26px;
    transition: opacity 0.3s ease;
}

.DADA-logo-link:hover img {
    opacity: 0.8;
}

.DADA-nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.DADA-auth-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.DADA-auth-link {
    color: var(--white);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.DADA-auth-link:hover {
    color: var(--cyan);
}

.DADA-auth-btn-signup {
    background: var(--white);
    color: #000;
    padding: 8px 18px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.DADA-auth-btn-signup:hover {
    background-color: #f0f0f0;
    transform: translateY(-1px);
}

.DADA-tool-icons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.DADA-tool-icons i, .DADA-tool-icons button {
    cursor: pointer;
    font-size: 24px;
    color: var(--white);
    background: none;
    border: none;
    padding: 0;
    transition: color 0.3s ease, transform 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.DADA-tool-icons i:hover, .DADA-tool-icons button:hover {
    color: var(--cyan);
    transform: scale(1.1);
}

#DADA-lang-btn {
    min-width: 40px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.DADA-download-link {
    color: var(--white);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.DADA-lang-selector {
    position: relative;
    display: flex;
    align-items: center;
}

.DADA-lang-btn {
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    font-size: 24px;
    padding: 0;
    transition: color 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.DADA-lang-btn:hover {
    color: var(--cyan);
}

.DADA-mobile-lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #1a1a1a;
    border-radius: 12px;
    width: 140px;
    max-width: none;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 1001;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

/* 移动端：使用:focus-within控制下拉菜单显示 */
@media (max-width: 1024px) {
    .DADA-lang-selector:focus-within .DADA-mobile-lang-dropdown {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }
    
    .DADA-lang-btn:focus {
        outline: none;
    }
}

.DADA-mobile-lang-dropdown a {
    color: #fff;
    padding: 12px 16px;
    text-decoration: none;
    font-size: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
    font-weight: 500;
    text-align: left;
    display: block;
}

.DADA-mobile-lang-dropdown a:hover {
    background-color: rgba(0, 180, 245, 0.1);
    color: #00b4f5;
}

.DADA-mobile-lang-dropdown a.DADA-lang-selected {
    background-color: #00b4f5;
    color: #fff;
    font-weight: 600;
}

.DADA-mobile-lang-dropdown a:last-child {
    border-bottom: none;
}

.DADA-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    transition: opacity 0.3s ease;
}

.DADA-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.DADA-lang-modal-box {
    background: var(--card-bg);
    width: min(850px, 95vw);
    max-width: 95%;
    border-radius: 16px;
    padding: clamp(16px, 4vw, 32px);
    transform: scale(0.9);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    box-sizing: border-box;
}

.DADA-modal-overlay.active .DADA-lang-modal-box {
    transform: scale(1);
    opacity: 1;
}

.DADA-modal-header {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #333;
    margin-bottom: 24px;
    padding-bottom: 12px;
}

.DADA-modal-tabs {
    display: flex;
    gap: 32px;
}

.DADA-modal-tab {
    padding-bottom: 12px;
    cursor: pointer;
    color: var(--gray);
    font-size: 16px;
    transition: color 0.3s ease;
}

.DADA-modal-tab.DADA-active {
    color: var(--cyan);
    border-bottom: 2px solid var(--cyan);
}

.DADA-modal-close {
    cursor: pointer;
    font-size: 24px;
    color: var(--gray);
    transition: color 0.3s ease;
}

.DADA-modal-close:hover {
    color: var(--white);
}

.DADA-lang-grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.DADA-lang-cell {
    padding: 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #bbb;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.DADA-lang-cell:hover {
    background-color: #262626;
    color: var(--white);
    border-color: #333;
}

.DADA-lang-cell.DADA-selected {
    background: #262626;
    color: var(--cyan);
    text-align: center;
    border-color: var(--cyan);
}

.DADA-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    z-index: 3000;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.DADA-drawer-overlay.active {
    display: block;
    opacity: 1;
}

.DADA-side-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 90%);
    height: 100%;
    background: #000;
    transform: translateX(100%);
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 3001;
    padding: 24px;
    border-left: 1px solid var(--border);
    overflow-y: auto;
    opacity: 0;
}

.DADA-side-drawer.active {
    transform: translateX(0);
    opacity: 1;
}

.DADA-drawer-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.DADA-drawer-auth {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.DADA-drawer-auth a {
    flex: 1;
    text-align: center;
    padding: 12px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.DADA-d-login {
    border: 1px solid #333;
    color: #fff;
}

.DADA-d-login:hover {
    border-color: var(--cyan);
    color: var(--cyan);
}

.DADA-d-signup {
    background: #fff;
    color: #000;
}

.DADA-d-signup:hover {
    background-color: #f0f0f0;
    transform: translateY(-1px);
}

.DADA-drawer-menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.DADA-d-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.DADA-d-item:hover {
    color: var(--cyan);
    padding-left: 10px;
}

.DADA-d-item i {
    margin-right: 15px;
    color: var(--gray);
    transition: color 0.3s ease;
}

.DADA-d-item:hover i {
    color: var(--cyan);
}

@media (max-width: 1024px) {
    .DADA-pc-only {
        display: none !important;
    }

    .DADA-mobile-only {
        display: flex !important;
    }

    .DADA-main-header {
        height: 56px;
    }

    .DADA-logo-link img {
        height: 24px;
    }

    .DADA-tool-icons {
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .DADA-main-header {
        padding: 0 12px;
    }

    .DADA-nav-right {
        gap: 12px;
    }

    .DADA-tool-icons i, .DADA-tool-icons button {
        font-size: 20px;
    }

    #DADA-lang-btn {
        min-width: 44px;
        min-height: 44px;
        padding: 12px;
        cursor: pointer;
    }

    .DADA-auth-btn-signup {
        padding: 6px 12px;
        font-size: 12px;
    }

    .DADA-mobile-app-promo {
        padding: 10px 12px;
    }

    .DADA-app-icon {
        width: 28px;
        height: 28px;
        font-size: 12px;
        margin-right: 8px;
    }

    .DADA-app-name {
        font-size: 13px;
    }

    .DADA-app-desc {
        font-size: 11px;
    }

    .DADA-app-open {
        padding: 4px 12px;
        font-size: 12px;
    }
}