/* 页面特定样式 - 从内联样式中提取 */

/* 禁用滚动到锚点的行为 */
html {
    scroll-behavior: auto !important;
}

/* 确保锚点元素不会影响布局 */
:target {
    scroll-margin-top: 0 !important;
    scroll-padding-top: 0 !important;
}

/* 在页面加载时暂时固定body位置，防止滚动 */
body.no-scroll {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

/* 国家选择器和手机型号选择器样式 - 从JavaScript动态样式中提取 */
.card-country-select,
.phone-model-select {
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 8px 12px !important;
    background-color: rgba(255, 255, 255, 0.95);
    width: 100%;
    font-family: 'Noto Sans SC', sans-serif;
    font-size: 0.9rem;
    color: #1e293b;
    cursor: pointer;
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.card-country-select.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* 自定义下拉列表样式 */
.custom-select-container {
    position: relative;
    width: 100%;
}

.custom-select-container select {
    display: block;
    width: 100%;
}

.custom-select-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 300px;
    overflow-y: auto;
    background-color: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 10;
    display: none;
}

.custom-select-container.open .custom-select-options {
    display: block;
}

.custom-select-option {
    padding: 8px 12px;
    cursor: pointer;
}

.custom-select-option:hover {
    background-color: rgba(22, 119, 255, 0.1);
}

.custom-select-option.selected {
    background-color: rgba(22, 119, 255, 0.2);
} 