This commit is contained in:
Mrhongxing committed 2026-11-04 20:25:27 +08:00
1 parent 4aaaf23d2f
commit d1ee8edbbd
14 files changed
+1678 -104

No files matched your search

+206
View File
@@ -0,0 +1,206 @@
<template>
<main class="bill-page">
<header class="page-header">
<h1>我的账单</h1>
<span class="bill-count">共 {{ total }} 笔</span>
</header>
<section class="bill-list" aria-label="账单列表">
<article v-for="bill in bills" :key="bill.id" class="bill-item">
<div class="bill-icon" :class="bill.type">
{{ bill.type === 'income' ? '收' : '支' }}
</div>
<div class="bill-info">
<div class="bill-title">{{ bill.title || '账单' }}</div>
<div class="bill-time">{{ bill.time }}</div>
</div>
<div class="bill-amount" :class="bill.type">
{{ bill.type === 'income' ? '+' : '-' }}{{ formatAmount(bill.amount) }}
</div>
</article>
<div v-if="loading" class="list-status">正在加载...</div>
<div v-else-if="!bills.length" class="list-status">暂无账单</div>
<div v-else-if="finished" class="list-status">没有更多账单了</div>
<!-- 滚动到此处时自动请求下一页 -->
<div ref="loadMoreTarget" class="load-more-target" aria-hidden="true"></div>
</section>
</main>
</template>
<script setup>
import { nextTick, onBeforeUnmount, onMounted, ref } from 'vue'
const PAGE_SIZE = 20
const bills = ref([])
const total = ref(0)
const page = ref(1)
const loading = ref(false)
const finished = ref(false)
const loadMoreTarget = ref(null)
let observer
/**
* 账单数据接口:将此处替换为项目实际的请求方法即可。
* 返回格式建议为:{ list: Array, total: Number }。
*/
async function getBillList(params) {
// 示例:return request.get('/bill/list', { params })
return { list: [], total: 0 }
}
async function loadBills(reset = false) {
if (loading.value || (!reset && finished.value)) return
if (reset) {
page.value = 1
finished.value = false
bills.value = []
}
loading.value = true
try {
const result = await getBillList({ page: page.value, pageSize: PAGE_SIZE })
const list = result?.list || []
bills.value = reset ? list : bills.value.concat(list)
total.value = result?.total ?? bills.value.length
finished.value = list.length < PAGE_SIZE || bills.value.length >= total.value
if (!finished.value) page.value += 1
} catch (error) {
// 请求失败时保留已加载内容,下一次进入底部可重试。
console.error('获取账单失败', error)
} finally {
loading.value = false
}
}
function formatAmount(amount) {
return Number(amount || 0).toFixed(2)
}
onMounted(async () => {
await loadBills()
await nextTick()
observer = new IntersectionObserver(
([entry]) => entry.isIntersecting && loadBills(),
{ rootMargin: '120px 0px' },
)
if (loadMoreTarget.value) observer.observe(loadMoreTarget.value)
})
onBeforeUnmount(() => observer?.disconnect())
</script>
<style scoped>
.bill-page {
box-sizing: border-box;
width: 100%;
min-height: 100vh;
padding: 20px 16px calc(24px + env(safe-area-inset-bottom));
background: #f6f7fb;
color: #20232a;
}
.page-header {
display: flex;
align-items: baseline;
justify-content: space-between;
max-width: 720px;
margin: 0 auto 16px;
}
h1 {
margin: 0;
font-size: 22px;
font-weight: 600;
}
.bill-count {
color: #969ba6;
font-size: 13px;
}
.bill-list {
max-width: 720px;
margin: 0 auto;
overflow: hidden;
border-radius: 12px;
background: #fff;
}
.bill-item {
display: flex;
align-items: center;
min-height: 72px;
padding: 0 16px;
border-bottom: 1px solid #f0f1f4;
}
.bill-icon {
display: grid;
width: 36px;
height: 36px;
margin-right: 12px;
place-items: center;
border-radius: 50%;
font-size: 13px;
}
.bill-icon.income {
color: #14966b;
background: #e7f8f1;
}
.bill-icon.expense {
color: #eb635b;
background: #fff0ef;
}
.bill-info {
flex: 1;
min-width: 0;
}
.bill-title {
overflow: hidden;
font-size: 15px;
text-overflow: ellipsis;
white-space: nowrap;
}
.bill-time {
margin-top: 5px;
color: #a0a5ae;
font-size: 12px;
}
.bill-amount {
margin-left: 12px;
font-size: 15px;
font-weight: 500;
}
.bill-amount.income {
color: #14966b;
}
.bill-amount.expense {
color: #20232a;
}
.list-status {
padding: 20px 0;
color: #a0a5ae;
font-size: 13px;
text-align: center;
}
.load-more-target {
height: 1px;
}
@media (min-width: 768px) {
.bill-page {
padding-top: 32px;
}
}
</style>
+515
View File
@@ -0,0 +1,515 @@
<template>
<main class="login-page">
<section class="brand-panel">
<div class="brand-content">
<a class="brand" href="#" aria-label="天泽汽修首页">
<span class="brand-mark">
<svg viewBox="0 0 24 24" aria-hidden="true">
<path
d="M21 7.5a6.6 6.6 0 0 1-8.8 6.2L6.2 19.7a2.1 2.1 0 0 1-3-3l6-6A6.6 6.6 0 0 1 15.5 3l-2.7 2.7 1.5 1.5L17 4.5A6.6 6.6 0 0 1 21 7.5Z" />
</svg>
</span>
<span>天泽汽修</span>
</a>
<div class="brand-slogan">
<p class="eyebrow">专业 · 安心 · 值得信赖</p>
<h1>让每一次出发<br /><em>都安心无忧</em></h1>
<p class="intro">一站式汽车维修保养服务,专业技师为您的爱车提供贴心呵护。</p>
</div>
<div class="service-tags">
<span>专业技师团队</span><span>原厂品质配件</span><span>透明服务价格</span>
</div>
</div>
<!-- <div class="decor decor-one"></div> -->
<!-- <div class="decor decor-two"></div> -->
</section>
<section class="form-panel">
<div class="login-card">
<div class="mobile-brand">
<span class="brand-mark"><svg viewBox="0 0 24 24" aria-hidden="true">
<path
d="M21 7.5a6.6 6.6 0 0 1-8.8 6.2L6.2 19.7a2.1 2.1 0 0 1-3-3l6-6A6.6 6.6 0 0 1 15.5 3l-2.7 2.7 1.5 1.5L17 4.5A6.6 6.6 0 0 1 21 7.5Z" />
</svg></span>
<strong>天泽汽修</strong>
</div>
<div class="form-heading">
<h2>欢迎回来</h2>
<p>登录后即可查看您的车辆服务记录</p>
</div>
<form class="login-form" @submit.prevent="handleSubmit">
<label for="phone">手机号</label>
<div class="input-wrap">
<svg viewBox="0 0 24 24" aria-hidden="true">
<circle cx="12" cy="7" r="3.5" />
<path d="M5 20c.5-3.5 2.8-5.5 7-5.5s6.5 2 7 5.5" />
</svg>
<input id="phone" type="tel" placeholder="请输入您的手机号" autocomplete="tel" />
</div>
<div class="password-label"><label for="password">登录密码</label><a href="#">忘记密码?</a></div>
<div class="input-wrap">
<svg viewBox="0 0 24 24" aria-hidden="true">
<rect x="5" y="10" width="14" height="10" rx="2" />
<path d="M8 10V7a4 4 0 0 1 8 0v3" />
</svg>
<input id="password" type="password" placeholder="请输入登录密码" autocomplete="current-password" />
<button type="button" class="password-toggle" aria-label="显示密码"><svg viewBox="0 0 24 24"
aria-hidden="true">
<path d="M3 12s3.2-5 9-5 9 5 9 5-3.2 5-9 5-9-5-9-5Z" />
<circle cx="12" cy="12" r="2" />
</svg></button>
</div>
<label class="remember"><input type="checkbox" /><span>记住我</span></label>
<button :disabled="loading" type="submit" class="login-button">{{ loading ? '登录中...' : '登录' }}</button>
</form>
<p class="register-tip">还没有账号?<a href="#">立即注册</a></p>
<div class="agreement"><span class="agreement-line"></span><span>登录即表示您同意</span><a
href="#">《用户服务协议》</a><span>和</span><a href="#">《隐私政策》</a><span class="agreement-line"></span>
</div>
</div>
<p class="copyright">© 2024 天泽汽修 · 用心服务每一位车主</p>
</section>
</main>
</template>
<script setup lang="ts">
import { ref } from 'vue';
import { useRouter } from 'vue-router';
const router = useRouter();
const formData = ref({
phone: '',
password: '',
remember: false
});
const loading = ref(false);
async function handleSubmit() {
loading.value = true;
try {
// 模拟登录请求
await new Promise(resolve => setTimeout(resolve, 1000));
alert(`登录成功!手机号:${formData.value.phone}`);
router.push('/main'); // 登录成功后跳转到主页面
} catch (error) {
console.error('登录失败', error);
} finally {
loading.value = false;
}
}
</script>
<style>
* {
box-sizing: border-box;
}
.login-page {
display: flex;
min-height: 100vh;
color: #1d2b45;
background: #f7f9fc;
font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}
.brand-panel,
.form-panel {
width: 50%;
}
.brand-panel {
position: relative;
display: flex;
min-height: 100vh;
overflow: hidden;
color: #fff;
background: linear-gradient(145deg, #0d58c9, #176fe1 62%, #2782eb);
}
.brand-content {
position: relative;
z-index: 1;
display: flex;
width: 76%;
max-width: 570px;
margin: 0 auto;
padding: clamp(42px, 8vh, 85px) 0;
flex-direction: column;
}
.brand,
.mobile-brand {
display: flex;
align-items: center;
gap: 11px;
color: inherit;
font-size: 21px;
font-weight: 800;
text-decoration: none;
}
.brand-mark {
display: grid;
width: 39px;
height: 39px;
place-items: center;
background: #fff;
border-radius: 11px;
}
.brand-mark svg {
width: 24px;
fill: #1769e1;
}
.brand-slogan {
margin-top: clamp(90px, 17vh, 175px);
display: flex;
flex-direction: column;
align-items: center;
}
.eyebrow {
margin: 0 0 20px;
color: #bcd7ff;
font-size: 13px;
letter-spacing: 3px;
}
.brand-slogan h1 {
margin: 0;
color: #fff;
font-size: clamp(36px, 4vw, 56px);
font-weight: 800;
letter-spacing: -2px;
line-height: 1.28;
}
.brand-slogan h1 em {
color: #d3e6ff;
font-style: normal;
}
.intro {
width: 80%;
margin: 25px 0 0;
color: #c9ddfb;
font-size: 15px;
line-height: 1.9;
display: flex;
justify-content: center;
}
.service-tags {
display: flex;
margin-top: auto;
gap: 11px;
flex-wrap: wrap;
justify-content: space-around;
}
.service-tags span {
padding: 8px 13px;
color: #d9eaff;
background: #ffffff1c;
border: 1px solid #ffffff2b;
border-radius: 5px;
font-size: 11px;
}
.decor {
position: absolute;
border: 1px solid #ffffff1f;
border-radius: 50%;
}
.decor-one {
top: -180px;
right: -100px;
width: 480px;
height: 480px;
}
.decor-two {
right: 12%;
bottom: -240px;
width: 460px;
height: 460px;
background: #ffffff09;
}
.car-line {
position: absolute;
right: 2%;
bottom: 10%;
width: min(58%, 500px);
opacity: .16;
fill: none;
stroke: #fff;
stroke-linecap: round;
stroke-linejoin: round;
stroke-width: 3;
}
.form-panel {
display: flex;
min-height: 100vh;
padding: 40px 5%;
align-items: center;
flex-direction: column;
justify-content: center;
}
.login-card {
width: 100%;
max-width: 420px;
}
.mobile-brand {
display: none;
color: #1769e1;
font-size: 18px;
}
.mobile-brand .brand-mark {
width: 34px;
height: 34px;
background: #e8f1ff;
}
.mobile-brand .brand-mark svg {
width: 20px;
}
.form-heading {
margin-bottom: 35px;
}
.form-heading h2 {
margin: 0 0 9px;
color: #1b2942;
font-size: 30px;
letter-spacing: -.8px;
}
.form-heading p,
.register-tip,
.agreement {
margin: 0;
color: #8e9aac;
font-size: 13px;
}
.login-form label,
.password-label label {
display: block;
margin-bottom: 9px;
color: #40506a;
font-size: 13px;
font-weight: 600;
}
.password-label {
display: flex;
align-items: center;
justify-content: space-between;
margin-top: 21px;
}
.password-label a,
.register-tip a,
.agreement a {
color: #1769e1;
text-decoration: none;
}
.input-wrap {
display: flex;
height: 48px;
align-items: center;
padding: 0 14px;
gap: 10px;
background: #fff;
border: 1px solid #e0e6ef;
border-radius: 6px;
transition: border-color .2s, box-shadow .2s;
}
.input-wrap:focus-within {
border-color: #1769e1;
box-shadow: 0 0 0 3px #1769e11a;
}
.input-wrap>svg {
width: 18px;
flex: 0 0 18px;
fill: none;
stroke: #a4afbd;
stroke-linecap: round;
stroke-linejoin: round;
stroke-width: 1.7;
}
.input-wrap input {
width: 100%;
min-width: 0;
padding: 0;
color: #25344d;
outline: 0;
border: 0;
background: transparent;
font: inherit;
font-size: 13px;
}
.input-wrap input::placeholder {
color: #adb6c3;
}
.password-toggle {
display: grid;
width: 24px;
height: 30px;
padding: 0;
place-items: center;
color: #a4afbd;
background: none;
border: 0;
cursor: pointer;
}
.password-toggle svg {
width: 18px;
fill: none;
stroke: currentColor;
stroke-linecap: round;
stroke-linejoin: round;
stroke-width: 1.6;
}
.remember {
display: flex !important;
margin: 17px 0 25px !important;
align-items: center;
gap: 8px;
color: #77859a !important;
font-size: 12px !important;
font-weight: 400 !important;
}
.remember input {
width: 15px;
height: 15px;
margin: 0;
accent-color: #1769e1;
}
.login-button {
width: 100%;
height: 48px;
color: #fff;
background: #1769e1;
border: 0;
border-radius: 6px;
box-shadow: 0 8px 18px #1769e12e;
cursor: pointer;
font: inherit;
font-size: 14px;
font-weight: 600;
transition: background .2s, transform .2s;
}
.login-button:hover {
background: #0e5ac7;
transform: translateY(-1px);
}
.register-tip {
margin-top: 25px;
text-align: center;
}
.register-tip a {
margin-left: 4px;
font-weight: 600;
}
.agreement {
display: flex;
margin-top: 75px;
align-items: center;
justify-content: center;
gap: 4px;
font-size: 10px;
white-space: nowrap;
}
.agreement-line {
width: 25px;
height: 1px;
margin: 0 5px;
background: #e2e7ee;
}
.copyright {
margin: 28px 0 0;
color: #b0b9c6;
font-size: 10px;
}
@media (max-width: 760px) {
.login-page {
display: block;
background: #f7f9fc;
}
.brand-panel {
display: none;
}
.form-panel {
width: 100%;
min-height: 100vh;
padding: 38px 7% 25px;
justify-content: flex-start;
}
.login-card {
max-width: 470px;
}
.mobile-brand {
display: flex;
margin-bottom: 65px;
}
.form-heading {
margin-bottom: 30px;
}
.form-heading h2 {
font-size: 27px;
}
.agreement {
margin-top: 58px;
}
}
@media (max-width: 380px) {
.form-panel {
padding-right: 20px;
padding-left: 20px;
}
.mobile-brand {
margin-bottom: 48px;
}
.agreement-line {
width: 12px;
margin: 0 2px;
}
}
</style>
+683 -5
View File
@@ -1,12 +1,690 @@
<template>
<div><div class="container">a</div></div>
<main class="workshop-page">
<section class="page-content">
<div class="welcome-row">
<div>
<p class="eyebrow">专业服务 · 品质保障 · 贴心陪伴</p>
<h1>爱车养护,就到天泽汽修 <span>🚗</span></h1>
<p class="subheading">专注每一次检修,让您的每一段旅程都安心无忧。</p>
</div>
<button class="primary-button">
<span>+</span> 预约到店
</button>
</div>
<div class="stats-grid">
<article class="stat-card">
<div class="stat-icon blue">
<svg viewBox="0 0 24 24" aria-hidden="true">
<path d="M7 6h7l3 3v11H7V6Zm3-3h4v3h-4V3Zm7 7h3v4h-3M10 10h4M10 14h4M10 18h4" />
</svg>
</div>
<div>
<p>机油更换</p><strong>70</strong><small>天</small>
</div>
<span class="trend up">OK</span>
</article>
<article class="stat-card">
<div class="stat-icon orange">
<svg viewBox="0 0 24 24" aria-hidden="true">
<path d="M6 3h12v18H6zM9 7h6M9 11h6M9 15h3" />
</svg>
</div>
<div>
<p>累计服务年限</p><strong>15</strong><small>年</small>
</div>
<span class="trend up">专业沉淀</span>
</article>
<article class="stat-card">
<div class="stat-icon green">
<svg viewBox="0 0 24 24" aria-hidden="true">
<path d="M12 3 4 6v5c0 5 3.4 8.5 8 10 4.6-1.5 8-5 8-10V6l-8-3Z" />
<path d="m8 12 2.5 2.5L16 9" />
</svg>
</div>
<div>
<p>技师团队</p><strong>28</strong><small>位</small>
</div>
<span class="trend up">经验丰富</span>
</article>
<article class="stat-card">
<div class="stat-icon purple">
<svg viewBox="0 0 24 24" aria-hidden="true">
<path d="M20 11a8 8 0 1 1-2.3-5.7M20 4v7h-7" />
</svg>
</div>
<div>
<p>客户好评率</p><strong>99.2</strong><small>%</small>
</div>
<span class="trend neutral">口碑之选</span>
</article>
</div>
<div class="dashboard-grid">
<section class="panel appointments">
<div class="panel-heading">
<div>
<h2>热门服务项目</h2>
<p>为您的爱车提供全方位呵护</p>
</div>
<a href="#">查看全部 <span>→</span></a>
</div>
<div class="appointment-list">
<div class="appointment-item">
<time>01<small>服务项目</small></time>
<div class="car-badge">B</div>
<div class="appointment-info"><strong>常规保养</strong>
<p>更换机油、机滤,全面检查车辆状态</p>
</div>
<span class="status waiting">热 门</span>
</div>
<div class="appointment-item">
<time>02<small>服务项目</small></time>
<div class="car-badge red">A</div>
<div class="appointment-info"><strong>空调清洗</strong>
<p>深度清洁空调系统,清新车内空气</p>
</div>
<span class="status serving">推荐</span>
</div>
<div class="appointment-item">
<time>03<small>服务项目</small></time>
<div class="car-badge green">T</div>
<div class="appointment-info"><strong>安全检测</strong>
<p>刹车、轮胎、灯光等 32 项专业检查</p>
</div>
<span class="status waiting">安心</span>
</div>
<div class="appointment-item">
<time>04<small>服务项目</small></time>
<div class="car-badge dark">V</div>
<div class="appointment-info"><strong>轮胎服务</strong>
<p>轮胎检测、换位及动平衡服务</p>
</div>
<span class="status done">专业</span>
</div>
</div>
</section>
<section class="panel quick-panel">
<div class="panel-heading">
<div>
<h2>便捷服务</h2>
<p>轻松预约您的爱车服务</p>
</div>
</div>
<div class="quick-actions">
<a href="#"><span class="quick-icon blue">+</span><strong>预约保养</strong><small>提前预约,省时省心</small></a>
<a href="#"><span class="quick-icon orange">♧</span><strong>在线估价</strong><small>快速了解服务价格</small></a>
<a href="#"><span class="quick-icon green">▣</span><strong>服务门店</strong><small>查看门店地址与营业时间</small></a>
<a href="#"><span class="quick-icon purple">◷</span><strong>联系客服</strong><small>专业顾问为您答疑</small></a>
</div>
</section>
</div>
<section class="notice-banner">
<div class="notice-icon">!</div>
<div><strong>首次到店礼遇</strong>
<p>新客户到店即可领取免费安全检测,提前预约还可享专属优惠。</p>
</div>
<a href="#">立即预约 <span>→</span></a>
</section>
</section>
</main>
</template>
<script setup lang="ts">
</script>
<style>
.container {
width: 100px;
height: 100px;
background-color: #f0f0f0;
* {
box-sizing: border-box;
}
.workshop-page {
min-height:100vh - 74px;
color: #17233c;
background: #f5f7fb;
font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}
.topbar-actions {
display: flex;
align-items: center;
gap: 18px;
margin-left: auto;
}
.icon-button {
position: relative;
display: grid;
padding: 0;
width: 25px;
height: 32px;
place-items: center;
color: #7d899d;
background: none;
border: 0;
cursor: pointer;
}
.icon-button svg {
width: 20px;
fill: none;
stroke: currentColor;
stroke-linecap: round;
stroke-linejoin: round;
stroke-width: 1.8;
}
.notification i {
position: absolute;
top: 4px;
right: 0;
width: 6px;
height: 6px;
background: #f15b5b;
border: 2px solid #fff;
border-radius: 50%;
}
.user-avatar {
display: grid;
width: 34px;
height: 34px;
place-items: center;
color: #1769e0;
background: #dceaff;
border-radius: 50%;
font-size: 14px;
font-weight: 700;
}
.user-name {
color: #34415a;
font-size: 14px;
}
.page-content {
max-width: 1310px;
margin: auto;
padding: 43px 28px 60px;
}
.welcome-row {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 34px;
}
.eyebrow {
margin: 0 0 10px;
color: #8d98aa;
font-size: 12px;
}
h1 {
margin: 0 0 8px;
color: #17233c;
font-size: 27px;
letter-spacing: -.7px;
}
h1 span {
font-size: 23px;
}
.subheading {
margin: 0;
color: #7c8799;
font-size: 13px;
}
.primary-button {
display: flex;
align-items: center;
gap: 8px;
padding: 12px 19px;
color: #fff;
background: #1769e0;
border: 0;
border-radius: 7px;
box-shadow: 0 5px 12px #1769e033;
cursor: pointer;
font-size: 13px;
font-weight: 600;
}
.primary-button span {
font-size: 20px;
font-weight: 300;
line-height: 14px;
}
.stats-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 18px;
margin-bottom: 25px;
}
.stat-card {
display: flex;
align-items: center;
min-height: 122px;
padding: 22px 18px;
background: #fff;
border: 1px solid #edf0f5;
border-radius: 10px;
box-shadow: 0 4px 14px #253b5d08;
}
.stat-icon {
display: grid;
flex: 0 0 45px;
width: 45px;
height: 45px;
margin-right: 14px;
place-items: center;
border-radius: 10px;
}
.stat-icon svg {
width: 22px;
fill: none;
stroke: currentColor;
stroke-linecap: round;
stroke-linejoin: round;
stroke-width: 1.7;
}
.blue {
color: #216de1;
background: #eaf2ff;
}
.orange {
color: #ec8b28;
background: #fff3e4;
}
.green {
color: #2ba66b;
background: #e7f8ef;
}
.purple {
color: #8c62dc;
background: #f0eaff;
}
.stat-card p {
margin: 0 0 7px;
color: #8490a2;
font-size: 12px;
}
.stat-card strong {
color: #1b2942;
font-size: 25px;
line-height: 1;
}
.stat-card small {
margin-left: 4px;
color: #8994a6;
font-size: 11px;
}
.trend {
align-self: flex-start;
margin: 3px 0 0 auto;
padding: 4px 7px;
border-radius: 4px;
font-size: 10px;
white-space: nowrap;
}
.trend.up {
color: #2ca66c;
background: #eaf8f0;
}
.trend.neutral {
color: #8b63d9;
background: #f0eaff;
}
.dashboard-grid {
display: grid;
grid-template-columns: minmax(0, 1.58fr) minmax(340px, 1fr);
gap: 20px;
}
.panel {
padding: 24px 25px;
background: #fff;
border: 1px solid #edf0f5;
border-radius: 10px;
box-shadow: 0 4px 14px #253b5d08;
}
.panel-heading {
display: flex;
align-items: flex-start;
justify-content: space-between;
padding-bottom: 17px;
border-bottom: 1px solid #f0f2f6;
}
.panel-heading h2 {
margin: 0 0 5px;
color: #1e2b43;
font-size: 16px;
}
.panel-heading p {
margin: 0;
color: #98a2b1;
font-size: 11px;
}
.panel-heading a {
color: #1769e0;
font-size: 11px;
text-decoration: none;
}
.panel-heading a span,
.notice-banner a span {
margin-left: 4px;
font-size: 16px;
}
.appointment-item {
display: flex;
align-items: center;
min-height: 66px;
border-bottom: 1px solid #f2f3f6;
}
.appointment-item:last-child {
border-bottom: 0;
}
.appointment-item time {
width: 56px;
color: #35425a;
font-size: 13px;
font-weight: 700;
}
.appointment-item time small {
display: block;
margin-top: 3px;
color: #a0a9b7;
font-size: 10px;
font-weight: 400;
}
.car-badge {
display: grid;
width: 31px;
height: 31px;
margin-right: 12px;
place-items: center;
color: #286de0;
background: #e5efff;
border-radius: 7px;
font-size: 12px;
font-weight: 800;
}
.car-badge.red {
color: #e45656;
background: #ffebeb;
}
.car-badge.green {
color: #2c9b68;
background: #e4f7ed;
}
.car-badge.dark {
color: #53647b;
background: #edf0f4;
}
.appointment-info {
flex: 1;
}
.appointment-info strong {
display: block;
margin-bottom: 4px;
color: #354158;
font-size: 12px;
}
.appointment-info p {
margin: 0;
color: #9aa4b3;
font-size: 11px;
}
.status {
padding: 5px 9px;
border-radius: 4px;
font-size: 10px;
}
.status.waiting {
color: #d98627;
background: #fff3e4;
}
.status.serving {
color: #216de1;
background: #eaf2ff;
}
.status.done {
color: #2ca66c;
background: #eaf8f0;
}
.quick-actions {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 12px;
padding-top: 17px;
}
.quick-actions a {
display: flex;
min-height: 103px;
padding: 15px 13px;
flex-direction: column;
border: 1px solid #eef0f4;
border-radius: 8px;
text-decoration: none;
transition: border-color .2s, transform .2s;
}
.quick-actions a:hover {
border-color: #b7d0f7;
transform: translateY(-2px);
}
.quick-icon {
display: grid;
width: 30px;
height: 30px;
margin-bottom: 9px;
place-items: center;
border-radius: 7px;
font-size: 19px;
}
.quick-actions strong {
color: #3a465c;
font-size: 12px;
}
.quick-actions small {
margin-top: 4px;
color: #a0a9b7;
font-size: 10px;
}
.notice-banner {
display: flex;
align-items: center;
gap: 13px;
margin-top: 20px;
padding: 14px 18px;
color: #775c2d;
background: #fffbf2;
border: 1px solid #faefd1;
border-radius: 8px;
}
.notice-icon {
display: grid;
flex: 0 0 25px;
width: 25px;
height: 25px;
place-items: center;
color: #fff;
background: #e8ad42;
border-radius: 50%;
font-size: 14px;
font-weight: 800;
}
.notice-banner strong {
font-size: 12px;
}
.notice-banner p {
margin: 3px 0 0;
color: #9c875f;
font-size: 11px;
}
.notice-banner b {
color: #e28d24;
}
.notice-banner a {
margin-left: auto;
color: #d4871f;
font-size: 11px;
text-decoration: none;
white-space: nowrap;
}
@media (max-width: 900px) {
.topbar {
gap: 24px;
}
.nav-links {
gap: 16px;
}
.stats-grid {
grid-template-columns: repeat(2, 1fr);
}
.dashboard-grid {
grid-template-columns: 1fr;
}
}
@media (max-width: 600px) {
.topbar {
height: auto;
min-height: 68px;
padding: 14px 18px;
flex-wrap: wrap;
}
.nav-links {
order: 3;
width: 100%;
height: 38px;
justify-content: space-between;
}
.topbar-actions {
gap: 8px;
}
.user-name {
display: none;
}
.page-content {
padding: 28px 16px 40px;
}
.welcome-row {
align-items: flex-start;
flex-direction: column;
gap: 20px;
}
.stats-grid {
gap: 10px;
}
.stat-card {
min-height: 105px;
padding: 14px 10px;
}
.stat-icon {
flex-basis: 36px;
width: 36px;
height: 36px;
margin-right: 8px;
}
.stat-icon svg {
width: 18px;
}
.stat-card strong {
font-size: 20px;
}
.trend {
display: none;
}
.panel {
padding: 18px 14px;
}
.appointment-item time {
width: 48px;
}
.appointment-info strong {
font-size: 11px;
}
.status {
padding: 4px 6px;
}
.notice-banner {
align-items: flex-start;
}
.notice-banner a {
margin-top: 4px;
}
}
</style>