/* ==========================================================================
   养老院网 (YLY Wang) 主样式 — 暖橙养老风
   参考 yanglaocn.com，温暖、信赖、清晰
   ========================================================================== */

/* ===== CSS 变量（完全模仿 yanglaocn.com 配色）===== */
:root {
	--yly-primary: #0e6d31;        /* 主色：深绿（站点名/机构名，示例站实测） */
	--yly-primary-dark: #0a5425;   /* 更深 hover */
	--yly-primary-light: #3c953b;  /* 亮绿（文章标题） */
	--yly-secondary: #009688;      /* 青绿（热门城市/分类标题） */
	--yly-accent: #1e9fff;         /* 蓝（阅读全文链接） */
	--yly-success: #1da02b;        /* 完成绿 */
	--yly-warning: #6fb53e;        /* 简讯标签绿 */
	--yly-bg: #f4f5f7;             /* 页面底：浅灰（示例站实测） */
	--yly-bg-alt: #f2faf0;         /* 极浅绿区块底 */
	--yly-bg-warm: #f7f9f4;        /* 浅绿暖底 */
	--yly-text: #333;              /* 正文深灰 */
	--yly-text-light: #999;        /* 浅灰 */
	--yly-border: #e6e6e6;         /* 浅灰边框 */
	--yly-card-bg: #ffffff;
	--yly-link: #0e6d31;           /* 链接同主色 */
	--yly-danger: #e74c3c;
	--yly-shadow: 0 1px 3px rgba(0,0,0,0.05);
	--yly-shadow-hover: 0 6px 20px rgba(0,0,0,0.10);
	--yly-shadow-md: 0 4px 16px rgba(0,0,0,0.06);
	--yly-shadow-lg: 0 8px 30px rgba(0,0,0,0.08);
	--yly-radius: 8px;
	--yly-radius-lg: 12px;
	--yly-radius-xl: 16px;
	--yly-price: #ff672d;           /* 价格橙色 */
	--yly-gradient: linear-gradient(135deg, #0e6d31, #3c953b); /* 主色渐变 */
	/* kangyang51 参考核心配色 */
	--ky-primary: #42B712;       /* 主题色：亮黄绿（kangyang51 实测） */
	--ky-price: #ff672d;         /* 价格橙 */
	--ky-hours: #ff3400;         /* 营业时间红 */
	--ky-blue: #3592E2;          /* 辅助蓝 */
	--ky-orange: #FF7201;        /* 强调橙 */
	--ky-bg: #F3F3F3;            /* 页面底灰 */
	--yly-radius-sm: 4px;
	--yly-transition: all 0.2s ease;
	--yly-max-width: 1200px;
}

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

/* hidden 属性优先（防止被 display 规则覆盖） */
[hidden] { display: none !important; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
	font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
	font-size: 15px;
	line-height: 1.7;
	color: var(--yly-text);
	background: var(--yly-bg);
	word-wrap: break-word;
}
a { color: var(--yly-link); text-decoration: none; transition: var(--yly-transition); }
a:hover { color: var(--yly-primary); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { padding-left: 1.2em; }
h1, h2, h3, h4, h5, h6 { color: #2c2c2c; line-height: 1.3; font-weight: 600; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.15rem; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }

/* ===== 布局容器（统一对齐基准：max-width 1240 居中，内容区左右各留 16px）===== */
.container { width: 100%; max-width: var(--yly-max-width); margin: 0 auto; padding: 0 16px; box-sizing: border-box; }
/* 通栏色块（topbar/nav/header）内部直接用 container，padding 统一 16px */
.site-content { min-height: 60vh; padding: 20px 0 40px; }
.site-main { padding: 10px 0; }

/* ===== 顶部条（仿yanglaocn：白底浅灰字细条）===== */
.topbar { background: #fff; color: #666; font-size: 12px; padding: 6px 0; border-bottom: 1px solid var(--yly-border); }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; }
.topbar__welcome { color: #999; }
.topbar__right { display: flex; align-items: center; gap: 14px; }
.topbar__link { color: #666; }
.topbar__link:hover { color: var(--yly-primary); text-decoration: none; }
.topbar__avatar { display: inline-block; vertical-align: middle; border-radius: 50%; margin-right: 4px; }
.topbar__role { color: #999; font-size: 11px; }
.topbar__sep { color: #ddd; }
.topbar__apply { border: 1px solid var(--yly-primary); color: var(--yly-primary); padding: 1px 10px; border-radius: 10px; display: inline-flex; align-items: center; gap: 3px; }
.topbar__apply:hover { background: var(--yly-primary); color: #fff; }

/* ===== 城市选择器 ===== */
.topbar__city { position: relative; display: inline-flex; flex-shrink: 0; }
.topbar__city-btn { display: inline-flex; align-items: center; gap: 5px; background: #fff; color: #555; border: 1px solid #e2e5ea; border-radius: 8px; padding: 5px 10px; cursor: pointer; font-size: 13px; line-height: 18px; transition: var(--yly-transition); }
.topbar__city-btn:hover { border-color: var(--yly-primary); color: var(--yly-primary); }
.topbar__city-btn svg { color: var(--yly-primary); flex-shrink: 0; }
.topbar__city-arrow { font-size: 9px; opacity: 0.6; }
.topbar__city-panel { position: absolute; top: calc(100% + 6px); left: 0; z-index: 100; width: 440px; max-width: 82vw; background: #fff; border-radius: 10px; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.14); border: 1px solid var(--yly-border); padding: 12px; }
.topbar__city-title { font-size: 12px; font-weight: 600; color: var(--yly-text); margin: 0 0 10px; padding-bottom: 8px; border-bottom: 1px dashed var(--yly-border); }
.topbar__city-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.topbar__city-item { display: block; text-align: center; font-size: 12px; color: var(--yly-text); padding: 6px 4px; border-radius: 6px; border: 1px solid var(--yly-border); transition: var(--yly-transition); white-space: nowrap; }
.topbar__city-item:hover { color: var(--yly-primary); border-color: var(--yly-primary); text-decoration: none; }
.topbar__city-item.is-active { background: var(--yly-primary); color: #fff; border-color: var(--yly-primary); font-weight: 600; }
.topbar__city-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--yly-border); }
.topbar__city-locate { display: inline-flex; align-items: center; gap: 4px; background: var(--yly-bg-alt); color: var(--yly-secondary); border: 1px solid rgba(0, 150, 136, 0.3); border-radius: 12px; padding: 3px 12px; font-size: 12px; cursor: pointer; transition: var(--yly-transition); }
.topbar__city-locate:hover { background: var(--yly-secondary); color: #fff; border-color: var(--yly-secondary); }
.topbar__city-tip { font-size: 11px; color: #aaa; }

/* 移动端搜索条（≤768 显示，桌面隐藏） */
.mobile-searchbar { display: none; }

/* 移动端汉堡按钮（header 行内，桌面隐藏） */
.mobile-menu-btn { display: none; }

/* 定位失败一次性提示 */
.yly-city-toast { position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%); z-index: 9999; background: rgba(20, 20, 20, 0.88); color: #fff; font-size: 13px; padding: 10px 18px; border-radius: 8px; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2); animation: ylyToastIn 0.25s ease; max-width: 86vw; text-align: center; }
@keyframes ylyToastIn { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* 首页机构推荐标题中的城市高亮 */
.home-section__title-city { color: var(--yly-secondary); }

/* ===== 头部主体 ===== */
.site-header { background: #fff; box-shadow: var(--yly-shadow); }
.site-header__inner {
	display: flex; align-items: center; gap: 24px;
	/* 继承 .container 的 max-width/margin/padding，不单独设，保证与导航/主体完全对齐 */
}
.site-branding { flex: 0 0 auto; display: flex; flex-direction: column; }
.site-logo-text { display: flex; align-items: center; gap: 8px; }
.site-logo-text__icon { color: var(--yly-primary); display: flex; align-items: center; }
.site-logo-text__name { font-size: 22px; font-weight: 700; color: var(--yly-primary); }
.site-description { font-size: 12px; color: var(--yly-text-light); margin-top: 2px; }
.site-search { flex: 1; }
.search-form { display: flex; max-width: 560px; }
.search-form__type {
	border: 2px solid var(--yly-primary); border-right: none; background: #fff; padding: 0 10px;
	border-radius: var(--yly-radius-sm) 0 0 var(--yly-radius-sm); color: var(--yly-text); font-size: 14px;
}
.search-form__input {
	flex: 1; border: 2px solid var(--yly-primary); border-left: none; border-right: none;
	padding: 8px 12px; font-size: 14px; outline: none;
}
.search-form__input:focus { background: var(--yly-bg-alt); }
.search-form__btn {
	background: var(--yly-primary); color: #fff; border: none; padding: 0 22px; font-size: 14px; cursor: pointer;
	border-radius: 0 var(--yly-radius-sm) var(--yly-radius-sm) 0; transition: var(--yly-transition);
}
.search-form__btn:hover { background: var(--yly-primary-dark); }
.header-hotline { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.header-hotline__icon { width: 40px; height: 40px; border-radius: 50%; background: var(--yly-bg-alt); color: var(--yly-primary); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.header-hotline__text { display: flex; flex-direction: column; line-height: 1.2; }
.header-hotline__label { font-size: 11px; color: var(--yly-text-light); }
.header-hotline__num { font-size: 20px; font-weight: 700; color: var(--yly-primary); letter-spacing: 1px; }

/* ===== 主导航（仿yanglaocn：浅灰底黑字）===== */
.main-nav { display: none; background: #fff; border-bottom: 1px solid var(--yly-border); box-shadow: 0 6px 20px rgba(0,0,0,0.08); }
.main-nav[hidden] { display: none; }
.main-nav .container { padding: 0; }
.main-nav__list { display: flex; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.main-nav__list > li { position: relative; }
.main-nav__list > li > a {
	display: block; color: #333; padding: 11px 20px; font-size: 15px; font-weight: 500;
	transition: var(--yly-transition);
}
.main-nav__list > li > a:hover { color: var(--yly-primary); background: rgba(0,0,0,0.03); }
.main-nav__list > li.current-menu-item > a,
.main-nav__list > li.current-post-ancestor > a,
.main-nav__list > li.current_page_item > a {
	color: var(--yly-primary); background: rgba(14,109,49,0.06); font-weight: 600;
}
.main-nav__list .sub-menu {
	position: absolute; top: 100%; left: 0; background: #fff; min-width: 180px;
	box-shadow: var(--yly-shadow-hover); list-style: none; padding: 0; margin: 0; border: 1px solid var(--yly-border);
	opacity: 0; visibility: hidden; transform: translateY(8px); transition: var(--yly-transition); z-index: 100;
}
.main-nav__list li:hover > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.main-nav__list .sub-menu a { display: block; padding: 9px 18px; color: var(--yly-text); font-size: 14px; border-bottom: 1px solid var(--yly-border); }
.main-nav__list .sub-menu a:last-child { border-bottom: none; }
.main-nav__list .sub-menu a:hover { background: var(--yly-bg-alt); color: var(--yly-primary); }
.main-nav__toggle { display: none; background: none; border: none; cursor: pointer; padding: 10px; }
.main-nav__toggle span { display: block; width: 24px; height: 2px; background: var(--yly-text); margin: 5px 0; border-radius: 2px; }

/* ===== 面包屑 ===== */
.yly-breadcrumb { background: #fff; border-bottom: 1px solid var(--yly-border); padding: 10px 0; font-size: 13px; color: var(--yly-text-light); }
.yly-breadcrumb a { color: var(--yly-text-light); }
.yly-breadcrumb a:hover { color: var(--yly-primary); }

/* ===== 通用区块标题（精致卡片风） ===== */
.section { margin-bottom: 32px; }
.section__head {
	display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px;
	padding-bottom: 12px; border-bottom: 1px solid var(--yly-border);
}
.section__title {
	font-size: 22px; color: var(--yly-primary); display: flex; align-items: center; gap: 10px;
	font-weight: 700; position: relative;
}
.section__title::before {
	content: ""; width: 4px; height: 22px; background: var(--yly-gradient);
	border-radius: 2px; box-shadow: 0 2px 6px rgba(14,109,49,0.25);
}
.section__title svg { flex-shrink: 0; color: var(--yly-primary); }
.section__title-sub { font-size: 13px; color: var(--yly-text-light); font-weight: 400; margin-left: 4px; }
.section__more {
	font-size: 13px; color: var(--yly-text-light); display: inline-flex; align-items: center; gap: 4px;
	padding: 5px 14px; border: 1px solid var(--yly-border); border-radius: 16px; transition: var(--yly-transition);
}
.section__more:hover { color: var(--yly-primary); border-color: var(--yly-primary); background: var(--yly-bg-alt); text-decoration: none; }
.section__more:hover { color: var(--yly-primary); }
.section__more svg { flex-shrink: 0; }

/* ===== 按钮 ===== */
.btn {
	display: inline-block; padding: 9px 22px; font-size: 14px; border-radius: var(--yly-radius-sm);
	border: none; cursor: pointer; transition: var(--yly-transition); text-align: center; line-height: 1.4;
}
.btn-primary { background: var(--yly-primary); color: #fff; }
.btn-primary:hover { background: var(--yly-primary-dark); color: #fff; transform: translateY(-1px); }
.btn-outline { background: #fff; color: var(--yly-primary); border: 1px solid var(--yly-primary); }
.btn-outline:hover { background: var(--yly-primary); color: #fff; }
.btn-block { display: block; width: 100%; }
.btn-sm { padding: 5px 12px; font-size: 13px; }
.btn-lg { padding: 12px 30px; font-size: 16px; }

/* ===== 表单通用 ===== */
.form-group { margin-bottom: 16px; }
.form-label { display: block; margin-bottom: 6px; font-weight: 500; font-size: 14px; }
.form-label .req { color: var(--yly-danger); }
.form-input, .form-textarea, .form-select {
	width: 100%; padding: 9px 12px; border: 1px solid var(--yly-border); border-radius: var(--yly-radius-sm);
	font-size: 14px; background: #fff; transition: var(--yly-transition); font-family: inherit;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
	border-color: var(--yly-primary); outline: none; box-shadow: 0 0 0 3px rgba(46,158,91,0.1);
}
.form-textarea { min-height: 120px; resize: vertical; }
.form-hint { font-size: 12px; color: var(--yly-text-light); margin-top: 4px; }
.form-error { font-size: 12px; color: var(--yly-danger); margin-top: 4px; }

/* ===== 机构卡片（精致卡片风 v2 —— 星级 + 服务标签） ===== */
.inst-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.inst-card {
	background: var(--yly-card-bg); border-radius: var(--yly-radius-lg); overflow: hidden;
	box-shadow: var(--yly-shadow-md); transition: all 0.3s ease; display:flex; flex-direction:column;
	border: 1px solid #eef0f2;
}
.inst-card:hover { box-shadow: var(--yly-shadow-hover); transform: translateY(-4px); border-color: #d8e8d0; }
.inst-card__thumb { display: block; aspect-ratio: 16/10; overflow: hidden; position:relative; }
.inst-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.inst-card:hover .inst-card__thumb img { transform: scale(1.08); }
/* 大图上层：左=徽章组，右=星级 */
.inst-card__overlay-top {
	position:absolute; top:0; left:0; right:0; padding:10px 10px 26px;
	display:flex; justify-content:space-between; align-items:flex-start; gap:8px;
	background: linear-gradient(180deg, rgba(0,0,0,0.5), rgba(0,0,0,0));
	pointer-events:none;
}
.inst-card__chips { display:flex; flex-wrap:wrap; gap:4px; min-width:0; }
.inst-card__chip {
	display:inline-flex; align-items:center; gap:3px;
	font-size:10px; font-weight:600; padding:2px 7px; border-radius:4px;
	background:rgba(255,255,255,0.94); color:#333; white-space:nowrap;
	box-shadow:0 1px 4px rgba(0,0,0,0.25);
}
.inst-card__chip .yly-ico { line-height:1; flex-shrink:0; }
.inst-card__chip--rec  { background:linear-gradient(135deg,#ff8a3d,#ff672d); color:#fff; }
.inst-card__chip--rec .yly-ico { color:#fff; }
.inst-card__chip--red    { color:#be123c; } .inst-card__chip--red .yly-ico    { color:#f43f5e; }
.inst-card__chip--orange { color:#c2410c; } .inst-card__chip--orange .yly-ico { color:#f97316; }
.inst-card__chip--green  { color:#15803d; } .inst-card__chip--green .yly-ico  { color:#22c55e; }
.inst-card__chip--blue   { color:#1d4ed8; } .inst-card__chip--blue .yly-ico   { color:#3b82f6; }
.inst-card__chip--slate  { color:#475569; } .inst-card__chip--slate .yly-ico  { color:#64748b; }
.inst-card__chip--type   { color:#0e6d31; } .inst-card__chip--type .yly-ico   { color:#22c55e; }
.inst-card__chip--feat   { color:#1d4ed8; } .inst-card__chip--feat .yly-ico   { color:#3b82f6; }

/* 星级（大图右上，深色半透明胶囊） */
.inst-card__rating {
	display:inline-flex; align-items:center; gap:4px; flex-shrink:0;
	background:rgba(0,0,0,0.55); backdrop-filter:blur(4px);
	padding:3px 9px; border-radius:12px;
}
.inst-card__rating em { font-style:normal; font-size:12px; color:#ffd54f; font-weight:700; }
/* 卡片叠加大图上的星级用金色 */
.inst-card__rating .yly-stars .star--full::before  { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%23ffd54f' d='M12 2l2.95 6.6 7.05.6-5.3 4.85L18.3 22 12 18.1 5.7 22l1.6-7.95L2 9.2l7.05-.6z'/></svg>"); }
.inst-card__rating .yly-stars .star--half::before  { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><defs><linearGradient id='h'><stop offset='50%' stop-color='%23ffd54f'/><stop offset='50%' stop-color='rgba(255,255,255,0.35)'/></linearGradient></defs><path fill='url(%23h)' d='M12 2l2.95 6.6 7.05.6-5.3 4.85L18.3 22 12 18.1 5.7 22l1.6-7.95L2 9.2l7.05-.6z'/></svg>"); }
.inst-card__rating .yly-stars .star--empty::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='rgba(255,255,255,0.35)' d='M12 2l2.95 6.6 7.05.6-5.3 4.85L18.3 22 12 18.1 5.7 22l1.6-7.95L2 9.2l7.05-.6z'/></svg>"); }

/* 默认星级（白底场景，橙色星） */
.yly-stars { display:inline-flex; align-items:center; gap:1px; }
.yly-stars .star { display:inline-block; width:14px; height:14px; position:relative; }
.yly-stars .star::before {
	content:""; position:absolute; left:0; top:0; width:100%; height:100%;
	background-repeat:no-repeat; background-position:center; background-size:contain;
}
.yly-stars .star--full::before  { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%23ffa500' d='M12 2l2.95 6.6 7.05.6-5.3 4.85L18.3 22 12 18.1 5.7 22l1.6-7.95L2 9.2l7.05-.6z'/></svg>"); }
.yly-stars .star--half::before  { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><defs><linearGradient id='h'><stop offset='50%' stop-color='%23ffa500'/><stop offset='50%' stop-color='%23e0e0e0'/></linearGradient></defs><path fill='url(%23h)' d='M12 2l2.95 6.6 7.05.6-5.3 4.85L18.3 22 12 18.1 5.7 22l1.6-7.95L2 9.2l7.05-.6z'/></svg>"); }
.yly-stars .star--empty::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%23e0e0e0' d='M12 2l2.95 6.6 7.05.6-5.3 4.85L18.3 22 12 18.1 5.7 22l1.6-7.95L2 9.2l7.05-.6z'/></svg>"); }

/* 大图下层：名称 + 地址 */
.inst-card__overlay-bottom {
	position:absolute; left:0; right:0; bottom:0; padding:26px 12px 10px;
	background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,0.72));
	pointer-events:none;
}
.inst-card__title {
	font-size:16px; margin:0 0 3px; line-height:1.35; font-weight:600; color:#fff;
	text-shadow:0 1px 3px rgba(0,0,0,0.45);
	white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.inst-card__addr {
	display:flex; align-items:center; gap:3px;
	font-size:11px; color:rgba(255,255,255,0.88);
	white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.inst-card__addr .yly-ico { color:#ffd54f; flex-shrink:0; }

.inst-card__body { padding: 12px 14px 14px; display:flex; flex-direction:column; flex:1; }
.inst-card__foot { display:flex; justify-content:space-between; align-items:center; gap:8px; margin-top:auto; padding-top:10px; border-top:1px dashed #eef0f0; }
.inst-card__loc { display:inline-flex; align-items:center; gap:3px; font-size: 12px; color: #666; font-weight: 500; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width: 60%; }
.inst-card__loc .icon, .inst-card__loc svg { color: var(--yly-primary); flex-shrink:0; }
.inst-card__price { color: var(--yly-price); font-weight: 700; font-size: 20px; white-space:nowrap; line-height:1; }
.inst-card__price-cur { font-size: 13px; }
.inst-card__price-unit { font-size: 11px; font-weight: 400; color: var(--yly-text-light); margin-left:2px; }
.inst-card__price--none { font-size: 14px; color: #999; font-weight: 500; }

/* ===== 机构卡片 standard 布局（列表页：信息在图下方，清晰可读） ===== */
/* min-width:0 让 grid 子项可缩小到列宽，防止不换行标签把卡片撑宽溢出 */
.inst-card { min-width: 0; }
.inst-card--standard .inst-card__thumb img { min-height: 200px; }
.inst-card--standard .inst-card__body { padding: 12px 14px 14px; gap: 8px; min-width: 0; }
.inst-card--standard .inst-card__row1 { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.inst-card--standard .inst-card__title { color: #1a2330; font-size: 16px; margin: 0; flex: 1; min-width: 0; text-shadow: none; }
.inst-card--standard .inst-card__title a { color: #1a2330; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inst-card--standard .inst-card__title a:hover { color: var(--yly-primary); }
.inst-card--standard .inst-card__rating { background: transparent; padding: 0; backdrop-filter: none; flex-shrink: 0; }
.inst-card--standard .inst-card__rating em { color: #ff8a00; font-size: 13px; }
/* 标签：单行不换行，溢出隐藏，防挤 */
.inst-card--standard .inst-card__tags { display: flex; gap: 5px; flex-wrap: nowrap; overflow: hidden; }
.inst-card--standard .inst-card__tags .inst-card__type { flex-shrink: 0; }
.inst-card--standard .inst-card__type {
	font-size: 11px; color: #0e6d31; background: #e8f5e0; padding: 2px 8px; border-radius: 4px; font-weight: 500;
	display: inline-flex; align-items: center; gap: 3px;
}
.inst-card--standard .inst-card__type .yly-ico { color: #22c55e; line-height: 1; flex-shrink: 0; }
.inst-card--standard .inst-card__type--rec  { background: linear-gradient(135deg,#ff8a3d,#ff672d); color: #fff; }
.inst-card--standard .inst-card__type--rec .yly-ico  { color: #fff; }
.inst-card--standard .inst-card__type--red    { color: #be123c; background: #fff1f2; } .inst-card--standard .inst-card__type--red .yly-ico    { color: #f43f5e; }
.inst-card--standard .inst-card__type--orange { color: #c2410c; background: #fff7ed; } .inst-card--standard .inst-card__type--orange .yly-ico { color: #f97316; }
.inst-card--standard .inst-card__type--green  { color: #15803d; background: #f0fdf4; } .inst-card--standard .inst-card__type--green .yly-ico  { color: #22c55e; }
.inst-card--standard .inst-card__type--blue   { color: #1d4ed8; background: #eff6ff; } .inst-card--standard .inst-card__type--blue .yly-ico   { color: #3b82f6; }
.inst-card--standard .inst-card__type--slate  { color: #475569; background: #f1f5f9; } .inst-card--standard .inst-card__type--slate .yly-ico  { color: #64748b; }
.inst-card--standard .inst-card__type--type   { color: #0e6d31; background: #e8f5e0; } .inst-card--standard .inst-card__type--type .yly-ico   { color: #22c55e; }
.inst-card--standard .inst-card__type--feat   { color: #1d4ed8; background: #eff6ff; } .inst-card--standard .inst-card__type--feat .yly-ico   { color: #3b82f6; }
.inst-card--standard .inst-card__addr-line {
	display: flex; align-items: center; gap: 4px; font-size: 12px; color: #666; margin: 0;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.inst-card--standard .inst-card__addr-line .yly-ico { color: var(--yly-primary); flex-shrink: 0; }
/* 价格右对齐（省去地区） */
.inst-card--standard .inst-card__foot { justify-content: flex-end; padding-top: 8px; }
/* foot 左侧性质标签：桌面隐藏（标签行已展示），移动端显示 */
.inst-card--standard .inst-card__foot-nature {
	display: none;
	font-size: 11px; padding: 2px 8px; border-radius: 4px; font-weight: 500;
}
@media (max-width:768px){
	/* 移动端 standard 卡片精简为 3 行：名称+星级 / 地址 / [性质]+价格 */
	.inst-card--standard .inst-card__tags { display: none; }
	.inst-card--standard .inst-card__foot { justify-content: space-between; align-items: center; }
	.inst-card--standard .inst-card__foot-nature { display: inline-flex; align-items: center; }
	.inst-card--standard .inst-card__title { white-space: normal; }
}

/* ===== 文章卡片 ===== */
.post-item {
	display: flex; gap: 16px; padding: 16px; background: #fff; border-radius: var(--yly-radius); margin-bottom: 14px;
	box-shadow: var(--yly-shadow); transition: var(--yly-transition); border: 1px solid var(--yly-border);
}
.post-item:hover { box-shadow: var(--yly-shadow-hover); }
.post-item__thumb { flex: 0 0 180px; aspect-ratio: 3/2; overflow: hidden; border-radius: var(--yly-radius-sm); }
.post-item__thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-item__body { flex: 1; }
.post-item__title { font-size: 17px; margin: 0 0 8px; }
.post-item__title a { color: #2c2c2c; }
.post-item__title a:hover { color: var(--yly-primary); }
.post-item__meta { font-size: 12px; color: var(--yly-text-light); margin-bottom: 8px; display: flex; gap: 12px; flex-wrap: wrap; }
.post-item__meta span { display: inline-flex; align-items: center; gap: 3px; }
.post-item__excerpt { font-size: 14px; color: var(--yly-text); line-height: 1.6; }
.post-item__cats { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.post-item__cat { display: inline-block; background: var(--yly-bg-alt); color: var(--yly-primary); font-size: 11px; padding: 2px 9px; border-radius: 10px; }
.post-item__cat:hover { background: var(--yly-primary); color: #fff; text-decoration: none; }
.post-item__more { display: inline-flex; align-items: center; gap: 4px; margin-top: 10px; font-size: 13px; color: var(--yly-primary); font-weight: 500; }
.post-item__more:hover { gap: 6px; }

/* 空状态 */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state__icon { width: 80px; height: 80px; margin: 0 auto 16px; border-radius: 50%; background: var(--yly-bg-alt); color: var(--yly-primary); display: flex; align-items: center; justify-content: center; }
.empty-state h3 { font-size: 18px; color: #2c2c2c; margin: 0 0 8px; }
.empty-state p { color: var(--yly-text-light); margin: 0 0 16px; }

/* ===== 文章列表（简讯流，无图） ===== */
.post-list--simple .post-item-simple {
	padding: 14px 0; border-bottom: 1px dashed var(--yly-border); display: flex; gap: 10px; align-items: flex-start;
}
.post-item-simple__tag { flex: 0 0 auto; background: var(--yly-bg-alt); color: var(--yly-primary); font-size: 12px; padding: 2px 8px; border-radius: 10px; margin-top: 2px; }
.post-item-simple__body { flex: 1; }
.post-item-simple__title { font-size: 15px; margin: 0 0 4px; line-height: 1.5; font-weight: 500; }
.post-item-simple__title a { color: #2c2c2c; }
.post-item-simple__title a:hover { color: var(--yly-primary); }
.post-item-simple__meta { font-size: 12px; color: var(--yly-text-light); }

/* ===== Tab 切换 ===== */
.tabs { margin-bottom: 20px; }
.tabs__nav { display: flex; border-bottom: 2px solid var(--yly-border); margin-bottom: 16px; overflow-x: auto; }
.tabs__tab {
	padding: 10px 22px; cursor: pointer; font-size: 15px; color: var(--yly-text); border-bottom: 2px solid transparent;
	margin-bottom: -2px; white-space: nowrap; transition: var(--yly-transition); background: none; border-left: none; border-right: none; border-top: none;
}
.tabs__tab:hover { color: var(--yly-primary); }
.tabs__tab.active { color: var(--yly-primary); border-bottom-color: var(--yly-primary); font-weight: 600; }
.tabs__panel { display: none; }
.tabs__panel.active { display: block; }

/* ===== 单文章页 ===== */
.single-article { background: #fff; border-radius: var(--yly-radius); padding: 30px; box-shadow: var(--yly-shadow); }
.single-article__header { margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--yly-border); }
.single-article__title { font-size: 24px; margin: 0 0 12px; color: #2c2c2c; }
.single-article__meta { font-size: 13px; color: var(--yly-text-light); display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.single-article__meta .source-tag { background: var(--yly-bg-alt); color: var(--yly-primary); padding: 2px 10px; border-radius: 10px; font-size: 12px; }
.single-article__content { font-size: 16px; line-height: 1.85; color: var(--yly-text); }
.single-article__content p { margin-bottom: 1.2em; }
.single-article__content h2, .single-article__content h3 { margin: 1.4em 0 0.6em; }
.single-article__content img { border-radius: var(--yly-radius-sm); margin: 1em auto; }
.single-article__content blockquote { border-left: 4px solid var(--yly-primary); background: var(--yly-bg-alt); padding: 12px 18px; margin: 1em 0; color: var(--yly-text); border-radius: 0 var(--yly-radius-sm) var(--yly-radius-sm) 0; }

/* ===== 评论区 ===== */
.comments-area { background: #fff; border-radius: var(--yly-radius); padding: 24px; margin-top: 20px; box-shadow: var(--yly-shadow); }
.comments-title { font-size: 18px; margin-bottom: 16px; color: var(--yly-primary); padding-bottom: 10px; border-bottom: 1px solid var(--yly-border); }
.yly-comment-list { list-style: none; padding: 0; margin: 0; }
.yly-comment-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--yly-border); }
.yly-comment-item .avatar, .comment-avatar img { border-radius: 50%; }
.comment-body { flex: 1; }
.comment-head { display: flex; gap: 12px; align-items: center; margin-bottom: 4px; flex-wrap: wrap; }
.comment-author { font-weight: 600; color: #2c2c2c; }
.comment-meta { font-size: 12px; color: var(--yly-text-light); }
.comment-content { color: var(--yly-text); font-size: 14px; line-height: 1.7; }
.comment-actions { margin-top: 4px; }
.reply-link a { color: var(--yly-primary); font-size: 13px; }
.children { list-style: none; padding-left: 50px; margin: 0; }
.yly-login-notice { text-align: center; padding: 24px; background: var(--yly-bg-alt); border-radius: var(--yly-radius); margin-top: 16px; }
.yly-login-notice p { margin-bottom: 12px; color: var(--yly-text); }

/* ===== 机构详情页 ===== */
.institution-detail { }
.institution-detail__gallery { margin-bottom: 20px; }
.institution-detail__main-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--yly-radius); box-shadow: var(--yly-shadow); }
.institution-detail__thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 6px; }
.institution-detail__thumb { flex: 0 0 100px; height: 70px; object-fit: cover; border-radius: var(--yly-radius-sm); cursor: pointer; border: 2px solid transparent; transition: var(--yly-transition); }
.institution-detail__thumb.active, .institution-detail__thumb:hover { border-color: var(--yly-primary); }
.institution-info-card { background: #fff; border-radius: var(--yly-radius); padding: 24px; box-shadow: var(--yly-shadow); margin-bottom: 20px; }
.institution-info-card h1 { font-size: 26px; margin-bottom: 10px; color: #2c2c2c; }
.institution-info-card__tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.institution-tag { background: var(--yly-bg-alt); color: var(--yly-primary); padding: 3px 12px; border-radius: 12px; font-size: 13px; }
.institution-tag--price { background: #fff0ed; color: var(--yly-danger); font-weight: 600; }
.institution-meta-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 24px; }
.institution-meta-list li { font-size: 14px; padding: 8px 0; border-bottom: 1px dashed var(--yly-border); display: flex; gap: 8px; }
.institution-meta-list li strong { color: var(--yly-text-light); flex: 0 0 80px; font-weight: 500; }
.institution-meta-list li span { color: var(--yly-text); flex: 1; }
.institution-desc { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--yly-border); line-height: 1.85; }
.institution-map { height: 360px; border-radius: var(--yly-radius); overflow: hidden; box-shadow: var(--yly-shadow); margin-top: 10px; }
#institution-map { height: 100%; width: 100%; }

/* ===== 留言表单 ===== */
.message-form { background: var(--yly-bg-alt); padding: 20px; border-radius: var(--yly-radius); }
.message-form__title { font-size: 17px; color: var(--yly-primary); margin-bottom: 14px; }

/* ===== 机构详情：相关机构推荐 ===== */
.inst-related { background: #fff; border-radius: var(--yly-radius); padding: 24px; box-shadow: var(--yly-shadow); margin-top: 24px; }
.inst-related__title { font-size: 18px; color: var(--yly-primary); margin: 0 0 16px; padding-bottom: 10px; border-bottom: 1px solid var(--yly-border); display: flex; align-items: center; gap: 6px; }
.inst-related__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.inst-related__card { display: flex; flex-direction: column; background: var(--yly-bg-alt); border-radius: var(--yly-radius-sm); overflow: hidden; transition: var(--yly-transition); }
.inst-related__card:hover { box-shadow: var(--yly-shadow-hover); transform: translateY(-2px); text-decoration: none; }
.inst-related__thumb { aspect-ratio: 16/10; overflow: hidden; }
.inst-related__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.inst-related__card:hover .inst-related__thumb img { transform: scale(1.05); }
.inst-related__info { padding: 10px 12px; }
.inst-related__info h4 { font-size: 13px; line-height: 1.4; margin: 0 0 6px; color: #2c2c2c; font-weight: 500; }
.inst-related__card:hover .inst-related__info h4 { color: var(--yly-primary); }
.inst-related__price { display: block; font-size: 13px; color: var(--yly-danger); font-weight: 600; margin-bottom: 3px; }
.inst-related__loc { display: flex; align-items: center; gap: 2px; font-size: 11px; color: var(--yly-text-light); }
@media (max-width: 768px) {
	.inst-related__grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
	.inst-related { padding: 16px; }
	.inst-related__title { font-size: 16px; }
}
@media (max-width: 480px) {
	.inst-related__grid { grid-template-columns: 1fr; }
}

/* ===== 侧边栏 ===== */
.site-sidebar .widget { background: #fff; border-radius: var(--yly-radius); padding: 18px; margin-bottom: 18px; box-shadow: var(--yly-shadow); }
.widget-title { font-size: 16px; color: var(--yly-primary); margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--yly-border); display: flex; align-items: center; gap: 6px; }
.widget-title svg { flex-shrink: 0; }

/* ===== 分页 ===== */
.yly-pagination { text-align: center; margin: 24px 0; }
.yly-pagination .page-numbers {
	display: inline-block; padding: 6px 12px; margin: 0 3px; border: 1px solid var(--yly-border); border-radius: var(--yly-radius-sm);
	color: var(--yly-text); background: #fff; transition: var(--yly-transition);
}
.yly-pagination .page-numbers:hover, .yly-pagination .page-numbers.current { background: var(--yly-primary); color: #fff; border-color: var(--yly-primary); }

/* ===== 页脚 ===== */
.footer-links { background: #fff; border-top: 1px solid var(--yly-border); padding: 16px 0; }
.footer-links__list { list-style: none; display: flex; flex-wrap: wrap; gap: 20px; margin: 0; padding: 0; justify-content: center; }
.footer-links__list a { color: var(--yly-text-light); font-size: 13px; }
.footer-links__list a:hover { color: var(--yly-primary); }
.site-footer { background: #0e6d31; color: #d6e8dc; padding: 36px 0 18px; }
.site-footer__inner { display: grid; grid-template-columns: 2fr 1.5fr 1.5fr; gap: 30px; margin-bottom: 24px; }
.site-footer__brand h4 { color: #fff; margin-bottom: 8px; font-size: 18px; }
.site-footer__brand p { font-size: 13px; opacity: 0.8; }
.site-footer__contact p { font-size: 13px; margin-bottom: 6px; }
.site-footer__contact strong { color: #fff; }
.site-footer__links { display: flex; flex-direction: column; gap: 8px; }
.site-footer__links a { color: #d6e8dc; font-size: 13px; }
.site-footer__links a:hover { color: #fff; }
.site-footer__bottom { border-top: 1px solid rgba(255,255,255,0.15); padding-top: 14px; text-align: center; font-size: 12px; opacity: 0.8; }
.site-footer__bottom p { margin: 2px 0; }
.site-footer__bottom a { color: #d6e8dc; }

/* ===== 通用工具类 ===== */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.grid-2 { display: grid; grid-template-columns: 1fr 320px; gap: 24px; }
.alert { padding: 12px 16px; border-radius: var(--yly-radius-sm); margin-bottom: 16px; }
.alert-success { background: #eafaf1; color: var(--yly-success); border: 1px solid #abe5c4; }
.alert-error { background: #fdeeec; color: var(--yly-danger); border: 1px solid #f5b7b1; }
.alert-info { background: var(--yly-bg-alt); color: var(--yly-primary); border: 1px solid var(--yly-border); }
