body {
    background-color: #ebedf0;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Segoe UI, Arial, Roboto, "PingFang SC", "miui", "Hiragino Sans GB", "Microsoft Yahei", sans-serif;
    color: #323233;
}

.app-container {
    width: 100%;
    max-width: 500px;
    min-height: 100vh;
    margin: 0 auto;
    background-image: linear-gradient(to bottom, #fff, #ebedf0);
    position: relative;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

.banner {
    width: 100%;
    height: auto;
    display: block;
    position: relative; /* 为文字浮层提供定位基准 */
}

.banner-overlay {
    position: absolute;
    top: 65%; /* 从 50% 调到 65%，向下移动文字 */
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    text-align: center;
    pointer-events: none;
    z-index: 10;
}

.banner-overlay .mango-greeting {
    font-size: 16px;
    color: #323233;
    margin-bottom: 6px;
}

.banner-overlay .mango-success-msg {
    font-size: 18px;
    color: #ff5f00; /* 芒果橙 */
    font-weight: bold;
}

.banner img {
    width: 100%;
    height: auto;
    display: block;
}

.form-container {
    padding: 20px 16px 40px;
}

.layui-form-item {
    background: #fff;
    border-radius: 8px;
    padding: 10px 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.layui-form-item label {
    width: 70px;
    font-size: 15px;
    color: #323233;
    flex-shrink: 0;
    white-space: nowrap;
}

.layui-form-item input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    font-size: 15px;
    color: #323233;
    background: transparent;
    padding: 8px 0;
}

.layui-form-item input::placeholder {
    color: #c8c9cc;
}

.agreement-box {
    margin: 15px 0 0 5px;
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #7f8c9f;
}

.agreement-checkbox {
    margin: 0 8px 0 0;
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #ff9f1c;
}

.agreement-label {
    cursor: pointer;
    user-select: none;
}

.agreement-label a {
    color: #ff9f1c;
    text-decoration: none;
}

.btn-primary {
    width: 80%;
    height: 44px;
    line-height: 44px;
    margin: 30px auto 0;
    display: block;
    border-radius: 22px;
    color: #362300;
    background-image: linear-gradient(to right, #facb83, #e5a33b);
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(229, 163, 59, 0.3);
}

.btn-primary:active {
    opacity: 0.8;
}

.btn-primary:disabled {
    cursor: not-allowed;
}

.btn-captcha {
    background: rgba(158, 121, 0, 0.66);
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
    margin-left: 8px;
    flex-shrink: 0;
}

.btn-captcha:active {
    background: rgba(158, 121, 0, 0.8);
}

.result-container {
    background: #fff;
    border-radius: 12px;
    padding: 40px 20px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}

/* 芒果TV会员卡样式 */
.result-container#mango-result-card {
    padding: 0;
    overflow: hidden;
    position: relative;
    background: linear-gradient(180deg, #fffef8 0%, #ffffff 72%);
    border: 1px solid rgba(229, 163, 59, 0.24);
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(24, 24, 24, 0.08);
    margin-bottom: 24px;
}

.result-container#mango-result-card::before {
    content: '';
    display: block;
    height: 5px;
    width: 100%;
    background: linear-gradient(90deg, #f7c36b 0%, #e5a33b 45%, #ff8a00 100%);
}

.mango-card-body {
    width: 100%;
    box-sizing: border-box;
    padding: 28px 22px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mango-greeting {
    width: 100%;
    box-sizing: border-box;
    background: #fff8ea;
    border: 1px solid #f4ddb1;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 15px;
    color: #7d5700;
    margin-top: 6px;
    margin-bottom: 10px;
    font-weight: 600;
    text-align: center;
}

.mango-success-msg {
    width: 100%;
    box-sizing: border-box;
    font-size: 16px;
    color: #d56f00;
    font-weight: 700;
    line-height: 1.6;
    margin-bottom: 16px;
    text-align: center;
}

.result-icon-box {
    width: 58px;
    height: 58px;
    border-radius: 29px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.result-icon-box.processing { background: rgba(229, 163, 59, 0.14); color: #d8962a; }
.result-icon-box.success { background: #ebfaef; color: #07a04f; }
.result-icon-box.error { background: #fff1f1; color: #e54f5d; }

.result-icon-box i {
    font-size: 30px;
}

.result-status-title {
    font-size: 21px;
    font-weight: 700;
    margin-bottom: 10px;
    text-align: center;
}

.result-status-title.processing { color: #d8962a; }
.result-status-title.success { color: #07a04f; }
.result-status-title.error { color: #e54f5d; }

/* 自定义 Layui 遮罩层文字和图标颜色 */
.custom-processing-layer {
    background: transparent !important; /* 去除原本的白底 */
    box-shadow: none !important; /* 去除白底阴影 */
    width: auto !important; /* 强制宽度自适应，解决重叠 */
    max-width: 80% !important; /* 限制最大宽度 */
}

.custom-processing-layer .layui-layer-content {
    color: #ff976a !important; /* 字体颜色改成红橙色 */
    font-size: 15px !important;
    font-weight: bold !important;
    background-color: rgba(0,0,0,0.8) !important; /* 加一个半透明黑底 */
    padding: 15px 25px !important; /* 调整内边距 */
    border-radius: 8px !important; /* 圆角 */
    display: inline-flex !important; /* 关键：使用 inline-flex 代替 flex 避免内部折叠挤压 */
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important; /* 关键：防止文字换行 */
}

.custom-processing-layer .layui-layer-content .layui-layer-ico {
    color: #ff976a !important; /* 圈圈颜色 */
    position: relative !important; /* 取消绝对定位，让 flex 生效 */
    top: auto !important;
    left: auto !important;
    margin: 0 !important;
    margin-right: 12px !important; /* 和文字保持间距 */
    width: 16px !important; /* 固定一个合适的大小防止缩放 */
    height: 16px !important;
    display: block !important;
    flex-shrink: 0 !important; /* 关键：防止 flexbox 挤压图标 */
}

.result-status-desc {
    font-size: 14px;
    color: #323233;
    text-align: center;
    line-height: 1.6;
    margin-bottom: 8px;
}

.result-status-tip {
    font-size: 12px;
    color: #b2a486;
    text-align: center;
    min-height: 18px;
}

.result-info-group {
    width: 100%;
    background: #f7f8fa;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 20px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-label {
    color: #969799;
}

.info-value {
    color: #323233;
    font-weight: 500;
}

.hidden {
    display: none !important;
}

.instructions-box {
    margin-top: 40px;
    padding: 20px 16px;
}

.instructions-title {
    font-size: 15px;
    font-weight: bold;
    color: #323233;
    margin-bottom: 12px;
}

.instructions-content p {
    font-size: 13px;
    color: #969799;
    line-height: 1.6;
    margin-bottom: 8px;
    margin-top: 0;
}

.hidden {
    display: none !important;
}
