:root {
    --primary: #b05c2a;
    --primary-dark: #8f471e;
    --primary-light: #fbeEE4;
    --accent: #2e7d5b;
    --text: #2c2620;
    --text-light: #8a7f72;
    --bg: #fffdf9;
    --bg-soft: #faf5ec;
    --radius: 14px;
    --shadow: 0 10px 30px rgba(176, 92, 42, .10);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}
.container { width: min(1180px, 92%); margin: 0 auto; }
a { text-decoration: none; color: inherit; }

/* ===== 按钮 ===== */
.btn {
    display: inline-block; padding: 10px 26px; border-radius: 999px;
    font-size: 15px; cursor: pointer; border: none; transition: .25s;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn-primary:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.btn-ghost { border: 1px solid #ecd8c4; color: var(--primary); background: transparent; }
.btn-ghost:hover { background: var(--primary-light); }
.btn-lg { padding: 14px 34px; font-size: 16px; }

/* ===== 导航 ===== */
.navbar {
    position: fixed; inset: 0 0 auto 0; z-index: 100;
    background: rgba(255,253,249,.92); backdrop-filter: blur(10px);
    border-bottom: 1px solid #f2e8da; transition: .3s;
}
.nav-wrap { display: flex; align-items: center; height: 68px; gap: 28px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; }
.logo-icon {
    width: 38px; height: 38px; border-radius: 10px; background: var(--primary);
    color: #fff; display: grid; place-items: center; font-size: 20px;
}
.logo-text i { font-style: normal; font-size: 12px; color: var(--text-light); margin-left: 8px; font-weight: 400; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { font-size: 15px; color: var(--text); position: relative; padding: 6px 0; }
.nav-links a::after {
    content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px;
    background: var(--primary); transition: .25s;
}
.nav-links a:hover::after { width: 100%; }
.nav-cta { margin-left: 4px; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; margin-left: auto; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; }

/* ===== Hero ===== */
.hero {
    padding: 150px 0 90px;
    background:
        radial-gradient(800px 400px at 85% 10%, #fbe9d7 0%, transparent 60%),
        radial-gradient(600px 300px at 10% 90%, #e6f0ea 0%, transparent 60%),
        var(--bg-soft);
}
.hero-wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center; }
.hero h1 { font-size: clamp(34px, 4.6vw, 54px); line-height: 1.25; letter-spacing: 1px; }
.hero h1 em { font-style: normal; color: var(--primary); }
.hero-sub { margin: 22px 0 30px; font-size: 17px; color: var(--text-light); }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 38px; margin-top: 44px; flex-wrap: wrap; }
.hero-stats strong { font-size: 30px; color: var(--primary); display: block; }
.hero-stats span { font-size: 13px; color: var(--text-light); }
.hero-photo {
    background: linear-gradient(135deg, #f7e4cf, #f1d4b6);
    border-radius: var(--radius); min-height: 340px;
    display: grid; place-items: center; position: relative;
    box-shadow: var(--shadow); border: 1px solid #f2e3d2;
}
.photo-placeholder { font-size: 110px; }
.photo-badge {
    position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
    background: rgba(255,255,255,.92); color: var(--primary);
    font-size: 13px; padding: 6px 18px; border-radius: 999px; font-weight: 600;
}

/* ===== 通用 section ===== */
.section { padding: 90px 0; }
.section-head { text-align: center; margin-bottom: 54px; }
.section-head h2 { font-size: clamp(26px, 3.2vw, 36px); }
.section-head p { color: var(--text-light); margin-top: 10px; }

/* ===== 机构简介 ===== */
.about { background: var(--bg); }
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 46px; align-items: center; }
.about-text p { color: var(--text-light); margin-bottom: 14px; }
.about-list { list-style: none; margin-top: 10px; display: grid; gap: 10px; color: var(--text); }
.about-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.about-card {
    background: var(--bg-soft); border-radius: var(--radius); padding: 24px 20px;
    border: 1px solid #f2e8da; transition: .25s;
}
.about-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.about-card b { display: block; font-size: 17px; margin-bottom: 4px; color: var(--primary); }
.about-card span { font-size: 13.5px; color: var(--text-light); }

/* ===== 照护服务 ===== */
.services { background: var(--bg-soft); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card {
    background: #fff; border: 1px solid #f2e8da; border-radius: var(--radius);
    padding: 30px 26px; transition: .3s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.service-card.featured { border-color: var(--primary); }
.service-icon { font-size: 34px; }
.service-card h3 { margin: 14px 0 8px; font-size: 19px; }
.service-card p { color: var(--text-light); font-size: 14.5px; min-height: 66px; }
.service-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.service-tags span {
    font-size: 12px; color: var(--primary); background: var(--primary-light);
    padding: 3px 12px; border-radius: 999px;
}

/* ===== 居住环境 ===== */
.rooms { background: var(--bg); }
.room-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.room-card {
    background: #fff; border: 1px solid #f2e8da; border-radius: var(--radius);
    padding: 28px 26px; text-align: center; transition: .3s;
}
.room-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.room-card.featured { border-color: var(--primary); }
.room-photo { font-size: 56px; margin-bottom: 10px; }
.room-card h3 { font-size: 19px; margin-bottom: 6px; }
.room-card p { color: var(--text-light); font-size: 14px; margin-bottom: 14px; }
.room-price { font-size: 24px; font-weight: 800; color: var(--primary); }
.room-price i { font-style: normal; font-size: 13px; font-weight: 400; color: var(--text-light); }
.room-note { text-align: center; margin-top: 26px; color: var(--text-light); font-size: 13.5px; }

/* ===== 咨询预约 ===== */
.contact { background: linear-gradient(135deg, #5b3a22, #7d5230); color: #fff; }
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.contact h2 { font-size: 30px; margin-bottom: 12px; }
.contact p { color: #ecd9c8; }
.contact p b { color: #ffd8ae; }
.contact-list { list-style: none; margin-top: 24px; display: grid; gap: 12px; color: #f2e4d6; }
.contact-form {
    background: #fff; border-radius: var(--radius); padding: 34px;
    display: grid; gap: 14px; color: var(--text);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form input, .contact-form select, .contact-form textarea {
    width: 100%; padding: 12px 16px; border: 1px solid #ecdfd2; border-radius: 10px;
    font-size: 14px; font-family: inherit; outline: none; transition: .2s;
    background: #fff; resize: vertical; color: var(--text);
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
    border-color: var(--primary); box-shadow: 0 0 0 3px rgba(176,92,42,.12);
}
.contact-form .btn { justify-self: start; }
.form-tip { font-size: 13px; min-height: 18px; }
.form-tip.ok { color: #2e7d5b; }
.form-tip.err { color: #c0392b; }

/* ===== Footer ===== */
.footer { background: #3a2517; color: #c9b3a0; padding: 46px 0 0; }
.footer-wrap { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; align-items: flex-start; }
.footer-brand { display: flex; flex-direction: column; gap: 10px; color: #eadcd0; font-weight: 600; }
.footer-brand p { font-weight: 400; font-size: 13.5px; }
.footer-brand .logo-icon { display: inline-grid; margin-right: 8px; vertical-align: middle; }
.footer-links { display: flex; gap: 22px; }
.footer-links a { font-size: 14px; }
.footer-links a:hover { color: #fff; }
.copyright { text-align: center; border-top: 1px solid #503827; margin-top: 34px; padding: 18px 0; font-size: 13px; }

/* ===== 响应式 ===== */
@media (max-width: 960px) {
    .hero-wrap, .about-grid, .contact-wrap { grid-template-columns: 1fr; }
    .service-grid, .room-grid { grid-template-columns: repeat(2, 1fr); }
    .hero { padding-top: 120px; }
    .nav-links, .nav-cta {
        display: none; position: absolute; top: 68px; left: 0; right: 0;
        background: #fffdf9; flex-direction: column; padding: 18px 6%; border-bottom: 1px solid #f2e8da;
    }
    .nav-links.open { display: flex; }
    .nav-toggle { display: block; }
}
@media (max-width: 600px) {
    .service-grid, .room-grid, .form-row { grid-template-columns: 1fr; }
    .section { padding: 64px 0; }
}
