
/* 基础样式 */
.section {
    padding-top: 100px;
    padding-bottom: 100px;
}

.pt-100 {
    padding-top: 100px;
}

.pb-100 {
    padding-bottom: 100px;
}

/* 顶部栏 */
.top-bar {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    font-size: 13px;
    padding: 8px 0;
}

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

.top-bar__left span {
    color: #666;
}

.top-bar__right {
    display: flex;
    gap: 20px;
}

.top-bar__right a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.top-bar__right a:hover {
    color: #007bff;
}

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

.header__wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
}

.header__logo img {
    height: 50px;
}

.header__search {
    flex: 1;
    max-width: 500px;
    margin: 0 40px;
}

.header__search form {
    display: flex;
    border: 2px solid #007bff;
    border-radius: 30px;
    overflow: hidden;
}

.header__search input {
    flex: 1;
    border: none;
    padding: 12px 20px;
    font-size: 14px;
    outline: none;
}

.header__search button {
    background: #007bff;
    color: #fff;
    border: none;
    padding: 0 25px;
    cursor: pointer;
    transition: background 0.3s;
}

.header__search button:hover {
    background: #0056b3;
}

.header__nav {
    display: flex;
    gap: 40px;
}

.header__nav a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.header__nav a:hover,
.header__nav a.active {
    color: #007bff;
}

.header__nav i {
    font-size: 16px;
}

.header__actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header__cart {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #333;
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s;
}

.header__cart:hover {
    color: #007bff;
}

.header__cart-text {
    font-size: 14px;
}

