* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-image: url('../img/img.png');
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    -webkit-text-size-adjust: 100% !important;
    text-size-adjust: 100% !important;

}
.container {
    border-radius: 16px;
    padding: 30px 30px;
    width: 100%;
    max-width: 400px;
}
.logo {
    text-align: center;
    margin-bottom: 25px;
}
.logo img {
    width: 80px;
    height: 80px;
}
.title {
    text-align: center;
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin-bottom: 25px;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}
.input-box {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 12px 15px;
    background: #f9f9f9;
}
.input-box input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 16px;
    outline: none;
    padding: 5px 0;
}
.input-box input::placeholder {
    color: #999;
}
.code-btn {
    background: #ec682e;
    color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.3s;
}
.code-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}
.agree {
    display: flex;
    align-items: flex-start;
    font-size: 13px;
    color: #666;
    margin: 15px 0 25px;
    line-height: 1.5;
    display: flex;
    justify-content: center; /* 水平居中核心属性 */
}
.agree input {
    margin-right: 8px;
    margin-top: 3px;
}
.agree a {
    color: #ec682e;
    text-decoration: none;
}
.register-btn {
    width: 100%;
    background: linear-gradient(135deg, #ec682e 0%, #ec682e 100%);
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}
.register-btn:active {
    transform: scale(0.98);
}
.download-section {
    margin-top: 30px;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #eee;
}
.download-section p {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}
.download-btns {
    display: flex;
    justify-content: center;
    gap: 15px;
}
/* 下载按钮组 */
.download-btn {
    display: block;
    width: 85%;
    margin: 0 auto 15px;
    padding: 12px 0;
    text-decoration: none;
    color: #fff;
    border-radius: 25px; /* 圆角按钮 */
    font-size: 15px;
    font-weight: bold;
    /* 按钮也是红橙渐变，跟头部呼应 */
    background: linear-gradient(to right, #ec682e, #f27b6b);
    box-shadow: 0 2px 5px rgba(217, 70, 37, 0.3);
    transition: opacity 0.2s;
}

.download-btn:active {
    opacity: 0.8;
}
.toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 9999;
    display: none;
    animation: fadeInOut 2s ease;
}
@keyframes fadeInOut {
    0%, 100% { opacity: 0; transform: translate(-50%, -20px); }
    10%, 90% { opacity: 1; transform: translate(-50%, 0); }
}
@media (max-width: 375px) {
    .container { padding: 25px 20px; }
    .title { font-size: 20px; }
}

/* 确保 input-box 相对定位，以便子元素绝对定位 */
.input-box {
    position: relative;
    /* 保留原有样式... */
}

/* 密码切换图标样式 */
.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 18px;
    color: #999;
    user-select: none; /* 防止选中文字 */
    z-index: 10;
}

/* 可选：鼠标悬停效果 */
.toggle-password:hover {
    color: #333;
}

/* 确保输入框右侧有足够的 padding，防止文字被图标遮挡 */
.input-box input[type="password"],
.input-box input[type="text"] {
    padding-right: 40px; /* 根据图标宽度调整 */
}

/** ------------------------------------------------------------------------------------- */
/* 触发按钮样式 */
.trigger-btn {
    padding: 12px 24px;
    font-size: 16px;
    background-color: #d94625;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

/* --- 弹框核心样式 --- */

/* 遮罩层 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* 半透明黑色背景 */
    z-index: 999;
    display: none; /* 默认隐藏 */
}

/* 弹框主体 */
.modal-box {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* 居中定位 */
    width: 300px; /* 宽度参考手机端 */
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    z-index: 1000;
    display: none; /* 默认隐藏 */
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* 弹框头部 (红橙渐变) */
.modal-header {
    background: linear-gradient(to right, #c93818, #e86c52);
    color: #fff;
    text-align: center;
    padding: 18px 0;
    position: relative;
}

/* 头部标题装饰线 */
.modal-header .title-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-header .line {
    flex: 1;
    height: 1px;
    background-color: rgba(255,255,255,0.5);
    margin: 0 10px;
}

.modal-header .diamond {
    font-size: 12px;
    margin: 0 5px;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 2px;
}

/* 弹框内容区 */
.modal-body {
    padding: 25px 20px 30px;
    text-align: center;
}

.modal-body .msg {
    color: #666;
    font-size: 14px;
    margin-bottom: 25px;
}
/* 按钮图标模拟 (用emoji代替图片，方便演示) */
.icon {
    margin-right: 6px;
    font-style: normal;
}
