* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

:root {
    /* Theme variables */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --text-primary: #202124;
    --text-secondary: #5f6368;
    --border-color: #dadce0;
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.15);
    --accent-color: #1a73e8;
    --accent-hover: #1557b0;
    --input-bg: #ffffff;
    --input-border: #dadce0;
    --input-focus: #1a73e8;
}

body {
    font-family: 'Google Sans', 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    border-bottom: 1px solid var(--border-color);
}

.logo {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo img {
    height: 40px;
    width: auto;
    border-radius: 8px;
    padding: 8px;
    background: var(--bg-secondary);
    transition: all 0.2s ease;
    vertical-align: middle;
}

.controls {
    display: flex;
    align-items: center;
}

.lang-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 8px 12px;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 400;
    transition: all 0.2s ease;
    min-height: 36px;
    z-index: 10;
    position: relative;
}

.lang-btn:hover {
    background: var(--bg-secondary);
    box-shadow: 0 1px 3px var(--shadow-light);
}

.lang-icon {
    font-size: 16px;
}



/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
    transform: translateY(-10%);
}

.input-section {
    text-align: center;
    max-width: 584px;
    width: 100%;
}

.banner-image {
    max-width: 272px;
    height: auto;
    margin-bottom: 32px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.input-group {
    display: flex;
    gap: 0;
    margin-bottom: 32px;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 24px;
    padding: 4px;
    box-shadow: 0 2px 5px 1px var(--shadow-light);
    transition: box-shadow 0.3s ease;
}

.input-group:focus-within {
    box-shadow: 0 2px 8px 1px var(--shadow-medium);
}

.domain-input {
    flex: 2;
    padding: 12px 16px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 16px;
    outline: none;
    border-radius: 20px;
    transition: all 0.2s ease;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

.domain-input::placeholder {
    color: #9aa0a6;
}

.custom-select {
    flex: 1;
    position: relative;
}

.select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 16px;
    border-radius: 20px;
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease;
    user-select: none;
    white-space: nowrap;
    overflow: hidden;
}

.select-trigger.placeholder {
    color: #9aa0a6;
}

.select-arrow {
    font-size: 12px;
    transition: transform 0.2s ease;
    color: var(--text-secondary);
}

.custom-select.open .select-arrow {
    transform: rotate(180deg);
}

.select-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 12px;
    box-shadow: 0 4px 12px var(--shadow-medium);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    margin-top: 4px;
}

.custom-select.open .select-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.select-option {
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 16px;
    color: var(--text-primary);
}

.select-option:hover {
    background: var(--bg-secondary);
}

.select-option:first-child {
    border-radius: 12px 12px 0 0;
}

.select-option:last-child {
    border-radius: 0 0 12px 12px;
}

.jump-btn {
    background: var(--accent-color);
    border: none;
    color: #ffffff;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 24px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px var(--shadow-light);
    min-height: 48px;
    position: relative;
    overflow: hidden;
    z-index: 0;
}

.jump-btn span,
.jump-btn {
    position: relative;
    z-index: 2;
}

.jump-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

.jump-btn:hover {
    box-shadow: 0 2px 8px var(--shadow-medium);
}

.jump-btn:hover::before {
    left: 100%;
}

.jump-btn:active {
    transform: translateY(1px);
    box-shadow: 0 1px 2px var(--shadow-light);
}

/* Footer */
.footer {
    padding: 24px;
    text-align: center;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.footer p {
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.5;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    gap: 4px;
}

.beian-icon {
    width: 14px;
    height: 14px;
    margin-left: 4px;
    vertical-align: middle;
}

.beian-info {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: nowrap;
}

#icpLink,
#psLink {
    color: var(--text-secondary);
    text-decoration: none;
    cursor: inherit;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        padding: 9px 16px;
    }

    .logo {
        display: flex;
        align-items: center;
        height: 100%;
    }

    .logo img {
        height: 32px;
        vertical-align: middle;
    }

    .lang-btn {
        padding: 6px 10px;
        font-size: 12px;
        min-height: 32px;
    }

    .main-content {
        padding: 40px 16px;
        transform: translateY(-10%);
    }

    .banner-image {
        max-width: 200px;
        margin-bottom: 24px;
    }

    .input-group {
        flex-direction: column;
        gap: 8px;
        border-radius: 16px;
    }

    .domain-input,
    .custom-select {
        flex: none;
        border-radius: 12px;
    }
    
    .select-trigger {
        border-radius: 12px;
    }
    
    .select-options {
        border-radius: 8px;
    }

    .jump-btn {
        width: 100%;
        border-radius: 16px;
    }



    .footer {
        padding: 16px;
    }

    .footer p {
        font-size: 10px;
        gap: 2px;
        flex-direction: column;
        align-items: center;
        line-height: 1.4;
    }

    .beian-icon {
        width: 12px;
        height: 12px;
        margin-left: 2px;
    }
    
    .beian-info {
        justify-content: center;
        margin-top: 4px;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.input-section {
    animation: fadeIn 0.6s ease-out;
}

/* Theme transition */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}