* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    text-decoration: none;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: #f5f7fa;
    color: #333;
    font-size: 14px;
}

/* 顶部导航 */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 0 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
}

.logo {
    font-size: 20px;
    font-weight: bold;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.logo i {
    font-size: 22px;
}

.logo span {
    color: #ffd700;
}
.logos{
    width:32px;
    height:32px;
}
.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: opacity 0.3s;
    white-space: nowrap;
}

.nav-links a:hover {
    opacity: 0.8;
}

/* Banner区域 */
.banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px 15px 60px;
    text-align: center;
    color: white;
}

.banner h1 {
    font-size: 28px;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.banner p {
    font-size: 15px;
    opacity: 0.9;
    margin-bottom: 30px;
}

/* 搜索框 */
.search-container {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.search-box {
    display: flex;
    background: white;
    border-radius: 50px;
    padding: 4px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.search-box input {
    flex: 1;
    border: none;
    padding: 14px 20px;
    font-size: 15px;
    border-radius: 50px;
    outline: none;
    min-width: 0;
}

.search-box button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 15px;
    cursor: pointer;
    transition: transform 0.2s;
    white-space: nowrap;
}

.search-box button:hover {
    transform: scale(1.05);
}

.search-box button:active {
    transform: scale(0.98);
}

.hot-tags {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.hot-tags a {
    color: white;
    text-decoration: none;
    font-size: 12px;
    padding: 4px 12px;
    background: rgba(255,255,255,0.2);
    border-radius: 12px;
    transition: all 0.3s;
    cursor: pointer;
}

.hot-tags a:hover {
    background: rgba(255,255,255,0.4);
}

/* 主要内容区 */
.main-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 5px;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-links a {
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    text-decoration: none;
    transition: var(--transition);
}

.nav-links a:hover {
    color: #4f46e5;
    background: #fff7ed;
}

.nav-links a.active {
    color: #ff6a00 !important;
    background: #fff7ed;
}
/* 排序栏 */
.sort-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    background: white;
    padding: 12px 15px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    overflow-x: auto;
}

.result-count {
    font-size: 13px;
    color: #666;
    white-space: nowrap;
    margin-right: 10px;
}

.result-count span {
    color: #667eea;
    font-weight: bold;
}

.sort-options {
    display: flex;
    gap: 15px;
    white-space: nowrap;
}

.sort-options a {
    color: #666;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s;
    padding: 2px 0;
    cursor: pointer;
}

.sort-options a:hover, .sort-options a.active {
    color: #667eea;
    border-bottom: 2px solid #667eea;
}

/* 商品列表 - 手机端改为单列 */
.service-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

@media (min-width: 768px) {
    .service-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }
}

.service-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.service-card:active {
    transform: scale(0.99);
}

.card-image {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 52px;
}

.card-content {
    padding: 15px;
}

.card-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-desc {
    font-size: 13px;
    color: #999;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #f0f2f5;
}

.card-price {
    font-size: 24px;
    font-weight: bold;
    color: #ff6b6b;
}

.card-price small {
    font-size: 12px;
    color: #999;
    font-weight: normal;
}

.card-cycle {
    font-size: 12px;
    color: #888;
    background: #f8f9fa;
    padding: 4px 10px;
    border-radius: 10px;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.seller-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.seller-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 11px;
}

.seller-name {
    font-size: 12px;
    color: #666;
}

.card-rating {
    font-size: 12px;
    color: #ffa502;
}

.card-rating i {
    margin-right: 2px;
}

/* 下单按钮 */
.order-btn {
    display: block;
    width: 100%;
    margin-top: 12px;
    padding: 12px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    text-align: center;
}

.order-btn:hover {
    background: linear-gradient(135deg, #ff5252 0%, #ff7a3d 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255,107,107,0.4);
}

.order-btn:active {
    transform: scale(0.98);
}

/* 无结果提示 */
.no-result {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.no-result i {
    font-size: 64px;
    margin-bottom: 20px;
    color: #ddd;
}

.no-result p {
    font-size: 16px;
}

/* 底部 */
.footer {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 40px 15px 20px;
    margin-top: 40px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

@media (min-width: 768px) {
    .footer-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

.footer-section h3 {
    font-size: 16px;
    margin-bottom: 15px;
    color: white;
}

.footer-section ul {
    list-style: none;
}

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

.footer-section ul li a {
    color: #bdc3c7;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #667eea;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid #34495e;
    font-size: 12px;
    color: #95a5a6;
}

/* Toast提示 */
.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: rgba(0,0,0,0.75);
    color: white;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 15px;
    z-index: 9999;
    transition: transform 0.3s;
    white-space: nowrap;
}

.toast.show {
    transform: translate(-50%, -50%) scale(1);
}

/* 收银台弹窗 */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.show {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 16px;
    width: 100%;
    max-width: 400px;
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #f0f2f5;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 18px;
    color: #333;
}

.modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: #f5f7fa;
    color: #999;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.modal-close:hover {
    background: #e0e0e0;
    color: #666;
}

.modal-body {
    padding: 20px;
}

.order-info {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
}

.order-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.order-info-item:not(:last-child) {
    border-bottom: 1px solid #eee;
}

.order-info-label {
    color: #666;
    font-size: 14px;
}

.order-info-value {
    font-weight: bold;
    color: #333;
    font-size: 14px;
}

.order-info-value.price {
    color: #ff6b6b;
    font-size: 20px;
}

.pay-btn {
    display: block;
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.pay-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(102,126,234,0.4);
}

.pay-btn:active {
    transform: scale(0.98);
}
.back-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    transition: background 0.3s;
    display: none;
}

.back-btn:hover {
    background: rgba(255,255,255,0.3);
}
/* 移动端汉堡菜单 */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    cursor: pointer;
    background: none;
    border: none;
}

.mobile-menu-btn span {
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s;
}
.mobile-menu-drawer {
    display: none;
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 99;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.mobile-menu-drawer.open {
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu-drawer .drawer-content {
    background: #fff;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.mobile-menu-drawer .drawer-content a {
    padding: 14px 16px;
    border-radius: 10px;
    color: #444;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.2s;
}

.mobile-menu-drawer .drawer-content a:active {
    background: var(--primary-light);
    color: var(--primary);
}
/* 手机端 */
@media screen and (max-width: 767px) {
    .mobile-menu-btn { display: flex; }
    .mobile-menu-drawer { display: block; }
    .nav-links { display: none; }
    .logo-div{display: block;}
}
.logos{
    width:32px;
    height:32px;
}
/* 手机端 */
@media (max-width: 768px) {
    .mobile-menu-btn { display: flex; }
    .mobile-menu-drawer { display: block; }
    .nav-links { display: none; }
    .logo-div{display: block;}
    .drawer-content a.active {
        color: #ff6a00 !important;
        background: #fff7ed;
    }
}
/* ========== 底部版权 ========== */
.site-footer {
	background: #2c2c2c;
	color: #aaa;
	padding: 24px 0 20px;
	text-align: center;
	font-size: 13px;
	line-height: 1.8;
	margin-top: 20px;
}
.site-footer .footer-inner {
	width: 95%;
	max-width: 1200px;
	margin: 0 auto;
}
.site-footer a {
	color: #aaa;
	text-decoration: none;
	transition: color .2s;
}
.site-footer a:hover { color: #ff6a00; }
.site-footer .footer-links {
	margin-bottom: 8px;
}
.site-footer .footer-links a {
	margin: 0 10px;
}
.site-footer .footer-copy {
	color: #777;
	font-size: 12px;
}
.site-footer .footer-copy a {
	color: #777;
}