/* 金黑商城 - 样式 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
    color: #333;
    line-height: 1.6;
    background: #f5f5f5;
}

a {
    text-decoration: none;
    color: inherit;
}

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

.shop-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #fff;
}

/* Shop Header */
.shop-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.shop-header .header-top {
    background: #f5f5f5;
    padding: 8px 0;
}

.top-nav {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
}

.top-nav a {
    color: #666;
    font-size: 14px;
}

.top-nav a:hover {
    color: #e63946;
}

.shop-header .header-main {
    padding: 15px 0;
}

.shop-header .header-main-inner {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-area img {
    height: 45px;
}

/* Logo 文字样式 */
.logo-text {
    font-size: 22px;
    font-weight: 700;
    color: #e63946;
    text-decoration: none;
    letter-spacing: 2px;
}

.logo-text:hover {
    color: #c1121f;
}

.logo-area {
    display: flex;
    align-items: center;
}

.search-area {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.search-area form {
    display: flex;
}

.search-area input {
    flex: 1;
    padding: 10px 15px;
    border: 2px solid #e63946;
    border-radius: 25px 0 0 25px;
    font-size: 14px;
}

.search-area button {
    padding: 10px 20px;
    background: #e63946;
    color: #fff;
    border: none;
    border-radius: 0 25px 25px 0;
    cursor: pointer;
}

.shop-header .header-nav {
    background: #333;
}

.nav-list {
    display: flex;
    list-style: none;
    justify-content: center;
    gap: 35px;
    margin: 0;
    padding: 0;
}

.nav-list li {
    display: inline-block;
}

.nav-list a {
    display: block;
    padding: 12px 0;
    color: #fff;
    font-size: 14px;
}

.nav-list a:hover {
    color: #e63946;
}

/* Banner Section */
.banner-section {
    position: relative;
    height: 380px;
    overflow: hidden;
}

.banner-item {
    height: 100%;
    display: flex;
    align-items: center;
}

.banner-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    color: #fff;
}

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

.banner-content p {
    font-size: 16px;
    margin-bottom: 20px;
    opacity: 0.95;
    max-width: 500px;
}

.btn-banner {
    display: inline-block;
    padding: 10px 25px;
    background: #fff;
    color: #333;
    border-radius: 25px;
}

.btn-banner:hover {
    background: #e63946;
    color: #fff;
}

.banner-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    width: 10px;
    height: 10px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
}

.dot.active {
    background: #fff;
}

/* Section Title */
.section-title {
    text-align: center;
    font-size: 22px;
    color: #333;
    margin-bottom: 25px;
}

/* Category Section */
.category-section {
    padding: 50px 0;
    background: #fff;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.category-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 30px 15px;
    text-align: center;
    border-radius: 10px;
    color: #fff;
    transition: transform 0.3s;
}

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

.cat-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.category-card h3 {
    font-size: 16px;
    margin-bottom: 5px;
}

.category-card p {
    font-size: 13px;
    opacity: 0.9;
}

/* Products Section */
.products-section {
    padding: 40px 0;
    background: #fff;
}

