/* =============================================
   前端样式 — 岁甜门店管理系统（烘焙甜品风）
   yb.mcool.vip
   ============================================= */

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

:root {
    --primary: #f0617e;
    --primary-hover: #df4a6c;
    --primary-soft: #ffeef2;
    --gold: #d9a45b;
    --text: #3d2f2a;
    --text-secondary: #7a6a63;
    --text-muted: #a89890;
    --bg: #ffffff;
    --bg-secondary: #fff7f3;
    --border: #f3e4de;
    --radius: 16px;
    --shadow: 0 8px 30px rgba(240, 97, 126, 0.10);
    --container: 1080px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 15px;
    color: var(--text);
    background: #fffaf7;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); }

/* ---- Header ---- */
.site-header {
    background: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 50;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.site-header .container {
    display: flex; align-items: center; justify-content: space-between;
    height: 62px;
}

.site-logo {
    display: flex; align-items: center; gap: 10px;
    font-size: 18px; font-weight: 800; color: var(--text);
    letter-spacing: 0.5px;
}
.site-logo:hover { color: var(--text); }

.logo-badge {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; font-size: 20px;
    background: linear-gradient(135deg, #ffe3ec, #ffd0dd);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(240, 97, 126, 0.18);
}

.site-nav {
    display: flex; align-items: center; gap: 22px;
}

.site-nav a {
    color: var(--text-secondary); font-size: 14px;
    transition: color 0.2s;
}
.site-nav a:hover { color: var(--primary); }

.site-nav .nav-cta { color: var(--primary); font-weight: 600; }

.user-greeting {
    font-size: 13px; color: var(--text-muted);
}

/* ---- Hero ---- */
.hero {
    position: relative;
    padding: 96px 0 84px;
    text-align: center;
    background: linear-gradient(180deg, #fff3ec 0%, #ffe9ef 55%, #fffaf7 100%);
    overflow: hidden;
}

/* 背景装饰大圆 */
.hero::before {
    content: '';
    position: absolute; top: -180px; left: 50%;
    transform: translateX(-50%);
    width: 720px; height: 720px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.85) 0%, rgba(255, 214, 224, 0.35) 60%, transparent 72%);
    pointer-events: none;
}

.hero-badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 16px;
    background: #fff;
    border: 1px solid #ffd9e3;
    border-radius: 999px;
    font-size: 13px; font-weight: 600; color: var(--primary);
    box-shadow: 0 2px 10px rgba(240, 97, 126, 0.10);
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 46px; font-weight: 800; color: #4a342b;
    margin-bottom: 14px; letter-spacing: -0.5px;
}

.hero-desc {
    font-size: 18px; color: #8a6f66;
    max-width: 520px; margin: 0 auto 36px;
}

.hero-actions {
    display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
}

/* ---- Section header ---- */
.section-hdr {
    text-align: center; margin-bottom: 44px;
}
.section-hdr h2 {
    font-size: 30px; font-weight: 800; color: #4a342b;
    margin-bottom: 8px;
}
.section-hdr p {
    font-size: 15px; color: var(--text-muted);
}

/* ---- Features ---- */
.features {
    padding: 76px 0 88px;
    background: var(--bg-secondary);
}

.features-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
}

.feature-card {
    background: #fff; padding: 36px 22px;
    border-radius: 20px;
    border: 1px solid #fae9e2;
    box-shadow: 0 6px 24px rgba(217, 164, 91, 0.08);
    text-align: center;
    transition: transform 0.25s, box-shadow 0.25s;
}
.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 36px rgba(240, 97, 126, 0.16);
}

.feature-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 58px; height: 58px; font-size: 28px;
    background: linear-gradient(135deg, #fff0f4, #ffe3ec);
    border-radius: 18px;
    margin-bottom: 16px;
}

.feature-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; color: #4a342b; }
.feature-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.65; }

/* ---- Buttons ---- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 8px; padding: 12px 28px; border: 1px solid transparent;
    border-radius: 12px; font-size: 15px; font-weight: 600;
    cursor: pointer; transition: all 0.2s; text-decoration: none;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover {
    background: var(--primary-hover); color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(240, 97, 126, 0.35);
}
.btn-outline {
    background: #fff; color: var(--text); border-color: #ffd9e3;
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
.btn-lg { padding: 14px 38px; font-size: 16px; border-radius: 14px; }
.btn-sm { padding: 8px 18px; font-size: 13px; border-radius: 10px; }

/* ---- Footer ---- */
.site-footer {
    padding: 36px 0; text-align: center;
    border-top: 1px solid var(--border);
    background: #fff;
}
.site-footer p { font-size: 13px; color: var(--text-muted); }
.site-footer .record { margin-top: 6px; font-size: 12px; }
.site-footer .footer-links { margin-bottom: 10px; font-size: 13px; }
.site-footer .footer-links a { color: var(--text-muted); text-decoration: none; }
.site-footer .footer-links a:hover { color: var(--primary); }

/* ---- Responsive ---- */
@media (max-width: 900px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .hero { padding: 72px 0 64px; }
    .hero h1 { font-size: 30px; }
    .hero-desc { font-size: 15px; }
    .section-hdr h2 { font-size: 24px; }
    .btn-lg { padding: 13px 28px; font-size: 15px; }
}

@media (max-width: 480px) {
    .features-grid { grid-template-columns: 1fr; }
    .site-nav { gap: 12px; }
    .site-nav a { font-size: 12px; }
    .site-nav .btn-sm { padding: 6px 12px; font-size: 12px; }
}
