/* SkyfellerCms 前台样式 */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
}

* { box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
    margin: 0;
    padding: 0;
}

a { color: var(--primary-color); text-decoration: none; }
a:hover { color: #0056b3; text-decoration: underline; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }

/* 头部 */
.header { background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.header-inner { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; }
.logo { font-size: 24px; font-weight: bold; color: var(--dark-color); }
.nav { display: flex; gap: 20px; }
.nav a { color: #666; padding: 8px 15px; border-radius: 4px; }
.nav a:hover, .nav a.active { background: var(--primary-color); color: #fff; text-decoration: none; }

/* 轮播 */
.banner { background: linear-gradient(135deg, var(--primary-color), #6610f2); color: #fff; padding: 60px 0; text-align: center; }
.banner h1 { font-size: 36px; margin-bottom: 15px; }
.banner p { font-size: 18px; opacity: 0.9; }

/* 内容区 */
.main { padding: 30px 0; }
.section { background: #fff; border-radius: 8px; padding: 20px; margin-bottom: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.section-title { font-size: 20px; font-weight: bold; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid var(--primary-color); }

/* 列表 */
.list-item { padding: 15px 0; border-bottom: 1px solid #eee; }
.list-item:last-child { border-bottom: none; }
.list-item h3 { font-size: 16px; margin-bottom: 8px; }
.list-item .meta { color: #999; font-size: 12px; }

/* 产品网格 */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.product-item { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.1); transition: transform 0.3s; }
.product-item:hover { transform: translateY(-5px); }
.product-item img { width: 100%; height: 200px; object-fit: cover; }
.product-item .info { padding: 15px; }
.product-item h3 { font-size: 16px; margin-bottom: 8px; }
.product-item .price { color: var(--danger-color); font-size: 18px; font-weight: bold; }

/* 分页 */
.pagination { display: flex; justify-content: center; gap: 5px; margin-top: 20px; }
.pagination a, .pagination span { padding: 8px 15px; border: 1px solid #ddd; border-radius: 4px; }
.pagination a:hover { background: var(--primary-color); color: #fff; border-color: var(--primary-color); text-decoration: none; }
.pagination .current { background: var(--primary-color); color: #fff; border-color: var(--primary-color); }

/* 表单 */
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 500; }
.form-control { width: 100%; padding: 10px 12px; border: 1px solid #ddd; border-radius: 4px; font-size: 14px; }
.form-control:focus { border-color: var(--primary-color); outline: none; box-shadow: 0 0 0 3px rgba(0,123,255,0.1); }
textarea.form-control { resize: vertical; min-height: 100px; }

.btn { display: inline-block; padding: 10px 20px; border: none; border-radius: 4px; cursor: pointer; font-size: 14px; text-align: center; }
.btn-primary { background: var(--primary-color); color: #fff; }
.btn-primary:hover { background: #0056b3; color: #fff; text-decoration: none; }
.btn-secondary { background: var(--secondary-color); color: #fff; }

/* 底部 */
.footer { background: var(--dark-color); color: #aaa; padding: 30px 0; text-align: center; margin-top: 30px; }
.footer a { color: #fff; }

/* 响应式 */
@media (max-width: 768px) {
    .header-inner { flex-direction: column; gap: 15px; }
    .nav { flex-wrap: wrap; justify-content: center; }
    .banner h1 { font-size: 24px; }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
}
