/* ========================================
       首页样式
       使用 comm.css 定义的变量
       ======================================== */

    /* ===== Main Content 主内容区 ===== */
    body{
      margin: 0;
      padding: 0;
    }

    .pagination-container{
      padding-top: 0!important;
    }
    .main-content {
      padding-top: 50px;
      padding-bottom: 60px;
      background: var(--color-bg-page);
    }

    /* ===== Hero Section 英雄区域 ===== */
    .hero-section {
      position: relative;
      height: 200px;
      overflow: hidden;
      margin-bottom: var(--spacing-sm);
    }

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

    .hero-overlay {
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      background: linear-gradient(transparent, var(--color-bg-overlay));
      color: var(--color-text-white);
      padding: var(--spacing-lg);
      font-size: var(--font-size-xl);
      font-weight: var(--font-weight-medium);
      letter-spacing: 0.5px;
    }

    /* ===== Icon Grid 图标网格 ===== */
    .icon-grid {
      display: flex;
      flex-wrap: wrap;
      padding: 10px 0;
      background: var(--color-bg-card);
      margin-bottom: 8px;
    }

    .icon-item {
      width: 25%;
      display: flex;
      flex-direction: column;
      align-items: center;
/*      padding: 8px 0;*/
      text-decoration: none;
      color: var(--color-text-primary);
    }
    
    .icon-img {
      width: 60px;
      height: 60px;
      border-radius: 12px;
      object-fit: cover;
      margin-bottom: 8px;
      transition: transform 0.2s ease;
    }
    
    .icon-item:active .icon-img {
      transform: scale(0.95);
    }

    .icon-label {
      font-size: var(--font-size-base);
      color: var(--color-text-secondary);
    }

    /* ===== Sort Tabs Container 排序标签栏 ===== */
    .sort-tabs-container {
      background: #fff;
      padding: 0;
      margin-bottom: 8px;
    }
    
    .sort-tabs-list {
      display: flex;
      border-bottom: 1px solid #f0f0f0;
    }
    
    .sort-tab {
      flex: 1;
      text-align: center;
      font-size: 14px;
      font-weight: 500;
      color: #666;
      text-decoration: none;
      padding: 14px 0;
      position: relative;
      transition: color 0.2s ease;
    }
    
    .sort-tab.active {
      color: var(--color-primary);
      font-weight: 600;
    }
    
    .sort-tab.active::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 50%;
      transform: translateX(-50%);
      width: 24px;
      height: 3px;
      background: var(--color-primary);
      border-radius: 3px 3px 0 0;
    }
    
    .sort-tab:active {
      background: #f9f9f9;
    }
    
    .sort-filter-bar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 10px;
