body {
    font-family: Arial, sans-serif;
    margin: 0;
    background-color: #f0f9f0;
}

.container {
    width: 100%;
    max-width: 400px; /* 假设是移动优先设计，典型手机宽度 */
    margin: 0 auto;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    background-color: #4CAF50;
    border-bottom: none;
    font-size: 12px;
    color: #fff;
}

.header-left .location i {
    color: #fff;
    margin-right: 5px;
}

.header-right span {
    margin-left: 10px;
}

.header-right .battery i {
    color: #fff;
}

/* App Bar */
.app-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px;
    background-color: #4CAF50;
}

.app-bar-left {
    display: flex;
    align-items: center;
}

.app-logo {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 10px;
    color: #fff;
}

.app-title {
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    margin-right: 5px;
}

.app-subtitle {
    font-size: 12px;
    color: #4CAF50;
    background-color: #fff;
    padding: 3px 8px;
    border-radius: 15px;
}

.vip-button {
    background-color: #ffd700; /* Gold */
    color: #8B4513; /* SaddleBrown */
    border: none;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.vip-button i {
    margin-right: 5px;
}

/* Search Bar */
.search-bar {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background-color: #f0f0f0;
    margin: 3px 6px;
    border-radius: 20px;
}

.search-bar i {
    margin-right: 10px;
    color: #999;
}

.search-bar input {
    border: none;
    background: none;
    outline: none;
    flex-grow: 1;
    font-size: 14px;
}

/* Navigation Grid */
.nav-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    padding: 10px;
    background-color: #fff;
    margin-bottom: 6px;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333;
    font-size: 12px;
}

/* Dropdown Menu Styles */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% - 20px); /* 向上调整20px，覆盖部分触发器 */
    right: -10px; /* 向左调整10px，覆盖"更多"文本 */
    background-color: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 10px;
    z-index: 1000;
    min-width: 300px;
}

.dropdown:hover .dropdown-menu {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
}

.dropdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px;
    border-radius: 6px;
    transition: background-color 0.2s;
    cursor: pointer;
    min-width: 70px;
}

.dropdown-item:hover {
    background-color: #f5f5f5;
}

.nav-item img {
    width: 40px;
    height: 40px;
    margin-bottom: 5px;
}

