/* ============================================================
   Reset
   ============================================================ */
* {
    margin: 0;
    padding: 0;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #1a0e08;
}

/* ============================================================
   Background
   ============================================================ */
.container {
    width: 100%;
    height: 100%;
    background-color: #1a0e08;
    background-image: url('../image/dl_da_bg.png');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;                /* IE10+；IE9 退化为居中 */
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 54px;                     /* IE9 fallback */
    padding-top: 7vh;
    text-align: center;                    /* IE9/10 居中回退 */
}

/* ============================================================
   Form  —  inputs + button + agreement
   ============================================================ */
.form-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    margin-top: 353px;                     /* IE9 fallback */
    margin-top: 46vh;
    width: 20vw;
    padding: 9px 14px;                     /* IE9 fallback */
    padding: 1.2vh 1vw;
    margin-left: auto;                     /* IE9/10 居中回退 */
    margin-right: auto;
    text-align: center;                    /* IE9/10 居中回退 */
}

/* --- 区服列表容器（纯结构） --- */
.input-panel {
    width: 100%;
    margin-bottom: 8px;                    /* IE9 fallback */
    margin-bottom: 1vh;                    /* 替代 gap */
}

/* --- 可滚动区服列表容器 --- */
.server-list {
    width: 82%;
    margin: 0 auto;
    max-height: 154px;                     /* IE9 fallback */
    max-height: 20vh;
    overflow-y: auto;
    -ms-overflow-style: -ms-autohiding-scrollbar; /* IE10+ 覆盖式自动隐藏 */
    display: flex;
    flex-direction: column;

    /* Firefox 滚动条 */
    scrollbar-width: thin;
    scrollbar-color: rgba(155, 118, 58, 0.7) rgba(30, 15, 8, 0.5);
}

/* WebKit 滚动条 */
.server-list::-webkit-scrollbar {
    width: 5px;
}
.server-list::-webkit-scrollbar-track {
    background: rgba(30, 15, 8, 0.5);
    border-radius: 3px;
}
.server-list::-webkit-scrollbar-thumb {
    background: rgba(155, 118, 58, 0.7);
    border-radius: 3px;
}
.server-list::-webkit-scrollbar-thumb:hover {
    background: rgba(200, 160, 80, 0.9);
}

/* --- 区服单选行 --- */
.select-row {
    width: 100%;
    cursor: pointer;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    margin-bottom: 6px;                    /* IE9 fallback */
    margin-bottom: 0.8vh;                  /* 替代 gap */
}
.select-row:last-child {
    margin-bottom: 0;
}

/* 选中标记圆 */
.row-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);       /* IE9 */
    transform: translateY(-50%);
    pointer-events: none;
    -webkit-transition: -webkit-transform 0.15s ease;
    transition: transform 0.15s ease;
}

.select-row:active .row-icon {
    -webkit-transform: translateY(-50%) scale(0.88);
    -ms-transform: translateY(-50%) scale(0.88);
    transform: translateY(-50%) scale(0.88);
}

/* 文本框区域 */
.row-content {
    position: relative;
    width: 100%;
    height: 5vh;
    background-color: rgba(48, 20, 12, 0.94);   /* IE9 fallback（gradient 无效时） */
    background-image: linear-gradient(to bottom,
        rgba(78, 40, 26, 0.9)  0%,
        rgba(48, 20, 12, 0.94) 100%);
    border: 1.5px solid rgba(155, 118, 58, 0.6);
    border-top-color: rgba(200, 162, 78, 0.72);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;                    /* IE9/10 居中回退 */
    padding-left: 30px;
    line-height: 38px;                     /* IE9/10 居中回退 */
    line-height: 5vh;
    -webkit-transition: border-color 0.25s, -webkit-box-shadow 0.25s;
    transition: border-color 0.25s, box-shadow 0.25s;
}

/* 选中状态：边框亮起 */
.select-row.selected .row-content {
    border-color: rgba(220, 178, 72, 0.92);
    -webkit-box-shadow: 0 0 10px rgba(200, 160, 55, 0.32);
    box-shadow: 0 0 10px rgba(200, 160, 55, 0.32);
}

/* hover 非选中行 */
.select-row:not(.selected):hover .row-content {
    border-color: rgba(180, 140, 70, 0.75);
}

/* 左侧小色条 */
.input-bar {
    position: absolute;
    left: 7px;
    top: 50%;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
    height: 48%;
    width: auto;
    z-index: 1;
    pointer-events: none;
}

/* 区服名文本 */
.row-text {
    color: rgba(218, 198, 152, 0.88);
    font-size: 15px;                       /* IE9 fallback */
    font-size: 1.1vw;
    font-family: 'SimSun', '宋体', serif;
    letter-spacing: 0.1em;
}

/* 未选中时文本略暗 */
.select-row:not(.selected) .row-text {
    color: rgba(175, 152, 108, 0.68);
}

/* ============================================================
   Start Button
   ============================================================ */
.start-btn {
    width: 14vw;
    display: block;
    cursor: pointer;
    margin-left: auto;                     /* IE9 居中回退 */
    margin-right: auto;
    margin-bottom: 8px;                    /* IE9 fallback */
    margin-bottom: 1vh;                    /* 替代 gap */
    -webkit-filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
    -webkit-transition: -webkit-transform 0.13s ease, -webkit-filter 0.13s ease;
    transition: transform 0.13s ease, filter 0.13s ease;
}

.start-btn:hover {
    -webkit-transform: scale(1.05);
    -ms-transform: scale(1.05);
    transform: scale(1.05);
    -webkit-filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.45)) brightness(1.12);
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.45)) brightness(1.12);
}

.start-btn:active {
    -webkit-transform: scale(0.96);
    -ms-transform: scale(0.96);
    transform: scale(0.96);
    -webkit-filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4)) brightness(0.9);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4)) brightness(0.9);
}

/* ============================================================
   Agreement row  —  checkbox + text
   ============================================================ */
.agreement {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* checkbox */
.checkbox {
    position: relative;
    width: 2.1vw;
    height: 2.1vw;
    cursor: pointer;
    display: inline-block;                 /* IE9 回退：使内联流动 */
    vertical-align: middle;                /* IE9 回退：垂直居中 */
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    margin-right: 10px;                    /* IE9 fallback */
    margin-right: 0.7vw;                   /* 替代 gap */
}

.cb-bg {
    position: absolute;
    top: 0;                                /* 替代 inset: 0 */
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.cb-check {
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);  /* IE9 */
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
    z-index: 1;
    -webkit-transition: opacity 0.2s ease;
    transition: opacity 0.2s ease;
}

.checkbox:hover .cb-bg {
    -webkit-filter: brightness(1.12);
    filter: brightness(1.12);
}

/* agreement text */
.agree-text {
    color: rgba(188, 168, 128, 0.82);
    font-size: 12px;                       /* IE9 fallback */
    font-size: 0.9vw;
    font-family: 'SimSun', '宋体', serif;
    white-space: nowrap;
    vertical-align: middle;                /* IE9 回退 */
}

.agree-text a {
    color: rgba(228, 194, 88, 0.92);
    text-decoration: none;
    -webkit-transition: color 0.2s;
    transition: color 0.2s;
}

.agree-text a:hover {
    color: rgba(245, 210, 110, 1);
    text-decoration: underline;
}
