/* 重置与基础样式 */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f7;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* 页头样式 */
.page-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.warning-text {
    color: #d93025;
    font-weight: bold;
    margin-top: 15px;
}

/* 账号卡片布局 */
.accounts-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.account-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.account-card:hover {
    transform: translateY(-5px);
}

.account-name {
    font-size: 1.2em;
    margin-bottom: 15px;
    color: #1d1d1f;
}

.account-name.locked {
    color: #d93025;
}

.status-locked {
    color: #d93025;
    font-weight: bold;
}

.status-normal {
    color: #34c759;
    font-weight: bold;
}

/* 按钮样式 */
.account-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.btn {
    padding: 10px 15px;
    border: none;
    border-radius: 8px;
    background: #007aff;
    color: white;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.2s ease;
    flex: 1;
}

.btn:hover {
    background: #005bb7;
}

.btn.btn-secondary {
    background: #8e8e93;
}

.btn.btn-secondary:hover {
    background: #6b6b70;
}

.modal-hidden {
    display: none;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 999;
}

.order-email-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    width: 90%;
    max-width: 420px;
    z-index: 1000;
}

.modal-title {
    margin: 0 0 12px 0;
    font-size: 1.1em;
    color: #1d1d1f;
}

.order-email-input {
    padding: 10px 12px;
    border: 1px solid #d2d2d7;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
}

.order-email-input:focus {
    border-color: #007aff;
}

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

/* 弹窗样式 */
.promotion-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    width: 90%;
    max-width: 400px;
    z-index: 1000;
    display: block;
}

.modal-content {
    padding: 25px;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    color: #1d1d1f;
}

/* 响应式设计 */
@media (max-width: 768px) {
    body {
        padding: 15px;
    }

    .accounts-container {
        grid-template-columns: 1fr;
    }

    .account-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 15px;
    }

    .account-card {
        padding: 15px;
    }

    .promotion-modal {
        width: 95%;
    }
}
