/* Gozastore 简洁市场主题 */

/* 全局样式 */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    font-size: 14px;
    color: #333;
    background-color: #f5f6f7;
    line-height: 1.6;
}

a {
    color: #23a1d1;
    transition: color 0.2s;
}

a:hover {
    color: #1a8fb8;
}

/* 顶部导航 */
#top {
    background: #fff;
    border-bottom: 1px solid #e9ecef;
    padding: 8px 0;
    margin-bottom: 0;
}

#top-links ul li a {
    color: #666;
    font-weight: 500;
}

#top-links ul li a:hover {
    color: #23a1d1;
}

/* 头部 */
#header {
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    padding: 15px 0;
    margin-bottom: 20px;
}

/* Logo */
#logo {
    font-size: 24px;
    font-weight: 700;
    color: #23a1d1;
}

/* 搜索框 */
#search {
    margin: 10px 0;
}

#search .input-group input {
    border: 2px solid #e9ecef;
    border-radius: 6px 0 0 6px;
    padding: 10px 15px;
}

#search .input-group input:focus {
    border-color: #23a1d1;
    outline: none;
}

#search .btn {
    background: linear-gradient(135deg, #23a1d1 0%, #1a8fb8 100%);
    border: none;
    border-radius: 0 6px 6px 0;
    padding: 10px 25px;
    font-weight: 600;
}

#search .btn:hover {
    background: linear-gradient(135deg, #1a8fb8 0%, #157a9f 100%);
}

/* 导航菜单 */
.navbar {
    background: linear-gradient(135deg, #23a1d1 0%, #1a8fb8 100%);
    border: none;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(35,161,209,0.3);
}

.navbar-nav > li > a {
    color: #fff;
    font-weight: 500;
    padding: 12px 18px;
    transition: background 0.2s;
    border-radius: 4px;
    margin: 5px 3px;
}

.navbar-nav > li > a:hover {
    background: rgba(255,255,255,0.15);
}

/* 侧边栏 */
.column-left {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    padding: 15px;
    margin-bottom: 20px;
}

.column-left h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #23a1d1;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

/* 商品卡片 */
.product-thumb {
    background: #fff;
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    margin-bottom: 25px;
    overflow: hidden;
    height: 100%;
}

.product-thumb:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.product-thumb .image {
    padding: 20px;
    background: #fff;
    position: relative;
    overflow: hidden;
}

.product-thumb .image img {
    border-radius: 6px;
    transition: transform 0.3s;
}

.product-thumb:hover .image img {
    transform: scale(1.05);
}

.product-thumb .caption {
    padding: 15px 18px 18px;
    border-top: 1px solid #f0f0f0;
}

.product-thumb .name {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.4;
    min-height: 42px;
}

.product-thumb .name a {
    color: #333;
}

.product-thumb .name a:hover {
    color: #23a1d1;
}

.product-thumb .description {
    font-size: 13px;
    color: #888;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-thumb .price {
    font-size: 20px;
    font-weight: 700;
    color: #23a1d1;
    margin-bottom: 12px;
}

.product-thumb .price-tax {
    font-size: 12px;
    color: #999;
    margin-left: 5px;
}

.product-thumb .price-old {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
    margin-right: 8px;
}

.product-thumb .price-new {
    font-size: 20px;
    font-weight: 700;
    color: #e74c3c;
}

/* 按钮组 */
.product-thumb .button-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.product-thumb .btn {
    flex: 1;
    min-width: 80px;
    border-radius: 5px;
    font-weight: 500;
    padding: 8px 12px;
    font-size: 13px;
    transition: all 0.2s;
}

.product-thumb .btn-primary {
    background: linear-gradient(135deg, #23a1d1 0%, #1a8fb8 100%);
    border: none;
}

.product-thumb .btn-primary:hover {
    background: linear-gradient(135deg, #1a8fb8 0%, #157a9f 100%);
    transform: translateY(-1px);
}

.product-thumb .btn-success {
    background: linear-gradient(135deg, #27ae60 0%, #219a52 100%);
    border: none;
}

.product-thumb .btn-success:hover {
    background: linear-gradient(135deg, #219a52 0%, #1c8545 100%);
    transform: translateY(-1px);
}

/* 模块标题 */
h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}

h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(135deg, #23a1d1 0%, #1a8fb8 100%);
    border-radius: 2px;
}

/* 页脚 */
footer {
    background: linear-gradient(135deg, #2d3436 0%, #353b48 100%);
    color: #b2bec3;
    margin-top: 50px;
    padding: 50px 0 20px;
}

footer h5 {
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: #23a1d1;
}

footer ul li {
    margin-bottom: 10px;
}

footer a {
    color: #b2bec3;
    transition: color 0.2s;
}

footer a:hover {
    color: #23a1d1;
}

footer hr {
    border-color: #444;
    margin: 30px 0;
}

footer p {
    color: #888;
    font-size: 13px;
}

/* 面包屑 */
.breadcrumb {
    background: #fff;
    border-radius: 6px;
    padding: 12px 15px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.breadcrumb li a {
    color: #23a1d1;
}

/* 分页 */
.pagination {
    margin: 20px 0;
}

.pagination > li > a,
.pagination > li > span {
    color: #23a1d1;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    margin: 0 3px;
    padding: 8px 14px;
    transition: all 0.2s;
}

.pagination > li > a:hover,
.pagination > .active > a {
    background: #23a1d1;
    color: #fff;
    border-color: #23a1d1;
}

/* 表单 */
.form-control {
    border: 1px solid #e9ecef;
    border-radius: 5px;
    padding: 10px 14px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.form-control:focus {
    border-color: #23a1d1;
    outline: none;
    box-shadow: 0 0 0 3px rgba(35,161,209,0.1);
}

/* 标签 */
.label {
    border-radius: 4px;
    padding: 5px 10px;
    font-weight: 500;
}

/* 容器优化 */
.container {
    max-width: 1200px;
}

/* 网格优化 */
.product-layout {
    margin: 0 -10px;
}

.product-layout .col-sm-3,
.product-layout .col-sm-4 {
    padding: 10px;
}

/* 响应式优化 */
@media (max-width: 768px) {
    .product-thumb {
        margin-bottom: 15px;
    }
    
    #header .row {
        text-align: center;
    }
    
    #logo, #search, #cart {
        margin-bottom: 15px;
    }
}

/* 加载动画 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.product-thumb {
    animation: fadeIn 0.4s ease-out;
}

/* 购物车图标 */
#cart .btn {
    background: #fff;
    border: 2px solid #e9ecef;
    color: #333;
    border-radius: 6px;
    padding: 10px 18px;
    font-weight: 600;
}

#cart .btn:hover {
    border-color: #23a1d1;
    color: #23a1d1;
}

/* 分类列表 */
.category-list .list-group-item {
    border: none;
    border-radius: 5px;
    margin-bottom: 5px;
    padding: 10px 15px;
    color: #666;
    transition: all 0.2s;
}

.category-list .list-group-item:hover {
    background: #f8f9fa;
    color: #23a1d1;
    padding-left: 20px;
}

.category-list .list-group-item.active {
    background: linear-gradient(135deg, #23a1d1 0%, #1a8fb8 100%);
    border-color: #23a1d1;
}
