* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f0f2f5;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
}

/* 粒子画布 */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* 容器 */
#app {
    position: relative;
    z-index: 1;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding-top: 76px;
    padding-bottom: 40px;
}

/* ========== 动画关键帧 ========== */
@keyframes boxSlideUp {
    from { opacity: 0; transform: translateY(50px) scale(0.92); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes itemFadeIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes btnShimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}
@keyframes btnPulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.5); }
    70% { box-shadow: 0 0 0 14px rgba(255, 59, 48, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 59, 48, 0); }
}
@keyframes titleLineExpand {
    from { width: 0; }
    to { width: 50px; }
}
@keyframes arrowBounce {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(4px); }
}
@keyframes inputBarGlow {
    0%, 100% { opacity: 0.6; height: 50%; }
    50% { opacity: 1; height: 70%; }
}
/* 边框流光旋转 */
@keyframes glowRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* 按钮边框呼吸 */
@keyframes borderGlow {
    0% { border-color: #FF3B30; box-shadow: 0 0 8px rgba(255,59,48,0.25); }
    25% { border-color: #FF6B60; box-shadow: 0 0 14px rgba(255,107,96,0.25); }
    50% { border-color: #FFa07a; box-shadow: 0 0 8px rgba(255,160,122,0.25); }
    75% { border-color: #FF6B60; box-shadow: 0 0 14px rgba(255,107,96,0.25); }
    100% { border-color: #FF3B30; box-shadow: 0 0 8px rgba(255,59,48,0.25); }
}
@keyframes shimmerBorder {
    0% { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}
/* 主按钮渐变流动 */
@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ========== 卡片边框流光 ========== */
.card-glow-wrap {
    position: relative;
    border-radius: 26px;
    padding: 2px;
    overflow: hidden;
    animation: boxSlideUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
/* 旋转的光点 */
.card-glow-wrap::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    transform-origin: center center;
    background: conic-gradient(
        from 0deg,
        transparent 0%,
        transparent 30%,
        #FF3B30 38%,
        #FF6B60 42%,
        #FFa07a 46%,
        #FF6B60 50%,
        #FF3B30 54%,
        transparent 62%,
        transparent 100%
    );
    animation: glowRotate 4s linear infinite;
    margin-left: -100%;
    margin-top: -100%;
    z-index: 0;
}
/* 光晕扩散 */
.card-glow-wrap::after {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    border-radius: 40px;
    background: conic-gradient(
        from 0deg,
        transparent 0%,
        transparent 32%,
        rgba(255,59,48,0.15) 40%,
        rgba(255,107,96,0.08) 48%,
        transparent 56%,
        transparent 100%
    );
    animation: glowRotate 4s linear infinite;
    z-index: -1;
    filter: blur(15px);
    pointer-events: none;
}

/* ========== 标题装饰 ========== */
.form-title {
    text-align: center;
    font-size: 32px;
    color: #1a1a2e;
    margin-bottom: 12px;
    font-weight: 700;
    letter-spacing: 4px;
    animation: itemFadeIn 0.5s ease 0.15s both;
}
.form-title-bar {
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #FF3B30, #FF6B60);
    border-radius: 2px;
    margin: 0 auto 36px;
    animation: titleLineExpand 0.6s ease 0.3s both;
}

/* ========== 输入框组 ========== */
.input-wrap {
    position: relative;
}
.input-wrap::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 50%;
    background: linear-gradient(180deg, #FF3B30, #FF6B60);
    border-radius: 0 2px 2px 0;
    opacity: 0;
    transition: opacity 0.3s, height 0.3s;
    z-index: 1;
}
.input-wrap:focus-within::before {
    opacity: 1;
    animation: inputBarGlow 1.5s ease infinite;
}

.layui-form-item {
    margin-bottom: 22px;
    animation: itemFadeIn 0.5s ease both;
}
.layui-form-item:nth-child(1) { animation-delay: 0.2s; }
.layui-form-item:nth-child(2) { animation-delay: 0.3s; }
.layui-form-item:nth-child(3) { animation-delay: 0.4s; }
.layui-form-item:nth-child(4) { animation-delay: 0.5s; }
.layui-form-item:nth-child(5) { animation-delay: 0.6s; }
.layui-form-item:nth-child(6) { animation-delay: 0.7s; }
.layui-form-item:nth-child(7) { animation-delay: 0.8s; }

.layui-input {
    height: 52px;
    border-radius: 12px;
    padding-left: 18px;
    font-size: 15px;
    border: 1.5px solid rgba(0, 0, 0, 0.08);
    background: rgba(245, 245, 250, 0.8);
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.2s, background 0.3s;
}
.layui-input:focus {
    border-color: #FF3B30;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(255, 59, 48, 0.1), 0 4px 20px rgba(255, 59, 48, 0.06);
    transform: translateY(-1px);
}

/* ========== 主提交按钮 ========== */
.layui-btn-primary-submit {
    width: 100%;
    height: 54px;
    font-size: 17px;
    font-weight: 700;
    border-radius: 12px;
    background: linear-gradient(135deg, #E8302A, #FF3B30, #FF6B60, #FF3B30, #E8302A);
    background-size: 300% 300%;
    animation: gradientFlow 5s ease infinite;
    border: none;
    margin-top: 10px;
    color: #fff;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    letter-spacing: 4px;
    position: relative;
    overflow: hidden;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
    box-shadow: 0 4px 15px rgba(255, 59, 48, 0.25);
}
.layui-btn-primary-submit::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: none;
}
.layui-btn-primary-submit:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 12px 40px rgba(255, 59, 48, 0.45), 0 0 80px rgba(255, 59, 48, 0.08);
}
.layui-btn-primary-submit:hover::after {
    animation: btnShimmer 0.7s ease;
}
.layui-btn-primary-submit:active {
    transform: translateY(-1px) scale(0.99);
    animation: btnPulse 0.6s ease;
}

/* ========== 副操作按钮 ========== */
.action-links {
    text-align: center;
    margin-top: 22px;
    animation: itemFadeIn 0.5s ease 0.8s both;
}
.btn-outline-red {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 50px;
    text-align: center;
    border: 2px solid #FF3B30;
    border-radius: 12px;
    color: #FF3B30;
    background: #fff;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
    gap: 6px;
    transition: transform 0.3s, box-shadow 0.3s, color 0.3s, background 0.3s;
    animation: borderGlow 3s linear infinite;
}
.btn-outline-red .btn-arrow {
    display: inline-block;
    transition: transform 0.3s;
    font-size: 16px;
}
.btn-outline-red::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 14px;
    background: linear-gradient(90deg, #FF3B30, #FF6B60, #FFa07a, #FF6B60, #FF3B30);
    background-size: 300% 100%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s;
    animation: shimmerBorder 3s linear infinite;
}
.btn-outline-red::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,59,48,0.06), transparent);
    transition: none;
    z-index: 1;
}
.btn-outline-red:hover {
    color: #fff;
    background: transparent;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 59, 48, 0.25);
    border-color: transparent;
    animation: none;
}
.btn-outline-red:hover::before {
    opacity: 1;
}
.btn-outline-red:hover::after {
    animation: btnShimmer 0.8s ease;
    z-index: 1;
}
.btn-outline-red:hover .btn-arrow {
    animation: arrowBounce 0.6s ease infinite;
}
.btn-outline-red:active {
    transform: translateY(0);
}

/* ========== 忘记密码 ========== */
.forget-password {
    text-align: center;
    margin-top: 16px;
    animation: itemFadeIn 0.5s ease 0.9s both;
}
.forget-password a {
    color: #999;
    font-size: 13px;
    text-decoration: none;
    transition: color 0.3s, text-shadow 0.3s;
}
.forget-password a:hover {
    color: #FF3B30;
    text-shadow: 0 0 8px rgba(255, 59, 48, 0.2);
}

/* ========== 客服 - 右上角 ========== */
.kefu-link {
    position: fixed;
    top: 20px;
    right: 24px;
    z-index: 999;
    color: #FF3B30;
    font-size: 14px;
    text-decoration: none;
    padding: 8px 20px;
    border: 1px solid rgba(255, 59, 48, 0.3);
    border-radius: 20px;
    background: #fff;
    transition: all 0.3s;
    animation: itemFadeIn 0.5s ease 0.3s both;
}
.kefu-link:hover {
    background: linear-gradient(135deg, #FF3B30, #FF6B60);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 20px rgba(255, 59, 48, 0.3);
    transform: translateY(-2px);
}

/* ========== checkbox红色主题 ========== */
.layui-form-checkbox[lay-skin="primary"]:hover i,
.layui-form-checked[lay-skin="primary"] i {
    border-color: #FF3B30 !important;
    background-color: #FF3B30 !important;
}
