* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: #f5f5f5;
    color: #333;
    padding-bottom: 70px;
    min-height: 100vh;
}

/* 桌面端顶部导航 */
.top-nav-desktop {
    display: none;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #e8e8e8;
}

.top-nav-container {
    max-width: 1200px;
    width: 90%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: 60px;
}

.top-nav-logo {
    font-size: 20px;
    font-weight: 600;
    color: #4e73df;
    text-decoration: none;
    transition: color 0.2s;
}

.top-nav-logo:hover {
    color: #224abe;
}

.top-nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.top-nav-link {
    font-size: 15px;
    color: #666;
    text-decoration: none;
    padding: 8px 0;
    position: relative;
    transition: color 0.2s;
}

.top-nav-link:hover {
    color: #4e73df;
}

.top-nav-link.active {
    color: #4e73df;
    font-weight: 500;
}

.top-nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #4e73df;
}

/* 响应式容器 */
.container-responsive {
    max-width: 1200px;
    width: 95%;
    margin: 0 auto;
    padding: 0;
}

/* Banner区域 */
.banner-section {
    background: linear-gradient(135deg, #4e73df 0%, #224abe 100%); 
    padding: 30px 20px;
    position: relative;
    overflow: hidden;
    min-height: 180px;
}

.banner-content {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 600px;
}

.banner-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.4;
}

.banner-desc {
    font-size: 16px;
    margin-bottom: 6px;
    opacity: 0.95;
}

.banner-subtitle {
    font-size: 14px;
    opacity: 0.85;
}

.banner-image {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 140px;
    height: 140px;
    z-index: 1;
    opacity: 0.9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.banner-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* 常用工具区域 */
.common-tools-section {
    background: #fff;
    padding: 24px 16px;
    margin-top: 0;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px 12px;
}

/* 工具图标占位符 - 当没有图片时显示 */
.tool-icon-wrapper::before {
    content: '🚗';
    font-size: 24px;
    display: block;
    opacity: 0.3;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
}

.tool-icon {
    position: relative;
    z-index: 1;
}

.tool-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333;
    position: relative;
    padding-top: 8px;
    transition: transform 0.2s;
}

.tool-item:hover {
    transform: translateY(-2px);
}

.tool-badge {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 8px;
    font-weight: 500;
    z-index: 10;
    white-space: nowrap;
}

.tool-badge-green {
    background: #52c41a;
    color: #fff;
}

.tool-badge-blue {
    background: #1890ff;
    color: #fff;
}

.tool-badge-orange {
    background: #fa8c16;
    color: #fff;
}

.tool-badge-red {
    background: #ff4d4f;
    color: #fff;
}

.tool-icon-wrapper {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: background 0.2s;
    overflow: hidden;
    position: relative;
}

.tool-item:hover .tool-icon-wrapper {
    background: #e9ecef;
}

.tool-icon {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.tool-name {
    font-size: 13px;
    color: #333;
    text-align: center;
    line-height: 1.4;
    font-weight: 500;
}

/* 热门工具区域 */
.hot-tools-section {
    background: #f5f5f5;
    padding: 24px 16px;
}

.hot-tools-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

/* 热门工具图标占位符 - 当没有图片时显示 */
.hot-tool-icon-wrapper::before {
    content: '🚙';
    font-size: 32px;
    display: block;
    opacity: 0.3;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
}

.hot-tool-icon {
    position: relative;
    z-index: 1;
}

.hot-tool-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    text-decoration: none;
    color: #333;
    position: relative;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    overflow: hidden;
}

.hot-tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.hot-tool-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.hot-tool-text {
    flex: 1;
    padding-right: 12px;
}

.hot-tool-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.hot-tool-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

.hot-tool-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    overflow: hidden;
    position: relative;
}

