/* FakaFull 发卡系统前台样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    color: #333;
    background: #f5f7fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 15px 0;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #409eff;
}

.nav {
    display: flex;
    gap: 30px;
}

.nav a {
    color: #606266;
    text-decoration: none;
    transition: color 0.3s;
}

.nav a:hover {
    color: #409eff;
}

.user-area {
    display: flex;
    gap: 15px;
}

.user-area a {
    color: #606266;
    text-decoration: none;
}

/* Banner */
.banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 60px 0;
    text-align: center;
}

.banner h1 {
    font-size: 36px;
    margin-bottom: 15px;
}

.banner p {
    font-size: 18px;
    opacity: 0.9;
}

/* 分类导航 */
.category-nav {
    display: flex;
    gap: 15px;
    padding: 20px 0;
    flex-wrap: wrap;
}

.category-nav a {
    padding: 8px 20px;
    background: #fff;
    border-radius: 20px;
    color: #606266;
    text-decoration: none;
    transition: all 0.3s;
}

.category-nav a:hover,
.category-nav a.active {
    background: #409eff;
    color: #fff;
}

/* 商品网格 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.product-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

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

.product-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.product-info {
    padding: 15px;
}

.product-info h3 {
    font-size: 16px;
    margin-bottom: 10px;
}

.product-info .price {
    color: #f56c6c;
    font-size: 20px;
    font-weight: bold;
}

.product-info .original-price {
    color: #909399;
    text-decoration: line-through;
    font-size: 14px;
    margin-left: 10px;
}

.product-info .btn {
    display: block;
    margin-top: 10px;
    padding: 10px;
    background: #409eff;
    color: #fff;
    text-align: center;
    border-radius: 4px;
    text-decoration: none;
}

/* Section */
.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.section-title h2 {
    font-size: 24px;
}

.section-title .more {
    color: #409eff;
    text-decoration: none;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: #fff;
    padding: 30px 0;
    text-align: center;
    margin-top: 40px;
}

/* 登录表单 */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-box {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    width: 400px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

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

.login-header h1 {
    color: #409eff;
    margin-bottom: 10px;
}

.form-item {
    margin-bottom: 20px;
}

.form-item input {
    width: 100%;
    padding: 12px;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    font-size: 14px;
}

.form-item input:focus {
    outline: none;
    border-color: #409eff;
}

.login-btn {
    width: 100%;
    padding: 12px;
    background: #409eff;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
}

.login-btn:hover {
    background: #66b1ff;
}

/* 表格 */
.table {
    width: 100%;
    background: #fff;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.table th {
    background: #f5f7fa;
    font-weight: 500;
}

/* 按钮 */
.btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: #409eff;
    color: #fff;
}

.btn-success {
    background: #67c23a;
    color: #fff;
}

.btn-danger {
    background: #f56c6c;
    color: #fff;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    padding: 20px 0;
    gap: 10px;
}

.pagination a {
    padding: 8px 12px;
    background: #fff;
    border: 1px solid #dcdfe6;
    color: #606266;
    text-decoration: none;
    border-radius: 4px;
}

.pagination a.active {
    background: #409eff;
    color: #fff;
    border-color: #409eff;
}