/*      background: #fafafa;*/
    }
    
    .filter-left {
      display: flex;
      align-items: center;
      font-size: 16px;
      font-weight: 600;
      color: #222;
    }
    
    .filter-left svg {
      margin-right: 8px;
      color: var(--color-primary);
    }
    
    .filter-right {
      position: relative;
    }
    
    .sort-dropdown {
      display: flex;
      align-items: center;
      font-size: 13px;
      color: #666;
      padding: 6px 15px;
      background: #fff;
      border-radius: 20px;
      border: 1px solid #eee;
    }
    
    .sort-dropdown svg {
      margin-left: 4px;
      transition: transform 0.2s ease;
    }
    
    .sort-dropdown.open svg {
      transform: rotate(180deg);
    }

    .dropdown-menu {
      position: absolute;
      top: calc(100% + 6px);
      right: 0;
      background: #fff;
      border-radius: 8px;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
      min-width: 120px;
      overflow: hidden;
      opacity: 0;
      visibility: hidden;
      transform: translateY(-8px);
      transition: all 0.2s ease;
      z-index: 50;
    }

    .dropdown-menu.active {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
    }

    .dropdown-item {
      padding: 12px 16px;
      font-size: 13px;
      color: #666;
      transition: all 0.2s ease;
    }
    
    .dropdown-item:active {
      background: #f5f5f5;
    }

    .dropdown-item.active {
      color:rgba(55 237 45 / 80%);
      font-weight: 600;
      background: rgba(0, 217, 163, 0.08);
    }

    /* ===== Article List 文章卡片网格 ===== */
    .article-list {
      display: flex;
      flex-wrap: wrap;
      padding: 5px;
      background: #fff;
    }
    
    .article-list .article-card {
      width: calc(50% - 10px);
      margin: 5px;
    }

    /* ===== Article Card 文章卡片 ===== */
    .article-card {
      background: var(--color-bg-card);
      border-radius: 10px;
      overflow: hidden;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
      text-decoration: none;
      color: inherit;
      transition: transform var(--transition-fast), box-shadow var(--transition-fast);
      display: flex;
      flex-direction: column;
    }

    .article-card:hover {
      transform: translateY(-2px);
      box-shadow: var(--shadow-md);
    }

    .article-image-container {
      position: relative;
      width: 100%;
      padding-top: 130%; /* Taller image ratio */
      overflow: hidden;
    }

    .article-image {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .article-badges {
      position: absolute;
      top: 0px;
      left: 0px;
      display: flex;
      align-items: center;
      z-index: 10;
    }

    .badge {
      padding: 4px 8px;
      font-size: 10px;
      font-weight: 500;
      color: #fff;
      display: inline-flex;
      align-items: center;
      letter-spacing: 0.3px;
      border-radius: 0px 0px 5px 0px;
      background: linear-gradient(135deg, rgb(248 186 87 / 70%) 0%, rgb(231 71 140 / 66%) 100%);
    }
    
    .badge svg {
      width: 12px;
      height: 12px;
      margin-right: 2px;
      fill: #FFD700;
    }

    .article-overlay {
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      padding: 10px;
      background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
    }
    
    .article-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 8px;

    }
    
    .article-name {
      font-size: 14px;
      color: #fff;
       white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    }
    
    .article-price {
      font-size: 14px;
      font-weight: 600;
      color: #FFB700;
    }
    
    .article-tags {
      display: flex;
      flex-wrap: wrap;
    }
    
    .article-tag {
      font-size: 10px;
      color: rgba(255, 255, 255, 0.9);
      background: rgba(0, 0, 0, 0.4);
      padding: 3px 8px;
      border-radius: 5px;
      margin-right: 3px;
/*      margin-bottom: 4px;*/
    }
    .article-tag:last-child {
        margin-right: 0;
        position: absolute;
        right: 5px;
    }

    /* ===== Responsive 响应式 ===== */
    @media (min-width: 768px) {

      .bottom-nav {
        max-width: var(--max-width-content);
        left: 50%;
        transform: translateX(-50%);
        border-radius: var(--radius-md) var(--radius-md) 0 0;
      }
    }


.banner-container {
    width: 100%;
    max-width: 750px;
    margin: 0 auto;
    overflow: hidden;
}

.swiper-container {
    width: 100%;
    height: auto !important;
    overflow: hidden;
}

.swiper-wrapper {
    height: auto !important;
}

.swiper-slide {
    width: 100%;
    height: auto !important;
    position: relative;
    overflow: hidden;
}

.swiper-slide img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 300px;
    -o-object-fit: cover;
    object-fit: cover;
}

/* 鍒嗛〉鍣ㄦ牱寮� */
.swiper-pagination {
    bottom: 10px !important;
}

.swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
}