/* Hotpot Section */
.hotpot-section {
    position: relative;
    margin: 6px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* New Price Monitoring Section Styles */
.price-monitoring-section {
    margin: 6px;
    padding: 6px 15px;
    background-color: #e8eee2;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.price-monitoring-section h1 {
    color: #4caf50;
    font-size: 18px;
    margin-bottom: 5px;
    font-weight: bold;
}

.price-monitoring-section .subtitle {
    color: gray;
    font-size: 12px;
    margin-bottom: 15px;
}

.category-buttons {
    margin-bottom: 15px;
}

.button-row {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.category-button {
    background-color: white;
    color: black;
    border: none;
    padding: 4px 6px;
    border-radius: 4px;
    font-size: 12px;
    flex: 1;
    cursor: pointer;
    border: 1px solid #ddd;
    min-width: 0;
    text-align: center;
    line-height: 1.2;
    transition: all 0.2s ease;
}

.category-button.selected {
    background-color: #4caf50;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    line-height: 1.3;
}

.category-button.more-button {
    color: gray;
}

.gray-text {
    color: gray;
    font-size: 12px;
}

.price-box {
    background-color: white;
    border-radius: 5px;
    padding: 15px;
    margin: 0;
}

.price-headers {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.price-header {
    flex: 1;
    text-align: center;
    color: gray;
    font-size: 12px;
}

.price-values {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.price-value {
    flex: 1;
    text-align: center;
    font-size: 14px;
    font-weight: bold;
}

.price-changes {
    display: flex;
    justify-content: space-between;
}

.price-change {
    flex: 1;
    text-align: center;
    font-size: 12px;
}

.left-align-text {
    text-align: left;
    padding-left: 10%;
}

/* Price Scroll Container Styles */
.price-scroll-container {
    height: 60px; /* 固定高度，显示1行数据 */
    overflow: hidden;
    position: relative;
}

.price-scroll-content {
    position: relative;
    animation: priceScroll 15s linear infinite;
}

.price-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

@keyframes priceScroll {
    0% {
        transform: translateY(0);
    }
    25% {
        transform: translateY(-180px); /* 滚动到第二组数据 */
    }
    50% {
        transform: translateY(-360px); /* 滚动到第三组数据 */
    }
    75% {
        transform: translateY(-540px); /* 滚动到第四组数据 */
    }
    100% {
        transform: translateY(-720px); /* 滚动到第五组数据并循环 */
    }
}

/* 鼠标悬停时暂停滚动 */
.price-scroll-container:hover .price-scroll-content {
    animation-play-state: paused;
}

/* Ad Carousel */
.ad-carousel {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

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

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

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

.ad-overlay {
    position: absolute;
    top: 10px;
    left: 10px;
    color: #333;
    background: rgba(255, 255, 255, 0.8);
    padding: 10px;
    border-radius: 5px;
}

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

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

.indicator.active {
    background-color: #4CAF50;
}

.register-button {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Main Content Cards */
.card-wrapper {
    display: flex;
    gap: 6px; /* 卡片之间的间距 */
    flex-wrap: nowrap; /* 固定在同一行，不自动换行 */
    margin: 6px 6px;
    width: calc(100% - 12px); /* 占满容器宽度，减去边距 */
}

.card-wrapper > div,
.card-wrapper > a {
    flex: 1; /* 左侧div和右侧a标签平分宽度 */
    box-sizing: border-box;
}

.card {
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    width: 100%; /* 占满父容器宽度 */
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.card-content {
    flex: 1;
}

/* 确保右侧a标签样式正确 */
.card-wrapper > a {
    text-decoration: none;
    color: inherit;
}

/* 左侧卡片样式 */
.card-left {
    background-color: #6b96c8; /* 左侧卡片蓝色背景 */
    color: #fff;
}

.card-left .card-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.card-left .card-content {
    background-color: #fff;
    border-radius: 6px;
    padding: 15px 8px;
    color: #333;
}

.card-left .company {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.card-left .company img {
    width: 30px;
    height: 30px;
    margin-right: 10px;
}

.card-left .company-name {
    font-size: 16px;
    font-weight: bold;
}

.card-left .core-title {
    font-size: 14px;
    color: #666;
    margin: 10px 0 5px;
}

.card-left .tags {
    display: flex;
    flex-direction: row;
    gap: 5px; /* 标签之间的间距 */
    flex-wrap: wrap;
}

.card-left .tag {
    background-color: #ffd9d9;
    color: #e64949;
    padding: 5px 10px;
    border-radius: 4px;
    width: fit-content;
    font-size: 12px;
}

/* 右侧卡片样式 */
.card-right {
    background-color: #f5e8b6; /* 右侧卡片浅黄色背景 */
    color: #333;
}

.card-right .card-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.card-right .card-title .fire-icon {
    width: 20px;
    height: 20px;
    margin-right: 5px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ff5722'%3E%3Cpath d='M12 2 1 21h22L12 2zm0 17c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1zm0-3c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
}

.card-right .product-img {
    width: 100%;
    border-radius: 6px;
    margin-bottom: 10px;
    display: block;
}

.card-right .product-name {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
}

.card-right .brand {
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
}

.card-right .brand .brand-logo {
    width: 16px;
    height: 16px;
    margin-right: 5px;
}

/* News Section */
.news-section {
    display: flex;
    align-items: center;
    margin: 6px;
    padding: 6px 10px;
    background-color: #f0fff0;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    height: 40px;
}

.news-section h4 {
    margin: 0;
    color: #ff5722; /* Orange */
    margin-right: 10px;
    border: 1px solid #ff5722;
    padding: 2px 5px;
    border-radius: 5px;
    font-size: 12px;
    align-self: center;
}

.marquee {
    flex-grow: 1;
    overflow: hidden;
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.marquee-content {
    display: flex;
    white-space: nowrap;
    animation: marquee 20s linear infinite;
    height: 100%;
    align-items: center;
}

.marquee-content p {
    margin: 0 20px 0 0;
    font-size: 14px;
    color: #333;
}

@keyframes marquee {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* 鼠标悬停时暂停滚动 */
.marquee:hover .marquee-content {
    animation-play-state: paused;
}



/* Procurement Platform Section */
.procurement-platform-section {
    margin: 6px;
    border-radius: 10px;
    overflow: hidden;
}

.procurement-platform-section .platform-banner {
    background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
    color: white;
    padding: 20px;
    text-align: center;
}

.procurement-platform-section .platform-banner h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
}

.procurement-platform-section .platform-banner p {
    margin: 0 0 15px 0;
    font-size: 14px;
    opacity: 0.9;
}

.procurement-platform-section .platform-button {
    background-color: white;
    color: #4CAF50;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
}

/* Demand Section */
.demand-section {
    margin: 6px;
    padding: 0;
    border-radius: 10px;
    overflow: hidden;
}

.demand-section .demand-item {
    background-color: #fff;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* Demand Card Styles */
.demand-card {
    display: flex;
    align-items: center;
    padding: 10px;
    background-color: #fff9e6;
    border-radius: 8px;
    max-width: 100%;
}

.card-icon {
    margin-right: 12px;
}

.card-icon img {
    width: 40px;
    height: 40px;
    display: block;
    border-radius: 8px;
}

.card-text {
    flex: 1;
    margin-right: 12px;
}

.text-title {
    font-size: 14px;
    font-weight: bold;
    color: #333333;
    margin-bottom: 4px;
}

.text-desc {
    font-size: 12px;
    color: #999999;
}

.contact-button {
    background-color: #4CAF50;
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
    min-width: 80px;
}

.contact-button:hover {
    background-color: #55a038;
}

/* Ranking Section */
.ranking-section {
    margin: 6px;
    padding: 15px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.ranking-section .ranking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.ranking-section .ranking-header h3 {
    margin: 0;
    font-size: 16px;
    color: #333;
}

.ranking-section .ranking-subtitle {
    font-size: 12px;
    color: #999;
}

.ranking-section .ranking-filter {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 12px;
    flex-wrap: wrap;
}

.ranking-section .ranking-filter span {
    padding: 4px 8px;
    border-radius: 12px;
    background-color: #f0f0f0;
    color: #666;
}

.ranking-section .ranking-filter span.active {
    background-color: #4CAF50;
    color: white;
}

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

.ranking-section .ranking-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

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

.ranking-section .rank-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ranking-section .rank-number {
    width: 24px;
    height: 24px;
    background-color: #ff5722;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.ranking-section .rank-logo {
    width: 40px;
    height: 40px;
    background-color: #f0f0f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ranking-section .rank-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ranking-section .brand-name {
    font-size: 14px;
    color: #333;
}

.ranking-section .rank-stats {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: #666;
}

.ranking-section .store-count {
    font-weight: bold;
    color: #333;
}

.ranking-section .growth {
    color: #4CAF50;
    font-weight: bold;
}

.ranking-section .rating {
    color: #ff9800;
    font-weight: bold;
}

/* Partner Section */
.partner-section {
    margin: 6px;
    padding: 15px;
    background-color: #e8eee2;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.partner-section .partner-header {
    margin-bottom: 15px;
    text-align: center;
}

.partner-section .partner-header h3 {
    margin: 0;
    font-size: 16px;
    color: #333;
}

.partner-section .partner-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.partner-section .partner-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.partner-section .partner-logo {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    margin-bottom: 8px;
    object-fit: cover;
}

.partner-section span {
    font-size: 12px;
    color: #666;
    text-align: center;
}

/* Bottom Navigation */
.bottom-nav {
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    border-top: 1px solid #eee;
    background-color: #fff;
    position: sticky;
    bottom: 0;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #999;
    font-size: 10px;
}

.bottom-nav .nav-item.active {
    color: #4CAF50;
}

.bottom-nav .nav-item i {
    font-size: 20px;
    margin-bottom: 3px;
}