.hot-tool-icon {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.hot-tool-label {
    position: absolute;
    bottom: 16px;
    right: 16px;
    font-size: 11px;
    padding: 4px 10px;
    background: rgba(255,255,255,0.95);
    border-radius: 12px;
    color: #666;
    font-weight: 500;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.bg-light-purple {
    background: linear-gradient(135deg, #f0f4ff 0%, #e8f0ff 100%);
}

.bg-light-orange {
    background: linear-gradient(135deg, #fff7e6 0%, #ffe7ba 100%);
}

.bg-light-green {
    background: linear-gradient(135deg, #f6ffed 0%, #d9f7be 100%);
}

.bg-light-blue {
    background: linear-gradient(135deg, #e6f7ff 0%, #bae7ff 100%);
}

/* 底部导航 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
    box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #999;
    flex: 1;
    padding: 4px 0;
    transition: color 0.2s;
}

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

.nav-icon {
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: opacity 0.2s;
}

.nav-icon-home {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23999'%3E%3Cpath d='M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z'/%3E%3C/svg%3E");
}

.nav-item.active .nav-icon-home {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%234e73df'%3E%3Cpath d='M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z'/%3E%3C/svg%3E");
}

.nav-icon-orders {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23999'%3E%3Cpath d='M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 16H8v-2h8v2zm0-4H8v-2h8v2zm-3-5V3.5L18.5 9H13z'/%3E%3C/svg%3E");
}

.nav-item.active .nav-icon-orders {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%234e73df'%3E%3Cpath d='M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 16H8v-2h8v2zm0-4H8v-2h8v2zm-3-5V3.5L18.5 9H13z'/%3E%3C/svg%3E");
}

.nav-icon-my {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23999'%3E%3Cpath d='M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z'/%3E%3C/svg%3E");
}

.nav-item.active .nav-icon-my {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%234e73df'%3E%3Cpath d='M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z'/%3E%3C/svg%3E");
}

.nav-item span {
    font-size: 12px;
    font-weight: 500;
}

/* 响应式设计 - 平板和桌面 */
@media (min-width: 768px) {
    body {
        padding-bottom: 0;
    }
    
    .top-nav-desktop {
        display: block;
    }
    
    .bottom-nav {
        display: none;
    }
    
    /* 平板端：工具网格5-6列 */
    .tools-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 24px 16px;
    }
    
    /* 热门工具：3列 */
    .hot-tools-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    /* 容器宽度优化 */
    .container-responsive {
        width: 92%;
        max-width: 1200px;
    }
    
    /* Banner区域优化 */
    .banner-section {
        padding: 40px 30px;
    }
    
    .banner-title {
        font-size: 28px;
    }
    
    .banner-desc {
        font-size: 18px;
    }
    
    /* 工具区域间距优化 */
    .common-tools-section,
    .hot-tools-section {
        padding: 32px 24px;
    }
    
    .section-title {
        font-size: 20px;
        margin-bottom: 24px;
    }
    
    /* 工具图标大小优化 */
    .tool-icon-wrapper {
        width: 64px;
        height: 64px;
    }
    
    .tool-name {
        font-size: 14px;
    }
}

/* 移动端优化 */
@media (max-width: 480px) {
    .tools-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px 8px;
    }
    
    .tool-icon-wrapper {
        width: 50px;
        height: 50px;
    }
    
    .tool-name {
        font-size: 12px;
    }
    
    .banner-title {
        font-size: 20px;
    }
    
    .banner-desc {
        font-size: 14px;
    }
    
    .banner-image {
        width: 100px;
        height: 100px;
    }
}

/* 我的页面样式 */
.profile-header {
    background: linear-gradient(135deg, #4e73df 0%, #224abe 100%);
    padding: 24px 20px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 16px;
}

.profile-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #fff;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 6px;
}

.profile-info p {
    font-size: 13px;
    opacity: 0.9;
}

.order-status-section {
    background: #fff;
    margin: 12px 16px;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.order-status-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.order-status-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333;
    transition: transform 0.2s;
}

.order-status-item:hover {
    transform: scale(1.05);
}

.order-status-icon {
    width: 36px;
    height: 36px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background: #f8f9fa;
    border-radius: 50%;
}

.order-status-name {
    font-size: 12px;
    color: #666;
    text-align: center;
}

.menu-section {
    background: #fff;
    margin: 12px 16px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 16px;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.2s;
}

.menu-item:hover {
    background: #f8f9fa;
}

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

.menu-icon {
    width: 24px;
    height: 24px;
    margin-right: 12px;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-text {
    flex: 1;
    font-size: 15px;
}

.menu-arrow {
    width: 16px;
    height: 16px;
    opacity: 0.3;
}

.service-hours {
    text-align: center;
    color: #999;
    font-size: 12px;
    padding: 16px;
}

/* 订单页面样式 */
.orders-page {
    background: #f5f5f5;
    min-height: 100vh;
    padding-bottom: 70px;
}

.orders-header {
    background: linear-gradient(135deg, #4e73df 0%, #224abe 100%);
    color: #fff;
    padding: 16px 20px;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    position: relative;
}

.orders-header-icons {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 12px;
    color: #fff;
}

.empty-orders {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
}

.empty-icon {
    width: 120px;
    height: 120px;
    margin-bottom: 24px;
    opacity: 0.3;
    font-size: 80px;
}

.empty-text {
    font-size: 16px;
    color: #999;
}

.refresh-btn {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4e73df 0%, #224abe 100%);
    color: #fff;
    border: none;
    box-shadow: 0 4px 16px rgba(78,115,223,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    z-index: 100;
    transition: transform 0.2s, box-shadow 0.2s;
}

.refresh-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(78,115,223,0.5);
}

.refresh-btn:active {
    transform: scale(0.95);
}

.orders-list {
    padding: 16px;
    max-width: 800px;
    margin: 0 auto;
}

.order-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: box-shadow 0.2s;
}

.order-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.order-number {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.order-status-badge {
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
}

.order-status-pending {
    background: #fff7e6;
    color: #fa8c16;
}

.order-status-paid {
    background: #f6ffed;
    color: #52c41a;
}

.order-status-querying {
    background: #e6f7ff;
    color: #1890ff;
}

.order-status-success {
    background: #f6ffed;
    color: #52c41a;
}

.order-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #f5f5f5;
}

.order-amount {
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.order-time {
    font-size: 13px;
    color: #999;
}

/* 订单卡片链接样式 */
.order-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.order-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.order-query-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.order-query-type {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.order-query-value {
    font-size: 13px;
    color: #999;
}

.refresh-icon {
    font-size: 20px;
    display: inline-block;
}

/* 空状态样式 */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.empty-icon-illustration {
    width: 120px;
    height: 120px;
    margin-bottom: 24px;
    opacity: 0.6;
}

.empty-icon-illustration svg {
    width: 100%;
    height: 100%;
}

.empty-text {
    font-size: 16px;
    color: #666;
    font-weight: 500;
    margin-bottom: 8px;
}

.empty-hint {
    font-size: 14px;
    color: #999;
    margin-bottom: 24px;
}

.empty-action-btn {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, #4e73df 0%, #224abe 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.empty-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(78,115,223,0.3);
}

.empty-orders .empty-icon-illustration {
    margin-bottom: 24px;
}

.empty-orders .empty-hint {
    margin-bottom: 24px;
}

.empty-orders .empty-action-btn {
    margin-top: 8px;
}

/* 工具价格显示 */
.tool-price {
    font-size: 12px;
    color: #ff4d4f;
    font-weight: 600;
    margin-top: 4px;
}

.hot-tool-price {
    font-size: 18px;
    color: #ff4d4f;
    font-weight: 700;
    margin-top: 8px;
}

/* 加载动画 */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 桌面端优化 (1024px+) */
@media (min-width: 1024px) {
    /* 工具网格：6-8列 */
    .tools-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 28px 20px;
    }
    
    /* 热门工具：3列 */
    .hot-tools-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
    
    /* 容器宽度优化 */
    .container-responsive {
        width: 90%;
        max-width: 1400px;
    }
    
    /* Banner区域进一步优化 */
    .banner-section {
        padding: 50px 40px;
        min-height: 220px;
    }
    
    .banner-title {
        font-size: 32px;
    }
    
    .banner-desc {
        font-size: 20px;
    }
    
    .banner-content {
        max-width: 700px;
    }
    
    /* 工具区域间距 */
    .common-tools-section,
    .hot-tools-section {
        padding: 40px 32px;
    }
    
    .section-title {
        font-size: 22px;
        margin-bottom: 28px;
    }
    
    /* 工具图标大小 */
    .tool-icon-wrapper {
        width: 72px;
        height: 72px;
    }
    
    .tool-name {
        font-size: 15px;
    }
    
    .tool-price {
        font-size: 13px;
    }
}

/* 大屏幕优化 (1440px+) */
@media (min-width: 1440px) {
    /* 工具网格：8列 */
    .tools-grid {
        grid-template-columns: repeat(8, 1fr);
        gap: 32px 24px;
    }
    
    /* 热门工具：4列 */
    .hot-tools-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 28px;
    }
    
    /* 容器宽度优化 */
    .container-responsive {
        width: 85%;
        max-width: 1600px;
    }
    
    /* Banner区域 */
    .banner-section {
        padding: 60px 50px;
        min-height: 240px;
    }
    
    .banner-title {
        font-size: 36px;
    }
    
    .banner-desc {
        font-size: 22px;
    }
    
    /* 工具区域 */
    .common-tools-section,
    .hot-tools-section {
        padding: 48px 40px;
    }
    
    .section-title {
        font-size: 24px;
        margin-bottom: 32px;
    }
}

/* 超大屏幕优化 (1920px+) */
@media (min-width: 1920px) {
    /* 工具网格：10列 */
    .tools-grid {
        grid-template-columns: repeat(10, 1fr);
        gap: 36px 28px;
    }
    
    /* 热门工具：保持4列，但间距更大 */
    .hot-tools-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 32px;
    }
    
    /* 容器宽度 */
    .container-responsive {
        width: 80%;
        max-width: 1800px;
    }
}

/* 响应式优化 - 订单和空状态 */
@media (min-width: 768px) {
    .order-card-link:hover .order-card {
        transform: translateY(-2px);
    }
    
    .empty-state {
        padding: 80px 40px;
    }
}
