body {
    background-color: #f5f5f5;
    margin: 0;
    padding: 0;
    font-family: "Microsoft YaHei", Arial, sans-serif;
    padding-bottom: 70px; /* Space for bottom nav */
}

.top-nav {
    background-color: #8B1A1A; /* Deep red matching image */
    margin: 15px;
    border-radius: 12px;
    display: flex;
    justify-content: space-around;
    padding: 25px 10px;
    color: white;
}

.top-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    text-decoration: none;
    color: white;
}

.top-nav .nav-item i {
    font-size: 32px;
    margin-bottom: 10px;
}

.top-nav .nav-item span {
    font-size: 15px;
    font-weight: 500;
}

.section-title {
    color: #8B1A1A;
    text-align: center;
    font-size: 26px;
    margin: 25px 0;
    font-weight: bold;
    letter-spacing: 2px;
}

.product-grid {
    display: flex;
    flex-wrap: wrap;
    padding: 0 10px;
}

.product-card {
    width: 46%;
    background: white;
    margin: 2%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    text-decoration: none;
}


.product-card .img-container {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 12px;
}

.product-name {
    font-size: 15px;
    color: #333;
    line-height: 1.5;
    height: 3em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-decoration: none;
}

.product-price {
    color: #ff4444;
    font-size: 16px;
    font-weight: bold;
    margin-top: 8px;
    text-decoration: none;
}


.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    border-top: 1px solid #eee;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    z-index: 1000;
}

.bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #888;
    text-decoration: none;
    flex: 1;
}

.bottom-nav .nav-item i {
    font-size: 24px;
    margin-bottom: 4px;
}

.bottom-nav .nav-item span {
    font-size: 13px;
}

.bottom-nav .nav-item.active {
    color: #8B1A1A;
}

/* Mine Page Styles */
.mine-header {
    background-color: #8B1A1A;
    color: white;
    text-align: center;
    padding: 40px 20px;
}
.mine-header h2 {
    margin: 0;
    font-size: 26px;
    font-weight: bold;
}
.mine-header p {
    margin: 15px 0 0;
    font-size: 16px;
}

.mine-content {
    padding: 15px;
}

.order-card {
    background-color: #8B1A1A;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    color: white;
}
.order-card h3 {
    margin: 0 0 10px;
    font-size: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.4);
}
.order-menu {
    display: flex;
    justify-content: space-around;
    padding: 10px 0 5px;
}
.order-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: white;
    flex: 1;
}
.order-item i {
    font-size: 26px;
    margin-bottom: 8px;
}
.order-item span {
    font-size: 14px;
}

.account-card {
    background: white;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.account-card h3 {
    margin: 0 0 20px;
    font-size: 18px;
    color: #000;
    font-weight: bold;
}
.account-grid {
    display: flex;
    flex-wrap: wrap;
}
.account-item {
    width: 25%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    margin-bottom: 25px;
}
.account-item i {
    font-size: 28px;
    margin-bottom: 10px;
}
.account-item span {
    font-size: 13px;
    color: #333;
}

/* Customer Page Styles */
.page-header {
    background-color: #8B1A1A;
    color: white;
    text-align: center;
    padding: 15px;
    font-size: 20px;
    font-weight: bold;
}

.customer-stats {
    display: flex;
    background: #fff;
    border-bottom: 1px solid #eee;
}
.stat-item {
    flex: 1;
    display: flex;
    justify-content: space-between;
    padding: 15px 20px;
    font-size: 16px;
    border-right: 1px solid #eee;
}
.stat-item:last-child {
    border-right: none;
}
.stat-value {
    font-weight: bold;
}

.customer-list {
    background: #fff;
}
.customer-row {
    display: flex;
    border-bottom: 1px solid #f9f9f9;
}
.customer-cell {
    flex: 1;
    display: flex;
    justify-content: space-between;
    padding: 12px 20px;
    border-right: 1px solid #f9f9f9;
    align-items: center;
}
.customer-cell:last-child {
    border-right: none;
}
.cust-name {
    color: #333;
    font-size: 15px;
}
.cust-date {
    color: #999;
    font-size: 14px;
}

/* Qianggou Page Styles */
.qg-banner {
    position: relative;
    width: 100%;
}
.qg-banner img {
    width: 100%;
    display: block;
}
.qg-time-badge {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(139, 26, 26, 0.9);
    color: white;
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 18px;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.no-goods {
    text-align: center;
    color: #b2bec3;
    font-size: 20px;
    margin-top: 50px;
}

/* Orders Page Styles */
.order-tabs {
    display: flex;
    background: #fff;
    border-bottom: 1px solid #eee;
}
.order-tab-item {
    flex: 1;
    text-align: center;
    padding: 15px 0;
    font-size: 16px;
    color: #666;
    position: relative;
    text-decoration: none;
}
.order-tab-item.active {
    color: #8B1A1A;
    font-weight: bold;
}
.order-tab-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20%;
    right: 20%;
    height: 3px;
    background-color: #8B1A1A;
}
.order-tab-item .count {
    font-size: 14px;
    margin-left: 5px;
}

.order-list {
    padding: 10px;
}
.order-card-item {
    background: #fff;
    border-radius: 10px;
    margin-bottom: 12px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.order-card-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    border-bottom: 1px dotted #eee;
    padding-bottom: 8px;
    font-size: 14px;
    color: #888;
}
.order-status {
    color: #8B1A1A;
    font-weight: bold;
}
.order-card-body {
    display: flex;
}
.order-card-img {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    object-fit: cover;
    margin-right: 12px;
    background: #f9f9f9;
}
.order-card-info {
    flex: 1;
}
.order-card-title {
    font-size: 15px;
    color: #333;
    font-weight: bold;
    margin-bottom: 8px;
    line-height: 1.4;
}
.order-card-price {
    font-size: 16px;
    color: #e74c3c;
    font-weight: bold;
}
.order-card-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
    font-size: 13px;
    color: #666;
}

