/* 全局样式 */
:root {
    --bg-color: #000000;
    --primary-color: #38b6ff;
    --primary-dark: #0094ff;
    --secondary-color: #66c7ff;
    --text-color: #ffffff;
    --accent-color: #00d2ff;
    --danger-color: #ff073a;
    --sss-color: #ff073a;
    --s-color: #ff5722;
    --a-color: #ffc107;
    --b-color: #4caf50;
    --c-color: #2196f3;
    --d-color: #9c27b0;
    --dark-bg: #0c1423;
    --card-bg: #0c1a2e;
    --border-color: rgba(56, 182, 255, 0.4);
    --panel-bg: rgba(12, 20, 35, 0.95);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier New', monospace;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

button,
.cyber-btn {
    cursor: pointer;
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 16px;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

button:hover,
.cyber-btn:hover {
    background-color: var(--primary-dark);
    box-shadow: 0 0 10px var(--primary-color);
    transform: translateY(-2px);
}

button:active,
.cyber-btn:active {
    transform: translateY(0);
    box-shadow: 0 0 5px var(--primary-color);
}

button:before,
.cyber-btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
}

button:hover:before,
.cyber-header h1:hover:before {
    left: 0;
}

.cyber-btn.large {
    padding: 12px 24px;
    font-size: 1.1rem;
}

.cyber-btn.small {
    padding: 4px 8px;
    font-size: 0.8rem;
}

.cyber-btn.danger {
    border-color: var(--danger-color);
    color: var(--danger-color);
}

.cyber-btn.danger:hover {
    background-color: rgba(255, 7, 58, 0.2);
    box-shadow: 0 0 10px var(--danger-color);
}

input,
select,
textarea {
    background-color: rgba(8, 16, 32, 0.7);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 8px 12px;
    font-family: 'Courier New', monospace;
    width: 100%;
    border-radius: 4px;
    transition: all 0.3s ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 5px var(--primary-color);
}

.container {
    max-width: 1200px;
    width: 100%;
    height: 100vh;
    margin: 0 auto;
    padding: 0;
    position: relative;
    z-index: 5;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hidden {
    display: none;
}

/* Matrix背景样式 */
#matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    z-index: -1;
    overflow: hidden;
}

/* 任务列表样式 */
.missions-container {
    margin-top: 30px;
}

.mission-filter {
    margin-bottom: 20px;
    text-align: right;
}

.mission-filter select {
    width: auto;
    min-width: 150px;
    background-color: rgba(0, 0, 0, 0.8);
}

.mission-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.mission-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mission-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.mission-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
}

.mission-card.sss-level:before {
    background-color: var(--sss-color);
}

.mission-card.s-level:before {
    background-color: var(--s-color);
}

.mission-card.a-level:before {
    background-color: var(--a-color);
}

.mission-card.b-level:before {
    background-color: var(--b-color);
}

.mission-card.c-level:before {
    background-color: var(--c-color);
}

.mission-card.d-level:before {
    background-color: var(--d-color);
}

.mission-header {
    position: relative;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mission-level {
    position: absolute;
    top: 0;
    right: 0;
    padding: 3px 8px;
    font-size: 0.75rem;
    font-weight: bold;
    border-radius: 3px;
}

.sss-level .mission-level {
    background-color: var(--sss-color);
    color: #fff;
}

.s-level .mission-level {
    background-color: var(--s-color);
    color: #fff;
}

.a-level .mission-level {
    background-color: var(--a-color);
    color: #000;
}

.b-level .mission-level {
    background-color: var(--b-color);
    color: #000;
}

.c-level .mission-level {
    background-color: var(--c-color);
    color: #fff;
}

.d-level .mission-level {
    background-color: var(--d-color);
    color: #fff;
}

.mission-title {
    font-size: 1.1rem;
    margin-bottom: 5px;
    padding-right: 40px;
    color: var(--text-color);
}

.mission-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.8rem;
    color: #999;
}

.mission-body {
    margin-bottom: 15px;
}