.header__cart-badge {
    background: #dc3545;
    color: #fff;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

/* 分类导航 */
.category-nav {
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.category-nav__wrapper {
    display: flex;
    align-items: center;
    padding: 15px 0;
}

.category-nav__title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    margin-right: 30px;
}

.category-nav__list {
    display: flex;
    gap: 20px;
}

.category-nav__list a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.category-nav__list a:hover {
    color: #007bff;
}

/* 不规则轮播图区域 */
.hero-section {
    margin-top: 30px;
    margin-bottom: 30px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 15px;
    height: 400px;
}

/* 主轮播图 */
.hero-main {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.hero-slider {
    height: 100%;
    position: relative;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-slide__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: #fff;
}

.hero-slide__content h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

.hero-slide__content p {
    font-size: 16px;
}

.hero-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.hero-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.hero-indicator.active {
    background: #fff;
    transform: scale(1.2);
}

/* 右侧小图组 */
.hero-side {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.hero-side-large {
    flex: 1;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.hero-side-small {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    height: 165px;
}

.hero-side-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.hero-side-small .hero-side-item {
    height: 100%;
}

.hero-side-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.hero-side-item:hover img {
    transform: scale(1.05);
}

.hero-side__tag {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
}

.hero-side__tag:nth-child(1) {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.hero-side-item:nth-child(2) .hero-side__tag {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.hero-side__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: #fff;
}

.hero-side__content h4 {
    font-size: 18px;
    margin-bottom: 5px;
}

.hero-side__content p {
    font-size: 20px;
    font-weight: 600;
    color: #ff6b6b;
}

/* 快捷分类入口 */
.quick-categories {
    margin-bottom: 40px;
}

.quick-categories__grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 20px;
}

.quick-cat-item {
    text-align: center;
    padding: 20px 10px;
    border-radius: 12px;
    background: #f8f9fa;
    transition: all 0.3s;
    text-decoration: none;
    color: #333;
}

.quick-cat-item:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.quick-cat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 10px;
    transition: all 0.3s;
}

.quick-cat-item:hover .quick-cat-icon {
    background: #fff;
    color: #667eea;
}

.quick-cat-item span {
    font-size: 14px;
    font-weight: 500;
}

/* 数据统计横幅 */
.stats-banner {
    padding: 50px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin-bottom: 50px;
}

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

.stat-item {
    display: flex;
    align-items: center;
    gap: 20px;
    color: #fff;
}

.stat-icon {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.stat-content h3 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-content p {
    font-size: 16px;
    opacity: 0.9;
}

/* Section Title */
.section__title {
    text-align: center;
    margin-bottom: 50px;
}

.section__title h2 {
    font-size: 36px;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section__title p {
    color: #666;
    font-size: 16px;
}

/* 商品卡片 */
.product-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
}

.product-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transform: translateY(-5px);
}

.product-card__image {
    position: relative;
    padding-top: 100%;
    overflow: hidden;
}

.product-card__image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-card:hover .product-card__image img {
    transform: scale(1.08);
}

.product-card__badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 15px;
    border-radius: 20px;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    z-index: 1;
}

.product-card__badge--recommend {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.product-card__badge--hot {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.product-card__badge--new {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.product-card__content {
    padding: 15px;
}

.product-card__title {
    font-size: 16px;
    margin-bottom: 10px;
    height: 44px;
    overflow: hidden;
}

.product-card__title a {
    color: #333;
    text-decoration: none;
}

.product-card__title a:hover {
    color: #007bff;
}

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

.product-card__current {
    color: #ff6b6b;
    font-size: 24px;
    font-weight: 700;
}

.product-card__original {
    color: #999;
    text-decoration: line-through;
    margin-left: 10px;
    font-size: 14px;
}

.product-card__meta {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.product-card__btn {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.product-card__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* 侧边栏 */
.sidebar__widget {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.sidebar__widget h3 {
    margin-bottom: 15px;
    font-size: 18px;
}

.sidebar__category {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar__category li {
    margin-bottom: 8px;
}

.sidebar__category a {
    color: #333;
    text-decoration: none;
    display: block;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background 0.3s;
}

.sidebar__category a:hover,
.sidebar__category a.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.sidebar__category ul {
    list-style: none;
    padding-left: 20px;
    margin-top: 5px;
}

/* 商品列表 */
.goods-list__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.goods-list__count {
    color: #666;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.pagination a,
.pagination span {
    padding: 8px 16px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
}

.pagination a:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-color: transparent;
}

.pagination__current {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-color: transparent;
}

/* 商品详情 */
.product-gallery {
    margin-bottom: 20px;
}

.product-gallery__main {
    margin-bottom: 15px;
}

.product-gallery__main img {
    width: 100%;
    border-radius: 8px;
}

.product-gallery__thumbs {
    display: flex;
    gap: 10px;
}

.product-gallery__thumbs img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
}

.product-gallery__thumbs img:hover {
    border-color: #007bff;
}

.product-info__title {
    font-size: 28px;
    margin-bottom: 15px;
}

.product-info__price {
    margin-bottom: 15px;
}

.product-info__current {
    color: #ff6b6b;
    font-size: 36px;
    font-weight: 700;
}

.product-info__original {
    color: #999;
    text-decoration: line-through;
    margin-left: 15px;
    font-size: 18px;
}

.product-info__meta {
    color: #666;
    margin-bottom: 20px;
}

.product-info__meta span {
    margin-right: 20px;
}

.product-info__specs {
    margin-bottom: 20px;
}

.product-info__specs-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.product-info__specs-list span {
    padding: 8px 16px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    cursor: pointer;
}

.product-info__specs-list span:hover {
    border-color: #007bff;
    color: #007bff;
}

.product-info__quantity {
    margin-bottom: 20px;
}

.quantity-selector {
    display: flex;
    align-items: center;
}

.quantity-selector__btn {
    width: 40px;
    height: 40px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    cursor: pointer;
    font-size: 18px;
}

.quantity-selector__btn:hover {
    background: #e9ecef;
}

.quantity-selector input {
    width: 60px;
    height: 40px;
    text-align: center;
    border: 1px solid #dee2e6;
    border-left: none;
    border-right: none;
}

.product-info__actions {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.product-info__actions .btn {
    flex: 1;
    padding: 12px;
}

.product-info__guarantee {
    display: flex;
    gap: 20px;
    color: #666;
    font-size: 14px;
}

.product-tabs__nav {
    display: flex;
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 20px;
}

.product-tabs__nav li {
    padding: 15px 30px;
    cursor: pointer;
    font-weight: 500;
}

.product-tabs__nav li.active {
    color: #667eea;
    border-bottom: 2px solid #667eea;
}

.product-tabs__tab {
    display: none;
}

.product-tabs__tab.active {
    display: block;
}

.comment-item {
    padding: 15px;
    border-bottom: 1px solid #e9ecef;
}

.comment-item__header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.comment-item__user {
    font-weight: 600;
}

.comment-item__time {
    color: #999;
    font-size: 14px;
}

.comment-item__content {
    margin-bottom: 10px;
}

.comment-item__rating {
    color: #ffc107;
}

/* 购物车 */
.cart-table {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}

.cart-item-info {
    display: flex;
    gap: 15px;
}

.cart-item-info img {
    border-radius: 4px;
}

.cart-item-info h4 {
    font-size: 16px;
    margin-bottom: 5px;
}

.cart-item-info p {
    color: #666;
    font-size: 14px;
}

.cart-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.cart-footer__total {
    text-align: right;
}

.cart-footer__total strong {
    font-size: 28px;
    color: #ff6b6b;
    font-weight: 700;
}

/* 认证页面 */
.auth-card {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.auth-card__title {
    text-align: center;
    margin-bottom: 30px;
}

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

.auth-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.auth-card__footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

/* 用户中心 */
.user-sidebar {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.user-sidebar__header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

.user-sidebar__nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.user-sidebar__nav li {
    margin-bottom: 5px;
}

.user-sidebar__nav a {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s;
}

.user-sidebar__nav a:hover,
.user-sidebar__nav a.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.order-item {
    background: #fff;
    padding: 20px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 15px;
}

.order-item__header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
}

.order-item__body {
    color: #666;
}

/* 文章 */
.article-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.article-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.article-card__image {
    padding-top: 60%;
    overflow: hidden;
}

.article-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-card__content {
    padding: 20px;
}

.article-card__title {
    font-size: 18px;
    margin-bottom: 10px;
}

.article-card__title a {
    color: #333;
    text-decoration: none;
}

.article-card__title a:hover {
    color: #667eea;
}

.article-card__summary {
    color: #666;
    margin-bottom: 10px;
}

.article-card__meta {
    color: #999;
    font-size: 14px;
}

.article-detail {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
}

.article-detail__title {
    font-size: 32px;
    margin-bottom: 20px;
}

.article-detail__meta {
    color: #666;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

.article-detail__content {
    line-height: 1.8;
}

.article-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 15px;
}

.article-item__image {
    width: 200px;
    flex-shrink: 0;
}

.article-item__image img {
    width: 100%;
    border-radius: 4px;
}

.article-item__content {
    flex: 1;
}

.article-item__title {
    font-size: 20px;
    margin-bottom: 10px;
}

.article-item__title a {
    color: #333;
    text-decoration: none;
}

.article-item__title a:hover {
    color: #667eea;
}

.article-item__summary {
    color: #666;
    margin-bottom: 10px;
}

.article-item__meta {
    color: #999;
    font-size: 14px;
}

/* 底部 */
.footer {
    background: #2c3e50;
    color: #fff;
    padding: 60px 0 30px;
}

.footer h4 {
    margin-bottom: 20px;
    font-size: 18px;
}

.footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer ul a {
    color: #adb5bd;
    text-decoration: none;
}

.footer ul a:hover {
    color: #fff;
}

.footer__social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer__social a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
}

.footer__social a:hover {
    background: rgba(255,255,255,0.2);
}

.footer__bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer__bottom a {
    color: #adb5bd;
    text-decoration: none;
}

.footer__bottom a:hover {
    color: #fff;
}

/* 搜索表单 */
.search-form .input-group {
    max-width: 600px;
}

/* 帮助中心 */
.help-content {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
}

.faq-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item h4 {
    font-size: 18px;
    margin-bottom: 10px;
}

/* 空购物车 */
.empty-cart {
    color: #666;
}

.empty-cart i {
    color: #dee2e6;
    margin-bottom: 20px;
}