/* News Detail Styles */
.news-detail-container {
    background: #fff;
    padding: 20px 15px;
    min-height: 80vh;
}
.news-detail-title {
    font-size: 22px;
    font-weight: bold;
    color: #333;
    line-height: 1.4;
    margin-bottom: 15px;
}
.news-detail-meta {
    font-size: 13px;
    color: #999;
    margin-bottom: 25px;
    display: flex;
    gap: 15px;
}
.news-detail-content {
    font-size: 16px;
    color: #444;
    line-height: 1.8;
}
.news-detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 15px 0;
}
.news-detail-content p {
    margin-bottom: 15px;
    text-align: justify;
}

/* Qianggou Detail Styles */
.qg-detail-header {
    background: #fff;
    margin-bottom: 10px;
}
.qg-detail-img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
}
.qg-detail-price-box {
    padding: 15px;
    background: #8B1A1A;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.qg-price-now {
    font-size: 24px;
    font-weight: bold;
}
.qg-price-old {
    font-size: 14px;
    text-decoration: line-through;
    opacity: 0.7;
    margin-left: 10px;
}
.qg-detail-info {
    padding: 15px;
    background: #fff;
}
.qg-detail-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    line-height: 1.5;
    margin-bottom: 10px;
}
.qg-detail-stock {
    font-size: 14px;
    color: #888;
}

.qg-process-box {
    background: #fff;
    margin-top: 10px;
    padding: 15px;
}
.qg-process-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
    padding-left: 10px;
    border-left: 4px solid #8B1A1A;
}
.qg-process-list {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
}
.qg-process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
}
.qg-process-step:not(:last-child)::after {
    content: '\f105'; /* FontAwesome angle-right */
    font-family: FontAwesome;
    position: absolute;
    right: -10px;
    top: 10px;
    color: #ccc;
}
.qg-step-icon {
    width: 40px;
    height: 40px;
    background: #fdf1f1;
    color: #8B1A1A;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-bottom: 8px;
}
.qg-step-text {
    font-size: 12px;
    color: #666;
}

.qg-bottom-bar {
    position: fixed;
    bottom: 56px;
    left: 0;
    right: 0;
    height: 60px;
    background: #fff;
    display: flex;
    align-items: center;
    padding: 0 15px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1001;
}

.qg-btn-buy {
    flex: 1;
    background: #8B1A1A;
    color: #fff;
    height: 44px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
}
.qg-btn-buy.disabled {
    background: #ccc;
    pointer-events: none;
}

/* Share Page Styles */
.share-container {
    padding: 30px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
}
.share-card {
    background: #f8f9fa;
    width: 100%;
    border-radius: 15px;
    padding: 40px 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.share-user-name {
    font-size: 24px;
    font-weight: bold;
    color: #000;
    margin-bottom: 10px;
}
.share-subtitle {
    font-size: 15px;
    color: #999;
    margin-bottom: 40px;
}
.share-qrcode-box {
    background: #fff;
    padding: 15px;
    display: inline-block;
    border-radius: 10px;
    margin-bottom: 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.share-qrcode-box img {
    width: 200px;
    height: 200px;
    display: block;
}
.share-footer-text {
    font-size: 16px;
    color: #8B1A1A;
    font-weight: 500;
}







/* Icon Colors from image */
.account-item .fa-qrcode { color: #10ac84; }
.account-item .fa-map-marker { color: #ff9f43; }
.account-item .fa-calendar-check-o { color: #1dd1a1; }
.account-item .fa-product-hunt { color: #ff9f43; } /* Using P for wallet/money if cny looks different, or just fa-money */
.account-item .fa-yen { color: #feca57; }
.account-item .fa-lock { color: #1dd1a1; }
.account-item .fa-power-off { color: #ff6b6b; }

/* News Page Styles */
.news-list {
    padding: 10px;
}
.news-item {
    background: white;
    border-radius: 10px;
    margin-bottom: 12px;
    padding: 12px;
    display: flex;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    text-decoration: none;
    color: inherit;
}
.news-img {
    width: 100px;
    height: 75px;
    border-radius: 6px;
    object-fit: cover;
    margin-right: 12px;
    background-color: #eee;
}
.news-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.news-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 5px;
}
.news-desc {
    font-size: 13px;
    color: #888;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-time {
    font-size: 11px;
    color: #bbb;
    margin-top: 5px;
}

/* Pagination Styles */
.fenye {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 30px 0;
    margin: 0;
    clear: both;
}
.fenyelist {
    padding: 0;
    margin: 0 4px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    color: #666;
    font-size: 13px;
    cursor: pointer;
    min-width: 32px;
    padding: 0 8px; /* Allow horizontal padding for text like '上一页' */
    height: 32px;
    line-height: 30px;
    text-align: center;
    display: inline-block;
    box-sizing: border-box;
}
.fenyelist:not(.no):hover {
    background-color: #f5f5f5;
    border-color: #8B1A1A;
    color: #8B1A1A;
}
.fenyelist.yes {
    background-color: #8B1A1A;
    border-color: #8B1A1A;
    color: #fff;
    min-width: 32px;
}
.fenyelist.no {
    color: #ccc;
    cursor: not-allowed;
    background: #f9f9f9;
}
.fenye a {
    text-decoration: none;
    display: inline-block;
}
.fenye a .fenyelist.yes:hover {
    background-color: #8B1A1A;
    color: #fff;
}
/* Specifically handle the wider buttons to ensure they don't break flow too much */
.fenyelist[class*="no"] , .fenyelist:not(.yes) {
    /* min-width: 60px; */
}