.mission-desc {
    font-size: 0.9rem;
    margin-bottom: 10px;
    height: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.mission-reward {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.reward-amount {
    color: var(--primary-color);
    font-weight: bold;
}

.difficulty {
    opacity: 0.7;
}

.mission-footer {
    text-align: center;
    margin-top: 20px;
}

/* 任务详情页样式 */
.mission-detail-container {
    margin-top: 30px;
}

.mission-detail {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 30px;
    position: relative;
}

.mission-detail:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
}

.mission-detail.sss-level:before {
    background-color: var(--sss-color);
}

.mission-title-wrap {
    display: flex;
    margin-bottom: 20px;
    position: relative;
}

.mission-detail .mission-level {
    position: relative;
    top: auto;
    right: auto;
    margin-right: 15px;
    height: fit-content;
}

.mission-detail .mission-title {
    padding-right: 0;
    margin: 0;
    flex: 1;
}

.mission-detail .mission-meta {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.meta-item {
    display: flex;
    flex-direction: column;
}

.meta-label {
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 5px;
}

.meta-value {
    font-size: 0.9rem;
    color: var(--text-color);
}

.mission-reward-detail {
    margin-bottom: 30px;
    padding: 15px;
    background-color: rgba(0, 255, 65, 0.05);
    border-left: 3px solid var(--primary-color);
}

.reward-value {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: bold;
}

.mission-background,
.mission-requirements,
.mission-submission,
.mission-terms,
.mission-message,
.risk-warning {
    margin-bottom: 30px;
}

.requirement-group {
    margin-bottom: 15px;
}

.requirement-group h5 {
    margin-bottom: 5px;
    color: var(--accent-color);
}

.requirement-group ul {
    padding-left: 20px;
}

.requirement-group li {
    margin-bottom: 5px;
}

.mission-message blockquote {
    padding: 15px;
    border-left: 3px solid var(--secondary-color);
    background-color: rgba(9, 132, 227, 0.05);
    font-style: italic;
}

.risk-warning {
    color: var(--danger-color);
    padding: 15px;
    border: 1px dashed var(--danger-color);
    background-color: rgba(255, 7, 58, 0.05);
}

.mission-actions {
    margin-top: 40px;
    text-align: center;
}

/* 聊天窗口样式 */
.chat-window {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 320px;
    background-color: var(--dark-bg);
    border: 1px solid var(--border-color);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.chat-window.hidden {
    transform: translateY(calc(100% - 40px));
}

.chat-header {
    padding: 10px;
    background-color: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h3 {
    font-size: 1rem;
    margin: 0;
    color: var(--accent-color);
}

.minimize-btn {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0 5px;
}

.chat-messages {
    padding: 10px;
    height: 300px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.chat-message {
    margin-bottom: 10px;
    max-width: 80%;
    padding: 8px 12px;
    border-radius: 4px;
    position: relative;
    word-break: break-word;
}

.chat-message.sent {
    align-self: flex-end;
    background-color: rgba(0, 255, 65, 0.1);
    border: 1px solid var(--primary-dark);
}

.chat-message.received {
    align-self: flex-start;
    background-color: rgba(9, 132, 227, 0.1);
    border: 1px solid var(--secondary-color);
}

.message-time {
    font-size: 0.7rem;
    color: #999;
    margin-top: 5px;
    text-align: right;
}

.chat-input {
    padding: 10px;
    border-top: 1px solid var(--border-color);
    display: flex;
}

.chat-input input {
    flex: 1;
    margin-right: 10px;
}

#send-message-btn {
    padding: 8px 12px;
    font-size: 0.9rem;
}

/* 个人中心样式 */
.profile-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
    margin-top: 30px;
}

@media (max-width: 768px) {
    .profile-container {
        grid-template-columns: 1fr;
    }
}

.profile-sidebar {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 20px;
}

.user-info {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 15px;
    border: 2px solid var(--accent-color);
    position: relative;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
}

.avatar:after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    border: 1px solid var(--accent-color);
    opacity: 0.5;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.3;
    }

    100% {
        transform: scale(1);
        opacity: 0.5;
    }
}

.username {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.user-rank {
    margin-bottom: 15px;
}

.rank-label {
    font-size: 0.8rem;
    color: #999;
    margin-right: 5px;
}

.rank-value {
    font-size: 0.9rem;
    color: var(--accent-color);
}

.reputation {
    text-align: left;
}

.rep-label {
    display: block;
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 5px;
}

.rep-bar {
    height: 5px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.rep-fill {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 3px;
}

.profile-nav ul {
    list-style: none;
    padding: 0;
}

.profile-nav ul li {
    margin-bottom: 5px;
}

.profile-nav ul li a {
    display: block;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.3);
    color: var(--text-color);
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.profile-nav ul li a:hover,
.profile-nav ul li a.active {
    background-color: rgba(0, 255, 65, 0.1);
    border-left-color: var(--primary-color);
    color: var(--primary-color);
}

.profile-content {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 20px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.section-header {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

/* 钱包样式 */
.wallet-balance {
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.balance-header {
    font-size: 0.9rem;
    color: #999;
    margin-bottom: 10px;
}

.balance-amount {
    font-size: 2.5rem;
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
}

.currency-type {
    font-size: 0.9rem;
    color: #999;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.currency-switch {
    background: none;
    border: none;
    color: var(--accent-color);
    cursor: pointer;
    text-decoration: underline;
    font-size: 0.8rem;
    padding: 0;
}

.wallet-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.transaction-history h5 {
    margin-bottom: 15px;
    color: var(--accent-color);
}

.transaction-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.transaction-item {
    display: flex;
    align-items: center;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.transaction-item:hover {
    background-color: rgba(0, 0, 0, 0.5);
}

.transaction-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 10px;
}

.transaction-item.income .transaction-icon {
    background-color: rgba(0, 255, 65, 0.1);
    color: var(--primary-color);
}

.transaction-item.expense .transaction-icon {
    background-color: rgba(255, 7, 58, 0.1);
    color: var(--danger-color);
}

.transaction-info {
    flex: 1;
}

.transaction-title {
    display: block;
    font-size: 0.9rem;
}

.transaction-date {
    display: block;
    font-size: 0.8rem;
    color: #999;
}

.transaction-amount {
    font-weight: bold;
}

.transaction-item.income .transaction-amount {
    color: var(--primary-color);
}

.transaction-item.expense .transaction-amount {
    color: var(--danger-color);
}

/* 我的接单样式 */
.missions-filter {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 20px;
    gap: 10px;
}

.filter-btn {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 5px 10px;
    cursor: pointer;
    font-size: 0.9rem;
}

.filter-btn.active {
    background-color: rgba(0, 255, 65, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.my-missions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.my-mission-item {
    display: grid;
    grid-template-columns: 100px 1fr auto;
    gap: 15px;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    align-items: center;
}

.mission-status {
    text-align: center;
}

.status-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.in-progress .status-badge {
    background-color: var(--primary-dark);
    color: var(--primary-color);
}

.completed .status-badge {
    background-color: rgba(76, 175, 80, 0.2);
    color: var(--b-color);
}

.failed .status-badge {
    background-color: rgba(255, 7, 58, 0.2);
    color: var(--danger-color);
}

.mission-progress {
    margin-top: 10px;
}

.progress-bar {
    height: 5px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 5px;
}

.progress-fill {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 3px;
}

.progress-text {
    font-size: 0.8rem;
    color: var(--primary-color);
}

.mission-reward,
.mission-failure {
    margin-top: 10px;
    font-size: 0.9rem;
}

.reward-label {
    color: #999;
    margin-right: 5px;
}

.mission-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* 设置界面样式 */
.settings-form {
    margin-bottom: 30px;
}

.danger-zone {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px dashed var(--danger-color);
}

.danger-zone h5 {
    color: var(--danger-color);
    margin-bottom: 15px;
}

.danger-actions {
    display: flex;
    gap: 15px;
}

/* 登录页样式 */
.login-box {
    background-color: var(--dark-bg);
    width: 90%;
    max-width: 600px;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 0 40px rgba(56, 182, 255, 0.3);
    position: relative;
    z-index: 5;
    overflow: hidden;
    border: 1px solid rgba(56, 182, 255, 0.4);
    animation: fadeIn 1s ease-out;
}

.login-box:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(135deg, rgba(30, 144, 255, 0.05) 0%, transparent 25%),
        linear-gradient(225deg, rgba(30, 144, 255, 0.05) 0%, transparent 25%),
        linear-gradient(315deg, rgba(30, 144, 255, 0.05) 0%, transparent 25%),
        linear-gradient(45deg, rgba(30, 144, 255, 0.05) 0%, transparent 25%);
    background-size: 20px 20px;
    opacity: 0.5;
    z-index: -1;
}

.cyber-header {
    margin-bottom: 30px;
    text-align: center;
}

.cyber-header h1 {
    font-size: 3rem;
    letter-spacing: 2px;
    margin-bottom: 8px;
    position: relative;
    display: inline-block;
    color: var(--primary-color);
    text-shadow: 0 0 15px rgba(56, 182, 255, 0.5);
    animation: flicker 2s infinite alternate;
    font-weight: 800;
}

.cyber-header h1 span {
    color: var(--text-color);
    font-weight: 400;
    text-shadow: none;
}

.cyber-header h2 {
    font-size: 0.9rem;
    color: #a0c8ff;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 400;
}

.cyber-header h2 span {
    color: #1e90ff;
}

.login-form {
    margin: 30px 0;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 8px;
    color: #a0c8ff;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.form-group:focus-within label {
    color: var(--primary-color);
}

.form-group input {
    padding: 12px 15px;
    font-size: 1.05rem;
    background-color: rgba(12, 20, 40, 0.6);
    border: 1px solid rgba(30, 144, 255, 0.35);
    border-radius: 4px;
    color: var(--text-color);
}

.form-group input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 8px rgba(30, 144, 255, 0.5);
}

.form-actions {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.form-actions .cyber-btn {
    width: 100%;
    max-width: 280px;
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 12px 0;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.form-actions .cyber-btn:hover {
    background-color: var(--primary-dark);
    color: white;
    box-shadow: 0 0 15px rgba(30, 144, 255, 0.5);
}

.login-info {
    margin-top: 25px;
    text-align: center;
    color: #a0c8ff;
    font-size: 0.9rem;
}

.login-info p {
    margin: 6px 0;
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes flicker {

    0%,
    19.999%,
    22%,
    62.999%,
    64%,
    64.999%,
    70%,
    100% {
        opacity: 1;
        text-shadow: 0 0 10px rgba(30, 144, 255, 0.5),
            0 0 20px rgba(30, 144, 255, 0.3);
    }

    20%,
    21.999%,
    63%,
    63.999%,
    65%,
    69.999% {
        opacity: 0.6;
        text-shadow: none;
    }
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.cyber-terminal {
    background-color: rgba(12, 20, 40, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 20px;
    font-family: 'Courier New', monospace;
    color: #4da6ff;
    margin-bottom: 25px;
    font-size: 0.95rem;
    line-height: 1.6;
    max-height: 170px;
    overflow: hidden;
    box-shadow: inset 0 0 15px rgba(56, 182, 255, 0.3);
}

.terminal-line {
    position: relative;
    padding-left: 20px;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    animation: type 2s steps(40, end);
}

.terminal-line:nth-child(1) {
    animation-delay: 0.2s;
}

.terminal-line:nth-child(2) {
    animation-delay: 1.2s;
}

.terminal-line:nth-child(3) {
    animation-delay: 2.2s;
}

.terminal-line:nth-child(4) {
    animation-delay: 3.2s;
}

.terminal-line:nth-child(5) {
    animation-delay: 4.2s;
    color: #0062ff;
}

.terminal-line::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background-color: transparent;
    border-radius: 50%;
}

.terminal-line:nth-child(1)::after {
    background-color: #4da6ff;
    animation: blink 1s infinite alternate;
    animation-delay: 0.2s;
}

.terminal-line:nth-child(2)::after {
    background-color: #4da6ff;
}

.terminal-line:nth-child(3)::after {
    background-color: #4da6ff;
}

.terminal-line:nth-child(4)::after {
    background-color: #4da6ff;
}

.terminal-line:nth-child(5)::after {
    background-color: #1e90ff;
    animation: blink 1s infinite alternate;
}

.blink {
    animation: cursorBlink 1s infinite;
}

.blink::after {
    content: '_';
    position: relative;
    display: inline-block;
    color: #0062ff;
    width: 0.75em;
    animation: cursorBlink 1s infinite;
}

/* 光标闪烁动画 */
@keyframes cursorBlink {

    0%,
    49% {
        opacity: 1;
    }

    50%,
    100% {
        opacity: 0;
    }
}

/* 打字机效果 */
@keyframes type {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

/* 点闪烁动画 */
@keyframes blink {

    0%,
    80% {
        opacity: 1;
    }

    90%,
    100% {
        opacity: 0.3;
    }
}

.lock-icon {
    margin: 0 auto 20px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite alternate;
}

.lock-icon svg {
    width: 100%;
    height: 100%;
    stroke: #1e90ff;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 0 2px rgba(30, 144, 255, 0.5));
    }

    100% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 8px rgba(30, 144, 255, 0.7));
    }
}

.security-badge {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 25px;
    gap: 8px;
    font-size: 0.9rem;
    color: #a0c8ff;
}

.badge-icon {
    color: #4da6ff;
}

.input-border {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 0;
    background-color: var(--primary-color);
    transition: width 0.4s ease;
    z-index: 1;
}

.form-group input:focus+.input-border {
    width: 100%;
}

.cyber-btn-text {
    position: relative;
    z-index: 1;
}

.cyber-btn .glitch {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    background: linear-gradient(45deg,
            rgba(0, 98, 255, 0.5) 0%,
            rgba(0, 0, 0, 0) 50%,
            rgba(0, 98, 255, 0.5) 100%);
    animation: none;
}

.cyber-btn:hover .glitch {
    opacity: 1;
    animation: glitch-effect 2s infinite;
}

@keyframes glitch-effect {
    0% {
        clip-path: polygon(0 0, 100% 0, 100% 2%, 0 2%);
        transform: translate(0);
    }

    2% {
        clip-path: polygon(0 78%, 100% 78%, 100% 100%, 0 100%);
        transform: translate(-5px);
    }

    4% {
        clip-path: polygon(0 44%, 100% 44%, 100% 54%, 0 54%);
        transform: translate(5px);
    }

    6% {
        clip-path: polygon(0 13%, 100% 13%, 100% 18%, 0 18%);
        transform: translate(-5px);
    }

    8% {
        clip-path: polygon(0 63%, 100% 63%, 100% 68%, 0 68%);
        transform: translate(5px);
    }

    10% {
        clip-path: polygon(0 34%, 100% 34%, 100% 41%, 0 41%);
        transform: translate(-5px);
    }

    12% {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
        transform: translate(0);
    }

    100% {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
        transform: translate(0);
    }
}

/* 错误消息样式 */
.error-message {
    background-color: rgba(255, 7, 58, 0.1);
    border: 1px solid rgba(255, 7, 58, 0.3);
    border-radius: 4px;
    color: #ff073a;
    font-size: 0.9rem;
    padding: 10px 15px;
    margin: 10px 0;
    text-align: center;
    animation: fadeIn 0.3s ease;
}

/* 登录表单布局优化 - 添加在响应式适配部分之前 */
@media (min-width: 768px) {
    .login-form {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .form-actions {
        grid-column: span 2;
    }

    .login-box {
        padding: 2.5rem 3rem;
    }
}

/* 响应式适配 */
@media (max-width: 767px) {

    /* 移动端上保持单列表单 */
    .login-form {
        display: block;
    }

    .cyber-header h1 {
        font-size: 2.3rem;
        /* 移动端字体稍小一些 */
    }

    .lock-icon {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .login-box {
        width: 95%;
        padding: 1.5rem;
        max-width: none;
    }

    .cyber-header h1 {
        font-size: 2rem;
    }

    .cyber-header h2 {
        font-size: 0.8rem;
    }

    .form-actions .cyber-btn {
        font-size: 1rem;
        padding: 10px 0;
    }

    .form-group input {
        font-size: 1rem;
        padding: 10px;
    }

    .cyber-terminal {
        font-size: 0.8rem;
        padding: 15px;
    }
}