/* ==========================================================================
   美甲会员管理系统 —— 前台样式（会员端 member.impressive.com）
   通用组件（按钮/表格/表单/徽章/分页/提示等）复用 /static/common/css/ui.css
   ========================================================================== */

/* ---------- 顶部导航 ---------- */
.home-header {
    background: #ffffff;
    border-bottom: 1px solid #f3dfe7;
    position: sticky;
    top: 0;
    z-index: 100;
}

.home-header-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.home-logo {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 17px;
    font-weight: 700;
    color: #2b2b33;
}

.home-logo .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f089b0, #d9558a);
}

.home-logo b {
    font-weight: 700;
}

.home-nav {
    display: flex;
    gap: 6px;
    flex: 1;
    flex-wrap: wrap;
}

.home-nav a {
    padding: 7px 14px;
    border-radius: 18px;
    font-size: 14px;
    color: #6f6169;
}

.home-nav a:hover {
    background: #fdf1f6;
    color: #d9558a;
    opacity: 1;
}

.home-nav a.active {
    background: linear-gradient(135deg, #f089b0, #d9558a);
    color: #ffffff;
    font-weight: 600;
}

.home-user {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #6f6169;
    flex-wrap: wrap;
}

.home-user .btn {
    height: 32px;
    line-height: 30px;
}

/* ---------- 主体与页脚 ---------- */
.home-main {
    max-width: 1120px;
    margin: 0 auto;
    padding: 22px 20px 60px;
    min-height: 60vh;
}

.home-footer {
    background: #241f2b;
    color: #b9aec4;
    padding: 26px 20px;
    font-size: 13px;
    line-height: 2;
    text-align: center;
}

.home-footer .muted {
    color: #857a90;
}

/* ---------- 首页 Hero ---------- */
.hero {
    background: linear-gradient(135deg, #fdf1f6 0%, #f7e8f0 50%, #f3f0fa 100%);
    border-radius: 18px;
    padding: 46px 40px;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 30px;
    line-height: 1.35;
    margin-bottom: 12px;
}

.hero h1 span {
    color: #d9558a;
}

.hero p {
    font-size: 15px;
    color: #7c6c74;
    max-width: 720px;
    line-height: 1.9;
}

.hero-actions {
    margin-top: 22px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-actions .btn {
    height: 40px;
    line-height: 38px;
    padding: 0 22px;
    border-radius: 22px;
}

/* ---------- 区块标题 ---------- */
.section {
    margin-bottom: 26px;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    gap: 12px;
    flex-wrap: wrap;
}

.section-head h2 {
    font-size: 19px;
}

.section-head h2 small {
    font-size: 13px;
    font-weight: 400;
    color: #a2949b;
    margin-left: 8px;
}

/* ---------- 卡片网格 ---------- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
}

.service-card {
    background: #ffffff;
    border: 1px solid #f3dfe7;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 4px 16px rgba(217, 85, 138, 0.05);
    display: flex;
    flex-direction: column;
}

.service-card h3 {
    font-size: 16px;
    margin-bottom: 6px;
}

.service-card .cat {
    font-size: 12px;
    color: #a2949b;
    margin-bottom: 10px;
}

.service-card .desc {
    font-size: 13px;
    color: #8d7d85;
    line-height: 1.7;
    flex: 1;
}

.service-card .price-row {
    margin-top: 14px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

.service-card .price {
    font-size: 20px;
    font-weight: 700;
    color: #d9558a;
}

.service-card .price small {
    font-size: 12px;
    font-weight: 400;
    color: #a2949b;
    margin-left: 2px;
}

.service-card .meta {
    font-size: 12px;
    color: #a2949b;
}

/* ---------- 通知公告 ---------- */
.notice-list {
    list-style: none;
}

.notice-item {
    padding: 13px 0;
    border-bottom: 1px dashed #f0eef5;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

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

.notice-item .title {
    font-weight: 600;
    color: #2b2b33;
}

.notice-item .time {
    font-size: 12px;
    color: #a2949b;
    margin-left: auto;
    white-space: nowrap;
}

.notice-item .content {
    font-size: 13px;
    color: #8d7d85;
    line-height: 1.8;
    margin-top: 4px;
}

/* ---------- 会员中心布局 ---------- */
.member-layout {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.member-side {
    width: 190px;
    flex: 0 0 190px;
    background: #ffffff;
    border: 1px solid #f3dfe7;
    border-radius: 14px;
    padding: 12px;
    position: sticky;
    top: 86px;
}

.member-side .who {
    padding: 8px 10px 14px;
    border-bottom: 1px dashed #f0eef5;
    margin-bottom: 8px;
}

.member-side .who b {
    display: block;
    font-size: 15px;
}

.member-side .who span {
    font-size: 12px;
    color: #a2949b;
}

.member-side a {
    display: block;
    padding: 9px 12px;
    border-radius: 9px;
    font-size: 14px;
    color: #6f6169;
    margin-bottom: 2px;
}

.member-side a:hover {
    background: #fdf1f6;
    color: #d9558a;
    opacity: 1;
}

.member-side a.active {
    background: linear-gradient(135deg, #f089b0, #d9558a);
    color: #ffffff;
    font-weight: 600;
}

.member-body {
    flex: 1;
    min-width: 0;
}

/* ---------- 登录/注册 ---------- */
.auth-box {
    max-width: 420px;
    margin: 40px auto;
    background: #ffffff;
    border-radius: 18px;
    padding: 34px 32px 30px;
    box-shadow: 0 16px 44px rgba(150, 80, 115, 0.13);
}

.auth-box h1 {
    font-size: 21px;
    text-align: center;
    margin-bottom: 6px;
}

.auth-box .sub {
    text-align: center;
    font-size: 13px;
    color: #9b8b93;
    margin-bottom: 24px;
}

.auth-box .form-actions {
    margin-top: 18px;
    padding-top: 0;
    border-top: none;
}

.auth-box .switch {
    margin-top: 18px;
    text-align: center;
    font-size: 13px;
    color: #8d7d85;
}

/* ---------- 窄屏适配 ---------- */
@media (max-width: 820px) {
    .member-layout {
        flex-direction: column;
    }

    .member-side {
        width: 100%;
        flex: none;
        position: static;
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }

    .member-side .who {
        width: 100%;
        border-bottom: none;
        padding-bottom: 6px;
        margin-bottom: 0;
    }

    .member-side a {
        margin-bottom: 0;
    }

    .hero {
        padding: 30px 22px;
    }

    .hero h1 {
        font-size: 22px;
    }
}

/* ---------- 页头 Logo（后台可上传） ---------- */
.home-logo .logo-img {
    display: block;
    max-height: 42px;
    max-width: 220px;
    width: auto;
    object-fit: contain;
}