* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    overflow: hidden;
    font-family: "思源宋体", "楷体", serif;
    color: #f0e6d2;
}

.fullpage-bg {
    width: 100vw;
    height: 100vh;
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(to bottom, #05071a, #1a1238 60%, #2d2a4a 100%);
}

#cosmicCanvas {
    width: 100%;
    height: 100%;
}

.login-card {
    position: absolute;
    top: 50%;
    left: 12%;
    transform: translateY(-50%);
    width: 420px;
    padding: 45px 35px;
    background: rgba(20, 18, 40, 0.82);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 12px;
    box-shadow: 0 0 35px rgba(212, 175, 55, 0.12);
    backdrop-filter: blur(8px);
}

.title {
    text-align: center;
    font-size: 32px;
    font-weight: normal;
    margin-bottom: 35px;
    color: #d4af37;
    letter-spacing: 4px;
    text-shadow: 0 0 12px rgba(212, 175, 55, 0.6);
}

.input-group {
    margin-bottom: 22px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
    color: #e2d4b8;
    letter-spacing: 1px;
}

.input-item {
    width: 100%;
    height: 42px;
    padding: 0 14px;
    background: rgba(45, 42, 74, 0.7);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 6px;
    color: #f0e6d2;
    font-size: 15px;
    transition: all 0.3s;
}

.input-item:focus {
    outline: none;
    border-color: rgba(212, 175, 55, 0.7);
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.25);
}

.code-wrap {
    display: flex;
    gap: 10px;
}

.code-input {
    flex: 1;
}

.send-code-btn {
    padding: 0 16px;
    background: rgba(212, 175, 55, 0.2);
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 6px;
    color: #d4af37;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.send-code-btn:hover {
    background: rgba(212, 175, 55, 0.35);
}

.submit-btn {
    width: 100%;
    height: 45px;
    margin: 15px 0 20px 0;
    background: linear-gradient(90deg, #8b5a2b, #d4af37, #8b5a2b);
    border: none;
    border-radius: 6px;
    color: #fff9ea;
    font-size: 17px;
    letter-spacing: 3px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 0 18px rgba(212, 175, 55, 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 28px rgba(212, 175, 55, 0.5);
}

.switch-tip {
    text-align: center;
    font-size: 14px;
    color: #c2b5a0;
}

.switch-btn {
    color: #d4af37;
    cursor: pointer;
    transition: all 0.2s;
}

.switch-btn:hover {
    text-decoration: underline;
}

.hidden {
    display: none;
}

/* 自定义优雅弹窗样式 */
.custom-modal-wrap {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}
.custom-modal-wrap.show {
    opacity: 1;
    pointer-events: all;
}
.custom-modal {
    width: 380px;
    padding: 35px 25px;
    background: rgba(20, 18, 40, 0.95);
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 10px;
    box-shadow: 0 0 45px rgba(212, 175, 55, 0.2);
    backdrop-filter: blur(10px);
    transform: translateY(-20px);
    transition: all 0.3s ease;
    color: #f0e6d2;
    text-align: center;
    font-family: "思源宋体", "楷体", serif;
}
.custom-modal-wrap.show .custom-modal {
    transform: translateY(0);
}
.custom-modal .modal-title {
    font-size: 18px;
    color: #d4af37;
    margin-bottom: 20px;
    letter-spacing: 2px;
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.4);
}
.custom-modal .modal-content {
    font-size: 15px;
    line-height: 1.6;
    color: #e2d4b8;
    margin-bottom: 25px;
}
.custom-modal .modal-confirm-btn {
    width: 100%;
    height: 42px;
    background: linear-gradient(90deg, #8b5a2b, #d4af37, #8b5a2b);
    border: none;
    border-radius: 6px;
    color: #fff9ea;
    font-size: 16px;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.2s;
}
.custom-modal .modal-confirm-btn:hover {
    box-shadow: 0 0 18px rgba(212, 175, 55, 0.5);
}

.ink-title-wrap {
    position: absolute;
    top: 50%;
    right: 15%;
    transform: translateY(-50%);
    z-index: 10;
    text-align: center;
}
.ink-line {
    font-family: "汉仪粗行楷简", 楷体, 思源宋体, serif;
    font-size: 72px;
    font-weight: bold;
    color: #d4af37;
    letter-spacing: 12px;
    line-height: 1.4;
    text-shadow:
        2px 2px 0 rgba(139, 90, 43, 0.2),
        0 0 30px rgba(212, 175, 55, 0.4);
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.3));
}
/* 保留你要求的原生换行缩进排版，完全不打乱文字层级 */
.ink-line:nth-child(2) {
    letter-spacing: 24px;
}
.ink-line:nth-child(4) {
    letter-spacing: 18px;
}
