* { margin: 0; padding: 0; box-sizing: border-box; }
body { 
    font-family: "Microsoft Yahei", "PingFang SC", sans-serif;
    background: linear-gradient(135deg, #f5f7ff 0%, #fff0f5 100%);
    min-height: 100vh;
    color: #333;
}

/* 顶部导航 */
.navbar {
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 12px rgba(147, 112, 219, 0.1);
    padding: 0 30px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}
.logo { font-size: 20px; font-weight: 600; background: linear-gradient(90deg, #9370db, #ff69b4); -webkit-background-clip: text; color: transparent; }
.nav-links a { margin-left: 20px; color: #666; text-decoration: none; font-size: 14px; }
.nav-links a:hover { color: #9370db; }

/* 主容器 */
.container { max-width: 1200px; margin: 0 auto; padding: 30px 20px; }

/* 首页Banner */
.banner {
    background: linear-gradient(135deg, #9370db 0%, #ff69b4 100%);
    border-radius: 20px;
    padding: 60px 40px;
    color: #fff;
    text-align: center;
    margin-bottom: 40px;
}
.banner h1 { font-size: 36px; margin-bottom: 15px; }
.banner p { font-size: 16px; opacity: 0.9; margin-bottom: 25px; }
.btn-primary {
    display: inline-block;
    background: #fff;
    color: #9370db;
    padding: 12px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.15); }

/* 卡片网格 */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 25px; }
.product-card {
    background: #fff;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(147, 112, 219, 0.08);
    transition: all 0.3s;
    border: 2px solid transparent;
}
.product-card:hover { transform: translateY(-5px); border-color: #c9b6ff; box-shadow: 0 8px 30px rgba(147, 112, 219, 0.15); }
.product-card h3 { font-size: 20px; margin-bottom: 15px; color: #333; }
.product-info { margin: 15px 0; }
.product-info li { list-style: none; padding: 8px 0; border-bottom: 1px dashed #eee; font-size: 14px; color: #666; display: flex; justify-content: space-between; }
.product-info li span:last-child { color: #333; font-weight: 500; }
.price-tag { text-align: center; margin: 20px 0; }
.price-tag .price { font-size: 32px; font-weight: 700; color: #ff69b4; }
.price-tag .price small { font-size: 14px; color: #999; font-weight: normal; }

/* 按钮 */
.btn {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}
.btn-purple { background: linear-gradient(90deg, #9370db, #b19cd9); color: #fff; width: 100%; }
.btn-purple:hover { opacity: 0.9; }
.btn-gray { background: #f0f0f0; color: #666; }
.btn-green { background: #52c41a; color: #fff; }
.btn-red { background: #ff4d4f; color: #fff; }
.btn-orange { background: #fa8c16; color: #fff; }

/* 登录注册页 */
.login-box {
    max-width: 400px;
    margin: 80px auto;
    background: #fff;
    border-radius: 20px;
    padding: 40px 35px;
    box-shadow: 0 10px 40px rgba(147, 112, 219, 0.12);
}
.login-box h2 { text-align: center; margin-bottom: 30px; color: #333; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-size: 14px; color: #555; }
.form-group input {
    width: 100%;
    height: 42px;
    padding: 0 15px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}
.form-group input:focus { border-color: #9370db; }
.tab-switch { display: flex; margin-bottom: 25px; border-bottom: 2px solid #f0f0f0; }
.tab-switch div { flex: 1; text-align: center; padding: 10px 0; cursor: pointer; color: #999; font-size: 15px; }
.tab-switch .active { color: #9370db; border-bottom: 2px solid #9370db; margin-bottom: -2px; }

/* 用户中心布局 */
.user-layout { display: flex; gap: 25px; min-height: calc(100vh - 120px); }
.sidebar {
    width: 220px;
    background: #fff;
    border-radius: 16px;
    padding: 20px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    height: fit-content;
}
.sidebar-menu li { list-style: none; }
.sidebar-menu a {
    display: block;
    padding: 14px 25px;
    color: #555;
    text-decoration: none;
    font-size: 14px;
    border-left: 3px solid transparent;
    transition: all 0.2s;
}
.sidebar-menu a:hover, .sidebar-menu .active a {
    background: #f5f0ff;
    color: #9370db;
    border-left-color: #9370db;
}
.main-content { flex: 1; background: #fff; border-radius: 16px; padding: 25px; box-shadow: 0 4px 20px rgba(0,0,0,0.05); }
.page-title { font-size: 20px; margin-bottom: 20px; padding-bottom: 15px; border-bottom: 1px solid #f0f0f0; }

/* 表格 */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { padding: 12px 15px; text-align: left; border-bottom: 1px solid #f0f0f0; font-size: 14px; }
.data-table th { background: #fafafa; color: #666; font-weight: 500; }
.status-tag { padding: 3px 10px; border-radius: 12px; font-size: 12px; display: inline-block; }
.status-normal { background: #f6ffed; color: #52c41a; }
.status-banned { background: #fff1f0; color: #ff4d4f; }
.status-expired { background: #fff7e6; color: #fa8c16; }
.status-pending { background: #e6f7ff; color: #1890ff; }

/* 移动端适配 */
@media (max-width: 768px) {
    .navbar { padding: 0 15px; }
    .banner { padding: 40px 20px; }
    .banner h1 { font-size: 26px; }
    .user-layout { flex-direction: column; }
    .sidebar { width: 100%; display: flex; overflow-x: auto; padding: 10px; }
    .sidebar-menu { display: flex; }
    .sidebar-menu a { border-left: none; border-bottom: 3px solid transparent; white-space: nowrap; }
    .sidebar-menu a:hover, .sidebar-menu .active a { border-left: none; border-bottom-color: #9370db; }
    .card-grid { grid-template-columns: 1fr; }
    .data-table { display: block; overflow-x: auto; }
}