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

body {
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-size: cover;
    min-height: 100vh;
    max-width: 768px;
    margin: 0 auto;
}

body.has-bg-image {
    background-image: url();
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.container {
    max-width: 400px;
    margin: 0 auto;
    padding: 40px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 150px);
}

.card {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    padding: 30px 20px;
    width: 100%;
}

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

.welcome-icon {
    font-size: 36px;
    color: #3498db;
    margin-bottom: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #f0f8ff;
    border: 2px solid #3498db;
}

.welcome h3 {
    font-size: 20px;
    color: #333;
}

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

.form-group i,
.form-group::before {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 16px;
}

.form-group::before {
    content: attr(data-icon);
}

.form-control {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
}

.form-control:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.agreement {
    margin: 20px 0;
    font-size: 12px;
}

.agreement input {
    margin-right: 8px;
}

.agreement a {
    color: #3498db;
    text-decoration: none;
}

.btn {
    display: inline-block;
    padding:10px 15px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    width: 100%;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2c5282 0%, #4299e1 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 82, 130, 0.3);
}

.footer {
    text-align: center;
    margin-top: 30px;
    padding-bottom: 20px;
}

.footer img {
    width: 60px;
    height: 60px;
}

.footer p {
    color: white;
    font-size: 12px;
    margin-top: 10px;
}

.message {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 15px;
    border-radius: 8px;
    z-index: 9999;
    max-width: 90%;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal.show {
    display: flex;
}

.modal-content {
    background-color: white;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    max-height: 80vh;
    overflow: hidden;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #ddd;
}

.modal-header h3 {
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
}

.modal-body {
    padding: 15px;
    max-height: 60vh;
    overflow-y: auto;
}

/* 客服联系弹窗样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.customer-service-modal {
    background-color: white;
    border-radius: 12px;
    padding: 30px;
    width: 90%;
    max-width: 350px;
    text-align: center;
    position: relative;
}

.modal-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    background: none;
    border: none;
}

.modal-icon {
    font-size: 50px;
    margin-bottom: 15px;
}

.customer-service-modal h3 {
    color: #333;
    margin-bottom: 10px;
}

.customer-service-modal p {
    color: #666;
    margin-bottom: 20px;
}

.modal-actions {
    display: flex;
    gap: 10px;
}

.modal-actions .btn {
    flex: 1;
}

.customer-service-modal a {
    text-decoration: none;
}

.btn-secondary {
    background-color: #f5f5f5;
    color: #333;
}

.btn-secondary:hover {
    background-color: #e8e8e8;
}