/* my-account.css - 我的账户页面样式 */
.cY-my-account {
    max-width: 800px;
    margin: 2rem auto;
    background: #fff;
    border-radius: 1.5rem;
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
    padding: 2rem;
    font-family: system-ui, -apple-system, sans-serif;
}

/* 账户头部 */
.cY-account-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 1rem;
}
.cY-account-header h2 {
    margin: 0;
    color: #1f2937;
}
.cY-logout {
    color: #e63946;
    text-decoration: none;
    font-weight: 500;
}

/* 选项卡 */
.cY-account-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #f0f0f0;
}
.cY-tab {
    background: none;
    border: none;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    color: #6c7a91;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: 0.2s;
}
.cY-tab.active {
    color: #e63946;
    border-bottom-color: #e63946;
}

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

/* 表单 */
.cY-form p {
    margin-bottom: 1rem;
}
.cY-form label {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: 500;
    color: #2c3e50;
}
.cY-form input[type="text"],
.cY-form input[type="email"],
.cY-form input[type="password"] {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.8rem;
    font-size: 0.95rem;
    transition: 0.2s;
    box-sizing: border-box;
}
.cY-form input:focus {
    border-color: #e63946;
    box-shadow: 0 0 0 3px rgba(230,57,70,0.15);
    outline: none;
}
.cY-btn {
    background: #e63946;
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 2rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    margin-top: 0.5rem;
}
.cY-btn:hover {
    background: #c62a36;
}

/* 消息提示 */
.cY-notice {
    padding: 0.8rem 1rem;
    border-radius: 0.8rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}
.cY-notice.error {
    background: #ffeaea;
    color: #d00;
    border: 1px solid #f5c6cb;
}
.cY-notice.success {
    background: #e8f5e9;
    color: #2c7a4d;
    border: 1px solid #c3e6cb;
}

/* 订单表格 */
.cY-orders-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.cY-orders-table th,
.cY-orders-table td {
    padding: 0.8rem;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}
.cY-orders-table th {
    background: #f9fafb;
    color: #2c3e50;
    font-weight: 600;
}
.status-pending { color: #e67e22; }
.status-paid { color: #2980b9; }
.status-completed { color: #27ae60; }
.status-cancelled { color: #95a5a6; }

@media (max-width: 600px) {
    .cY-my-account {
        padding: 1rem;
        border-radius: 1rem;
    }
    .cY-orders-table {
        font-size: 0.8rem;
    }
    .cY-btn {
        width: 100%;
    }
}