.products-section.bg-light {
    background: #f8f9fa;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.product-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

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

.product-image {
    display: block;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.product-info {
    padding: 15px;
}

.product-info h4 {
    font-size: 14px;
    line-height: 1.4;
    height: 40px;
    overflow: hidden;
    margin-bottom: 10px;
}

.product-info h4 a {
    color: #333;
}

.product-info h4 a:hover {
    color: #e63946;
}

.product-price {
    margin-bottom: 10px;
}

.product-price .price {
    font-size: 18px;
    color: #e63946;
    font-weight: bold;
}

.btn-buy {
    display: block;
    padding: 8px;
    background: #e63946;
    color: #fff;
    text-align: center;
    border-radius: 5px;
    font-size: 14px;
}

/* Shop Footer */
.shop-footer {
    background: #333;
    color: #fff;
    margin-top: auto;
}

.shop-footer .footer-bottom {
    background: rgba(0,0,0,0.3);
    padding: 15px 0;
    text-align: center;
    font-size: 13px;
}

/* Login Page */
.login-section {
    padding: 50px 20px;
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
}

.login-box {
    max-width: 600px;
    width: 100%;
    background: #fff;
    padding: 40px 45px;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
}

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

.login-header h2 {
    font-size: 24px;
    margin-bottom: 8px;
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
    color: #555;
}

.login-form input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.verify-code {
    display: flex;
    gap: 12px;
}

.verify-code input {
    flex: 1;
}

.verify-code .btn-code {
    padding: 14px 16px;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    color: #666;
    white-space: nowrap;
    cursor: pointer;
}

.form-group.check {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.form-group.check input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.form-group.check label {
    margin: 0;
    font-weight: normal;
    font-size: 13px;
}

.forgot {
    margin-left: auto;
    font-size: 13px;
    color: #e63946;
}

.login-form input:focus {
    outline: none;
    border-color: #e63946;
}

.btn-submit {
    width: 100%;
    padding: 12px;
    background: #e63946;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 15px;
    cursor: pointer;
}

.login-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 14px;
}

.login-footer a {
    color: #e63946;
}

/* Category Page */
.page-header-simple {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    padding: 35px 0;
    color: #fff;
    text-align: center;
}

.page-header-simple h1 {
    font-size: 28px;
    margin-bottom: 10px;
}

.bread-crumb {
    font-size: 14px;
    opacity: 0.9;
}

.bread-crumb a {
    color: #fff;
}

.category-page {
    padding: 35px 0;
    background: #f5f5f5;
}

.filter-item {
    margin-bottom: 15px;
}

.filter-item h4 {
    font-size: 14px;
    margin-bottom: 8px;
    color: #888;
}

.filter-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.filter-list li {
    padding: 5px 14px;
    background: #f5f5f5;
    border-radius: 20px;
    font-size: 13px;
}

.filter-list li.active {
    background: #e63946;
    color: #fff;
}

.filter-list li.active a {
    color: #fff;
}

/* Product Detail */
.product-detail {
    padding: 35px 0;
    background: #f5f5f5;
}

.product-main {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 35px;
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.product-gallery .main-image {
    background: #f5f5f5;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 12px;
}

.product-gallery .main-image img {
    width: 100%;
    height: 380px;
    object-fit: cover;
}

.thumb-list {
    display: flex;
    gap: 10px;
}

.thumb-item {
    width: 70px;
    height: 70px;
    background: #f5f5f5;
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
}

.thumb-item.active {
    border-color: #e63946;
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info h1 {
    font-size: 22px;
    margin-bottom: 12px;
}

.product-price-detail {
    background: #fff5f5;
    padding: 18px;
    border-radius: 10px;
    margin-bottom: 18px;
}

.product-price-detail .price {
    font-size: 28px;
    color: #e63946;
    font-weight: bold;
}

.spec-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.spec-options .option {
    padding: 6px 16px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #fff;
    cursor: pointer;
}

.spec-options .option:hover {
    border-color: #e63946;
}

.spec-options .option.active {
    background: #e63946;
    color: #fff;
    border-color: #e63946;
}

.product-count {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.count-input {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.count-input button {
    width: 32px;
    height: 32px;
    border: none;
    background: #f5f5f5;
    cursor: pointer;
}

.count-input input {
    width: 50px;
    height: 32px;
    text-align: center;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
}

.product-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
}

.btn-add-cart {
    flex: 1;
    padding: 12px;
    background: #ff6b6b;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
}

.btn-buy-now {
    flex: 1;
    padding: 12px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 992px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-main {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .banner-section {
        height: 300px;
    }

    .banner-content h2 {
        font-size: 26px;
    }

    .nav-list {
        gap: 20px;
    }

    .search-area {
        margin: 0 15px;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }
}
