* {
    box-sizing: border-box;
}

body {
    background: #000000;
    color: #fff;
    font-family: "Segoe UI", sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
}

/* 布局样式 */
.container {
    padding: 20px;
}

.section {
    margin-bottom: 20px;
}

.flex-row {
    display: flex;
    gap: 10px;
}

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

.flex-1 {
    flex: 1;
}

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

/* 头部样式 */
header {
    width: 100%;
    padding: 10px;
    background: #100f1599;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(6px);
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    z-index: 10;
}

.header-logo {
    height: 40px;
    max-width: 100%;
}

.header-menu {
    height: 30px;
    margin-left: 5px;
}

/* 钱包显示样式 */
.wallet-display {
    font-size: 14px;
    background: linear-gradient(180deg, #7A50FE, #A83DFE);
    color: #fff;
    border: 0.5px solid rgba(0, 9, 85, 0.8);
    padding: 6px 16px;
    border-radius: 20px;
    transition: all .3s;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: default;
}

.wallet-display.visible:hover {
    opacity: 0.9;
}

/* 按钮样式 */
.btn {
    padding: 8px 20px;
    border: none;
    border-radius: 6px;
    background: linear-gradient(180deg, #7A50FE, #A83DFE);
    color: #fff;
    border: 0.5px solid rgba(0, 9, 85, 0.8);
    cursor: pointer;
    font-weight: 600;
    transition: all .3s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.btn-full {
    width: 100%;
}

.btn-primary {
    background: linear-gradient(180deg, #7A50FE, #A83DFE);
}

.btn-secondary {
    background: rgba(0, 0, 0, .1);
    border: 1px solid rgb(123, 81, 255);
    box-shadow: rgb(123, 81, 255) 0px 0px 10px, rgb(85, 31, 255) 0px 0px 24px inset;
}

.btn-special {
    border: 1px solid #7b51ff;
    background: radial-gradient(105.65% 164.59% at 53.69% 150.57%, rgba(0, 0, 0, 0) 0%, rgba(123, 81, 255, .2) 100%), #100f15;
    box-shadow: 0 0 10px #7b51ff, 0 0 24px #551fff inset;
}

/* 卡片样式 */
.card {
    padding: 10px 20px 20px;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    position: relative;
    border: 1px solid rgba(196, 182, 251, 0);
    background: radial-gradient(49.31% 70.96% at 51.73% 103.31%, rgba(123, 81, 255, .5) 0%, rgba(0, 0, 0, 0) 100%), #17151e;
}

.card.line {
    border: 1px solid rgba(196, 182, 251, 0.2);
}

.card-title {
    margin: 0 0 10px 0;
    font-size: 16px;
}

/* 输入框样式 */
.input-field {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #475569;
    background: #0b0b0b;
    color: #fff;
    outline: none;
}

.input-field::placeholder {
    color: #cbd5e1;
}

/* 支付方式选择器 */
.payment-method-selector {
    display: flex;
    gap: 10px;
    --tw-shadow: inset 0px -.790123462677002px 5.925926208496094px 0px rgba(123, 81, 255, .75);
    --tw-shadow-colored: inset 0px -.790123462677002px 5.925926208496094px 0px var(--tw-shadow-color);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
    padding: 20px;
    margin: 120px 0 20px;
    border-radius: 20px;
}

.payment-option {
    flex: 1;
    text-align: center;
    padding: 15px 0;
    border-radius: 12px;
    font-size: 12px;
    cursor: pointer;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.payment-option.active {
    background: radial-gradient(118.57% 100% at 50.75% 0%, rgba(252, 156, 234, .75) 0%, rgba(109, 73, 231, 0) 100%), radial-gradient(64.33% 100% at 52.26% 0%, #f94cd9 0%, #6d49e7 62.5%, #5539b7 98.08%);
}

/* 进度条样式 */
.progress-container {
    margin: 20px 0 15px;
    position: relative;
}

.progress-bar {
    height: 32px;
    background: rgba(30, 30, 60, 0.8);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00a8ff, #9c27b0);
    border-radius: 12px;
    transition: width 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0, 168, 255, 0.7);
}

.progress-fill::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shine 2s infinite;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: 600;
    font-size: 0.9rem;
    color: #fff;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.7);
    z-index: 2;
}

/* 标题样式 */
.title {
    font-family: 'Orbitron', monospace;
    font-weight: 900;
    font-size: 32px;
    text-align: center;
    color: #00f3ff;
    text-transform: uppercase;
    letter-spacing: 4px;
    text-shadow:
        0 0 5px #00f3ff,
        0 0 10px #00f3ff,
        0 0 20px #00f3ff,
        0 0 40px #0077ff,
        0 0 80px #0077ff;
    animation: pulse 2s ease-in-out infinite alternate;
}

/* 模态框样式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    animation: fadeIn .3s;
}

.modal-content {
    padding: 25px;
    border-radius: 16px;
    min-width: 320px;
    max-width: 90%;
    text-align: center;
    border: 1px solid rgba(196, 182, 251, 0.2);
    background: radial-gradient(49.31% 70.96% at 51.73% 103.31%, rgba(123, 81, 255, .5) 0%, rgba(0, 0, 0, 0) 100%), #17151e;
    animation: scaleUp .3s;
}

/* 侧边栏样式 */
.drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 9998;
    overflow: hidden;
    animation: fadeIn .3s;
}

.drawer-content {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000;
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.5);
    transform: translateX(100%);
    animation: slideIn .3s forwards;
    overflow: hidden;
}

/* 顶部菜单样式 */
.top-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    border: 1px solid rgba(196, 182, 251, 0);
    background: radial-gradient(49.31% 70.96% at 51.73% 103.31%, rgba(123, 81, 255, .5) 0%, rgba(0, 0, 0, 0) 100%), #17151e;
    z-index: 9997;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.top-menu.active {
    transform: translateY(0);
}

.top-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9996;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.top-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.top-menu-item {
    padding: 12px 0;
    border-bottom: 1px solid #334155;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-menu-item:last-child {
    border-bottom: none;
}

.invite-link {
    color: #facc15;
    font-weight: 600;
    word-break: break-all;
    font-size: 14px;
}

.language-switch {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lang-btn {
    background: transparent;
    border: 1px solid #7A50FE;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.lang-btn.active {
    background: #7A50FE;
}

/* 加载动画 */
.spinner {
    width: 50px;
    height: 50px;
    border: 6px solid rgba(255, 255, 255, 0.1);
    border-top-color: #A83DFE;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* 提示信息样式 */
.alert-modal {
    position: fixed;
    top: 20px;
    left: 5%;
    width: 90%;
    background: #f56c6c;
    color: #fff;
    padding: 10px 25px;
    box-sizing: border-box;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    animation: slideDownFade 0.5s ease forwards;
    font-size: 14px;
    z-index: 9999999;
}

.alert-success {
    background: #67c23a;
}

/* 粒子效果 */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #00ffff;
    border-radius: 50%;
    box-shadow: 0 0 5px #00ffff;
    animation: float 5s infinite linear;
}

/* 动画定义 */
@keyframes slideIn {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes scaleUp {
    from {
        transform: scale(0.8);
    }

    to {
        transform: scale(1);
    }
}

@keyframes flashAnim {
    0% {
        box-shadow: 0 0 0 rgba(255, 255, 255, 0);
    }

    50% {
        box-shadow: 0 0 15px 5px rgba(255, 255, 255, 0.8);
    }

    100% {
        box-shadow: 0 0 0 rgba(255, 255, 255, 0);
    }
}

@keyframes flyUp {
    0% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateY(-50px);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes slideDownFade {
    0% {
        opacity: 0;
        transform: translateY(-50px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100px) translateX(20px);
        opacity: 0;
    }
}

@keyframes shine {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

@keyframes pulse {
    from {
        text-shadow:
            0 0 5px #00f3ff,
            0 0 10px #00f3ff,
            0 0 20px #00f3ff,
            0 0 40px #0077ff;
    }

    to {
        text-shadow:
            0 0 10px #00f3ff,
            0 0 20px #00f3ff,
            0 0 30px #00f3ff,
            0 0 50px #0077ff,
            0 0 70px #0077ff;
    }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .payment-method-selector {
        margin: 80px 0 20px;
    }

    .title {
        font-size: 24px;
    }
}

/* 投单区域高亮效果 */
.order-section-highlight {
    animation: highlight 2s ease;
}

@keyframes highlight {
    0% {
        box-shadow: 0 0 0 0 rgba(123, 81, 255, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(123, 81, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(123, 81, 255, 0);
    }
}

/* 项目简介模态框样式 */
.project-modal-content {
    max-width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 25px;
    border-radius: 16px;
    border: 1px solid rgba(196, 182, 251, 0.2);
    background: radial-gradient(49.31% 70.96% at 51.73% 103.31%, rgba(123, 81, 255, .5) 0%, rgba(0, 0, 0, 0) 100%), #17151e;
    text-align: left;
    animation: scaleUp .3s;
}

.project-modal-content h2 {
    color: #A83DFE;
    text-align: center;
    margin-bottom: 20px;
    font-size: 20px;
}


.project-modal-content .close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.project-modal-content .close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.plan-container {
    margin-top: 10px;
    background: rgba(255, 255, 255, 0.02);
    padding: 10px;
    border-radius: 12px;
}

.plan-row {
    padding: 8px 6px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.03);
    align-items: center;
    gap: 12px;
}

.plan-row:last-child {
    border-bottom: none;
}

.status-chip {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 12px;
    background: rgba(255, 255, 255, 0.03);
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.status-done {
    background: rgba(103, 194, 58, 0.12);
    color: #67C23A;
    border-color: rgba(103, 194, 58, 0.12);
}

.status-wait {
    background: rgba(230, 162, 60, 0.09);
    color: #E6A23C;
    border-color: rgba(230, 162, 60, 0.09);
}