/* ============================================
   易捷加油风格 - 首页样式（方案C优化）
   ============================================ */

/* 顶部导航 */
.app-header {
    background: linear-gradient(135deg, #E60012 0%, #FF3344 100%);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 800;
    color: #fff;
}

.header-text {
    color: #fff;
}

.header-text .title {
    font-size: 18px;
    font-weight: 700;
}

.header-text .subtitle {
    font-size: 12px;
    opacity: 0.9;
    margin-top: 2px;
}

.settings-btn {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
}

/* 快速加油区 */
.refuel-section {
    background: #fff;
    padding: 16px;
    margin-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

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

.refuel-buttons {
    display: flex;
    gap: 12px;
}

.refuel-btn {
    flex: 1;
    padding: 16px;
    background: linear-gradient(135deg, #E60012 0%, #FF3344 100%);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(230, 0, 18, 0.3);
}

.refuel-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(230, 0, 18, 0.4);
}

.refuel-btn:active {
    transform: translateY(0);
}

.btn-icon {
    font-size: 24px;
}

/* 轮播图 */
.banner-slider {
    margin: 0 16px 16px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    height: 160px;
}

.banner-slide {
    width: 100%;
    height: 100%;
    position: relative;
}

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

.banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: #fff;
}

.banner-tag {
    font-size: 12px;
    opacity: 0.9;
}

.banner-title {
    font-size: 22px;
    font-weight: 700;
    margin: 4px 0;
}

.banner-desc {
    font-size: 13px;
    opacity: 0.8;
}

/* 服务区块 */
.service-section {
    background: #fff;
    padding: 16px;
    margin-bottom: 12px;
}

/* 服务网格 */
.service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #333;
    padding: 12px 8px;
    border-radius: 12px;
    transition: all 0.2s;
}

.service-item:active {
    background: #f5f5f5;
    transform: scale(0.95);
}

.service-icon {
    font-size: 28px;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f8f8;
    border-radius: 12px;
    position: relative;
}

.service-item span:not(.badge) {
    font-size: 12px;
    text-align: center;
    line-height: 1.3;
}

.badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #E60012;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

/* 底部导航 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    display: flex;
    justify-content: space-around;
    padding: 8px 0 env(safe-area-inset-bottom, 8px);
    border-top: 1px solid #eee;
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: #999;
    font-size: 11px;
    position: relative;
    padding: 4px 12px;
}

.nav-item.active {
    color: #E60012;
}

.nav-icon {
    font-size: 24px;
}

.nav-item .badge {
    position: absolute;
    top: -2px;
    right: 4px;
}

/* 提示信息 */
.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    opacity: 0;
    transition: all 0.3s;
    z-index: 9999;
    pointer-events: none;
}

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