.swiper-pagination-bullet-active {
    background: -webkit-linear-gradient(left, #ff6b8a, #e84a7a);
    background: linear-gradient(to right, #ff6b8a, #e84a7a);
    width: 8px;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
}

/* 鏂囧瓧鍙犲姞灞� */
.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    padding: 20px;
    background: -webkit-linear-gradient(right, rgba(0,0,0,0.1), rgba(0,0,0,0.4));
    background: linear-gradient(to left, rgba(0,0,0,0.1), rgba(0,0,0,0.4));
}

.banner-title {
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    margin-bottom: 8px;
}

.banner-subtitle {
    color: rgba(255,255,255,0.9);
    font-size: 14px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.banner-subtitle-en {
    color: rgba(255,255,255,0.7);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

/* 鍝嶅簲寮忛€傞厤 */
@media screen and (min-width: 768px) {
    .banner-title {
        font-size: 32px;
    }
    .banner-subtitle {
        font-size: 18px;
    }
    .banner-subtitle-en {
        font-size: 12px;
    }
    .banner-overlay {
        padding: 40px;
    }
}

@media screen and (max-width: 380px) {
    .banner-title {
        font-size: 18px;
    }
    .banner-subtitle {
        font-size: 12px;
    }
    .banner-subtitle-en {
        font-size: 9px;
    }
    .banner-overlay {
        padding: 15px;
    }
}
.swiper-pagination-bullet-active {
    background: #ff69b4;
}
.swiper-container-horizontal>.swiper-pagination-bullets, .swiper-pagination-custom, .swiper-pagination-fraction {right:10px;text-align:right;}
   
   
.hot-title {
    padding: 0;
    background: transparent;
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    border-bottom: none;
    white-space: nowrap;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #2ded5c 0%, #dd9c0d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}
.hot-title svg {
    width: 20px;
    height: 20px;
    fill: #86df32;
    filter: drop-shadow(0 2px 4px rgba(21 ,208 ,129, 0.3));
    
}
.article-tag svg {
  width: 12px;
  height: 12px;
    float: left;
    display: block;
    margin-top: 3px;
    margin-right: 3px;
}



.app {
    position: fixed;
    z-index: 1000000;
    width: 100%;
    height: 30px;
    line-height: 30px;
    background: #ffeb3b;
    font-size: 14px;
    top: 0;
    color: red;
    padding: 0 10px;
    box-sizing: border-box;
    opacity: 0.9;
    display: flex;
    align-items: center;
    font-size: #000;
}
.app span {
    position: absolute;
    top: 5px;
    right: 10px;
    width: 20px;
    height: 20px;
    background: rgba(255, 68, 102, 0.75);
    color: #fff;
    border-radius: 30px;
    text-align: center;
    font-size: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}



.notice-container {
	width: 100%;
	max-width: 750px;
	margin: 0 auto;
	background: #fff;
	border-bottom: 1px solid #eee;
	overflow: hidden;
}

.notice-inner {
	display: -webkit-box;
	display: -webkit-flex;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	-webkit-align-items: center;
	-ms-flex-align: center;
	align-items: center;
	padding: 12px 15px;
}

.notice-tag {
	-webkit-flex-shrink: 0;
	-ms-flex-negative: 0;
	flex-shrink: 0;
	padding: 4px 10px;
	background: #f7aa31;
	color: #fff;
	font-size: 12px;
	font-weight: 500;
	-webkit-border-radius: 4px;
	-moz-border-radius: 4px;
	border-radius: 4px;
	margin-right: 10px;
}

.notice-content {
	-webkit-box-flex: 1;
	-webkit-flex: 1;
	-ms-flex: 1;
	flex: 1;
	height: 20px;
	overflow: hidden;
	position: relative;
}

.notice-list {
	position: relative;
	width: 100%;
}

.notice-item {
	display: -webkit-box;
	display: -webkit-flex;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-pack: justify;
	-webkit-justify-content: space-between;
	-ms-flex-pack: justify;
	justify-content: space-between;
	-webkit-box-align: center;
	-webkit-align-items: center;
	-ms-flex-align: center;
	align-items: center;
	height: 20px;
	line-height: 20px;
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	opacity: 0;
	-webkit-transform: translateY(100%);
	-moz-transform: translateY(100%);
	-ms-transform: translateY(100%);
	-o-transform: translateY(100%);
	transform: translateY(100%);
	-webkit-transition: all 0.5s ease;
	-moz-transition: all 0.5s ease;
	-o-transition: all 0.5s ease;
	transition: all 0.5s ease;
}

.notice-item.active {
	opacity: 1;
	-webkit-transform: translateY(0);
	-moz-transform: translateY(0);
	-ms-transform: translateY(0);
	-o-transform: translateY(0);
	transform: translateY(0);
}

.notice-item.leave {
	opacity: 0;
	-webkit-transform: translateY(-100%);
	-moz-transform: translateY(-100%);
	-ms-transform: translateY(-100%);
	-o-transform: translateY(-100%);
	transform: translateY(-100%);
}

.notice-text {
	-webkit-box-flex: 1;
	-webkit-flex: 1;
	-ms-flex: 1;
	flex: 1;
	font-size: 14px;
	color: #333;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	padding-right: 10px;
}

.notice-time {
	-webkit-flex-shrink: 0;
	-ms-flex-negative: 0;
	flex-shrink: 0;
	font-size: 12px;
	color: #999;
	margin-right: 8px;
}

.notice-copy {
	-webkit-flex-shrink: 0;
	-ms-flex-negative: 0;
	flex-shrink: 0;
	padding: 2px 8px;
	background: #f5f5f5;
	border: 1px solid #ddd;
	color: #666;
	font-size: 11px;
	-webkit-border-radius: 3px;
	-moz-border-radius: 3px;
	border-radius: 3px;
	cursor: pointer;
	-webkit-transition: all 0.2s ease;
	-moz-transition: all 0.2s ease;
	-o-transition: all 0.2s ease;
	transition: all 0.2s ease;
	outline: none;
	-webkit-tap-highlight-color: transparent;
}

.notice-copy:active {
	background: #e0e0e0;
}

.notice-copy.copied {
	background: #4caf50;
	border-color: #4caf50;
	color: #fff;
}

/* 灏忓睆閫傞厤 */
@media screen and (max-width: 380px) {
	.notice-inner {
		padding: 10px 12px;
	}
	
	.notice-tag {
		padding: 3px 8px;
		font-size: 11px;
	}
	
	.notice-text {
		font-size: 13px;
	}
	
	.notice-time {
		font-size: 11px;
	}
}

   