/* nexx3/user/common.css - 全站共享样式 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    background: #0a0a1a;
    color: #eaecef;
    min-height: 100vh;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-bottom: calc(70px + env(safe-area-inset-bottom));
}
@media (min-width: 768px) {
    body {
        max-width: 500px;
        margin: 0 auto;
        position: relative;
    }
    body::before {
        content: '';
        position: fixed;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 500px;
        height: 100%;
        background: linear-gradient(180deg, #0a0a1a 0%, #1a1a3a 50%, #0f0f2f 100%);
        box-shadow: 0 0 60px rgba(0, 212, 255, 0.15);
        z-index: -1;
    }
}

.page-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 0 15px;
}

.header {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 10, 26, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-left { font-size: 18px; font-weight: 600; color: #00d4ff; }
.header-right { font-size: 22px; cursor: pointer; color: #eaecef; }
.header-right:hover { opacity: 0.8; }

.card {
    background: #1a1a3a;
    border-radius: 15px;
    padding: 18px;
    border: 1px solid rgba(0, 212, 255, 0.08);
    margin-bottom: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}
.card-title { font-size: 16px; font-weight: 600; margin-bottom: 15px; color: #00d4ff; }

.content { padding: 15px; }

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn-primary {
    background: linear-gradient(135deg, #00d4ff, #00ff88);
    color: #0a0a1a;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 5px 20px rgba(0, 212, 255, 0.4); }
.btn-danger {
    background: linear-gradient(135deg, #f6465d, #ee5a24);
    color: #fff;
}

.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; color: #eaecef; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.3);
    color: #eaecef;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: #00d4ff;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
}
.form-group input::placeholder, .form-group textarea::placeholder { color: #5a6484; }

.btn-submit {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #00d4ff, #00ff88);
    color: #0a0a1a;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn-submit:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 5px 20px rgba(0, 212, 255, 0.4); }
.btn-submit:disabled { opacity: 0.5; cursor: not-allowed; }

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #848e9c;
    font-size: 14px;
}
.empty-state-icon { font-size: 48px; margin-bottom: 15px; }

.up-color { color: #0ecb81; }
.down-color { color: #f6465d; }

.message-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.message-modal.active { display: flex; }
.message-content {
    background: #1a1a3a;
    border-radius: 20px;
    padding: 30px;
    width: 100%;
    max-width: 320px;
    text-align: center;
    border: 1px solid rgba(0, 212, 255, 0.15);
}
.message-icon { font-size: 48px; margin-bottom: 15px; }
.message-text { font-size: 15px; margin-bottom: 20px; color: #eaecef; }
.message-btn {
    padding: 12px 30px;
    background: linear-gradient(135deg, #00d4ff, #00ff88);
    color: #0a0a1a;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
