/* Сайт Альянса «Дунбэй» — в стиле официальных сайтов КНР (gov.cn, CCPIT, MOFCOM).
   Только системные шрифты и ни одного внешнего ресурса: сайт должен быстро открываться и в Китае, и в России. */
:root {
  --red: #c1121f;
  --red-dark: #9d0e18;
  --red-deep: #7d0b13;
  --gold: #d4a017;
  --blue: #1d4f91;
  --text: #333;
  --muted: #888;
  --line: #e3e3e3;
  --bg: #f3f3f3;
  --link-hover: #c1121f;
  --wrap: 1200px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.7 "Microsoft YaHei", "微软雅黑", "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Source Han Sans SC", Arial, "Helvetica Neue", sans-serif;
}
body.lang-zh { font-size: 15px; }
a { color: #222; text-decoration: none; }
a:hover { color: var(--link-hover); text-decoration: underline; }
img { max-width: 100%; height: auto; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.ico { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.18em; }

/* --- верхняя строка: дата, почта, язык --- */
.topbar { background: #f7f7f7; border-bottom: 1px solid var(--line); font-size: 13px; color: #666; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 34px; gap: 12px; }
.topbar a { color: #555; }
.topbar b { color: var(--red); }
.topbar .sep { color: #ccc; margin: 0 4px; }

/* --- шапка с эмблемой --- */
.masthead {
  background:
    radial-gradient(ellipse 60% 120% at 92% 10%, rgba(212,160,23,.13), transparent 60%),
    radial-gradient(ellipse 40% 90% at 70% 100%, rgba(193,18,31,.07), transparent 70%),
    linear-gradient(180deg, #fff 0%, #fdf6f4 100%);
  border-bottom: 1px solid #f0dfdc;
}
.masthead-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 18px; padding-bottom: 18px; }
.brand { display: flex; align-items: center; gap: 16px; color: var(--red); }
.brand:hover { text-decoration: none; color: var(--red); }
.brand img { width: 84px; height: auto; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-name { font-size: 36px; font-weight: 700; letter-spacing: 2px; color: var(--red); font-family: "SimHei", "Microsoft YaHei", "PingFang SC", sans-serif; }
.lang-ru .brand-name { letter-spacing: .5px; font-size: 32px; }
.lang-ru .tab-heads button { font-size: 15px; padding: 0 11px; }
.lang-ru .banner-big { font-size: 22px; letter-spacing: 1px; }
.brand-second { font-size: 16px; color: #333; margin-top: 4px; font-weight: 600; }
.brand-en { font-size: 11px; color: var(--muted); letter-spacing: 1.5px; margin-top: 3px; }
.search { display: flex; border: 2px solid var(--red); border-radius: 2px; background: #fff; }
.search input { border: 0; padding: 7px 10px; width: 220px; font: inherit; font-size: 14px; outline: none; background: transparent; }
.search button { border: 0; background: var(--red); color: #fff; padding: 0 18px; font: inherit; font-size: 14px; cursor: pointer; }
.search button:hover { background: var(--red-dark); }

/* --- главное меню: сплошная красная полоса --- */
.mainnav { background: linear-gradient(180deg, var(--red) 0%, var(--red-dark) 100%); border-bottom: 3px solid var(--gold); }
.mainnav ul { list-style: none; margin: 0; padding: 0; display: flex; }
.mainnav li { flex: 1; text-align: center; }
.mainnav a { display: block; color: #fff; font-size: 17px; font-weight: 600; line-height: 50px; letter-spacing: 1px; }
.mainnav a:hover, .mainnav li.on a { background: var(--red-deep); color: #fff; text-decoration: none; }
.mainnav .ico { margin-right: 6px; }
.nav-toggle { display: none; }

/* --- баннер темы (как «专题» на официальных сайтах) --- */
.banner {
  margin-top: 14px; padding: 16px 28px; color: #fff; display: flex; align-items: baseline; gap: 22px; flex-wrap: wrap;
  background:
    radial-gradient(circle at 96% 50%, rgba(255,214,102,.35) 0 60px, transparent 61px),
    linear-gradient(90deg, #a30d17 0%, #d4161f 55%, #e0352b 100%);
  border-radius: 2px; box-shadow: inset 0 -3px 0 rgba(0,0,0,.08);
}
.banner-small { font-size: 13px; letter-spacing: 2px; color: #ffe2a1; }
.banner-big { font-size: 24px; font-weight: 700; letter-spacing: 2px; font-family: "SimHei", "Microsoft YaHei", sans-serif; text-shadow: 0 1px 0 rgba(0,0,0,.2); }

/* --- раскладка --- */
.main { padding-top: 14px; padding-bottom: 28px; }
.row { display: grid; gap: 14px; margin-bottom: 14px; }
.row > *, .cols > * { min-width: 0; }  /* длинные заголовки не раздвигают колонки */
.focus-row { grid-template-columns: 560px 1fr; }
.three { grid-template-columns: repeat(3, 1fr); }
.two { grid-template-columns: 1fr 1fr; }
.box { background: #fff; border: 1px solid var(--line); border-top: 2px solid var(--red); margin-bottom: 14px; }
.row > .box { margin-bottom: 0; }
.box-title { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); padding: 0 14px; height: 44px; }
.box-title h2 { margin: 0; font-size: 18px; color: var(--red); position: relative; padding-left: 12px; }
.box-title h2::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 4px; background: var(--red); }
.more { font-size: 13px; color: var(--muted); }
.box-body { padding: 12px 16px; }

/* --- фокус-фото --- */
.focus { position: relative; background: #000; min-height: 360px; overflow: hidden; }
.slide { display: none; position: absolute; inset: 0; color: #fff; }
.slide.on { display: block; }
.slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slide-fallback { display: flex; align-items: center; justify-content: center; height: 100%; background: linear-gradient(135deg, var(--red-dark), var(--red)); }
.slide-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 12px; font-size: 17px; font-weight: 600; background: linear-gradient(transparent, rgba(0,0,0,.78)); }
.slide:hover { text-decoration: none; color: #fff; }
.slide-intro { position: absolute; top: 12px; left: 12px; background: rgba(157,14,24,.9); color: #fff; padding: 6px 12px; font-size: 13px; display: flex; flex-direction: column; line-height: 1.4; max-width: 70%; }
.slide-intro span { color: #ffe2a1; font-size: 12px; }

/* --- новости по вкладкам --- */
.tabs { display: flex; flex-direction: column; }
.tab-heads { display: flex; align-items: stretch; border-bottom: 1px solid var(--line); background: #fafafa; overflow-x: auto; scrollbar-width: none; }
.tab-heads::-webkit-scrollbar { display: none; }
.tab-heads button { border: 0; background: none; font: inherit; font-size: 16px; font-weight: 600; padding: 0 14px; height: 44px; cursor: pointer; color: #555; white-space: nowrap; border-bottom: 3px solid transparent; }
.tab-heads button.on { color: var(--red); border-bottom-color: var(--red); background: #fff; }
.tab-heads .more { margin-left: auto; align-self: center; padding: 0 12px; white-space: nowrap; }
.tab-body { display: none; padding: 10px 16px 12px; }
.tab-body.on { display: block; }
.headline { display: block; font-size: 19px; font-weight: 700; color: var(--red); text-align: center; line-height: 1.45; margin: 4px 0 6px; }
.headline-sum { font-size: 13px; color: #666; margin: 0 0 6px; border-bottom: 1px dashed var(--line); padding-bottom: 8px; }
.headline-sum a { color: var(--blue); }
.more-line { display: block; text-align: right; font-size: 13px; color: var(--muted); margin-top: 4px; }

.newslist { list-style: none; margin: 0; padding: 0; }
.newslist li { position: relative; padding: 6px 90px 6px 14px; border-bottom: 1px dashed #eee; }
.newslist li::before { content: ""; position: absolute; left: 2px; top: 16px; width: 5px; height: 5px; background: var(--red); }
.newslist a { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.newslist .d { position: absolute; right: 0; top: 6px; color: var(--muted); font-size: 13px; }
.newslist.big li { padding-top: 12px; padding-bottom: 12px; }
.newslist.big li::before { top: 22px; }
.newslist.big a { font-size: 16px; white-space: normal; }
.newslist.big .d { top: 12px; }
.newslist .sum { margin: 4px 0 0; color: #777; font-size: 13px; }
.side .newslist li { padding-right: 0; }
.side .newslist a { white-space: normal; font-size: 14px; }

/* --- карточки --- */
.about-mini img { float: left; margin: 2px 12px 4px 0; }
.about-mini p { margin: 0 0 8px; font-size: 14px; }
.event { display: flex; gap: 12px; padding: 8px 0; border-bottom: 1px dashed #eee; font-size: 14px; }
.event:last-child { border-bottom: 0; }
.event-date { flex: none; width: 54px; text-align: center; border: 1px solid var(--blue); line-height: 1.2; }
.event-date b { display: block; background: var(--blue); color: #fff; font-size: 14px; padding: 3px 0; }
.event-date span { display: block; color: var(--blue); font-size: 18px; font-weight: 700; padding: 3px 0; }
.event small { display: block; color: #777; font-size: 12px; line-height: 1.5; margin-top: 2px; }
.btn-red { display: inline-flex; align-items: center; gap: 8px; background: var(--red); color: #fff; padding: 8px 20px; border-radius: 2px; font-weight: 600; }
.btn-red:hover { background: var(--red-dark); color: #fff; text-decoration: none; }

/* --- плитки направлений (как «业务子站» CCPIT) --- */
.tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; padding: 16px; }
.tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; min-height: 110px; padding: 12px 8px; border: 1px solid #cfd9e8; color: var(--blue); font-weight: 600; font-size: 15px; line-height: 1.35; background: linear-gradient(180deg, #fff, #f4f7fb); }
.tile .ico { width: 36px; height: 36px; stroke-width: 1.5; color: var(--red); }
.tile:hover { border-color: var(--red); color: var(--red); text-decoration: none; box-shadow: 0 2px 8px rgba(0,0,0,.08); }

.geo { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.geo-card { border: 1px solid var(--line); padding: 12px; display: flex; flex-direction: column; gap: 2px; background: #fcfaf8; }
.geo-code { display: inline-block; align-self: flex-start; background: var(--red); color: #fff; font-weight: 700; font-size: 12px; padding: 0 8px; letter-spacing: 1px; }
.geo-card:nth-child(2) .geo-code { background: var(--blue); }
.geo-card b { font-size: 17px; }
.geo-card span:last-child { color: #666; font-size: 14px; }
.geo .small { grid-column: 1 / -1; margin: 0; }

.steps { list-style: none; counter-reset: s; margin: 0; padding: 12px 16px; display: grid; gap: 8px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; gap: 0 12px; align-items: start; }
.steps li::before { content: counter(s, decimal-leading-zero); grid-row: span 2; background: var(--red); color: #fff; font-weight: 700; text-align: center; line-height: 40px; height: 40px; }
.steps b { font-size: 15px; }
.steps span { font-size: 13px; color: #666; }
.steps.wide { padding: 0; grid-template-columns: repeat(4, 1fr); }

/* --- внутренние страницы --- */
.crumbs { background: #fff; border: 1px solid var(--line); padding: 8px 14px; font-size: 13px; color: #666; margin-bottom: 14px; }
.crumbs a { color: #555; }
.cols { display: grid; grid-template-columns: 250px 1fr; gap: 14px; align-items: start; }
.side { background: #fff; border: 1px solid var(--line); }
.side-title { background: linear-gradient(180deg, var(--red), var(--red-dark)); color: #fff; font-size: 18px; font-weight: 700; padding: 12px 16px; letter-spacing: 1px; }
.side-menu { list-style: none; margin: 0; padding: 6px 0; }
.side-menu a { display: block; padding: 9px 16px 9px 26px; position: relative; border-bottom: 1px dashed #eee; }
.side-menu a::before { content: "›"; position: absolute; left: 12px; color: var(--muted); }
.side-menu li.on a { color: var(--red); font-weight: 700; background: #fdf3f2; }
.side .newslist { padding: 8px 12px; }
.side .more-line { padding: 0 12px 10px; }
.content { padding: 0 0 20px; margin: 0; }
.content > .newslist { padding: 4px 20px; }
.search-info { padding: 10px 20px 0; color: var(--red); }

.article { padding: 24px 36px 30px; }
.article h1 { font-size: 26px; color: #1a1a1a; text-align: center; line-height: 1.45; margin: 4px 0 12px; font-family: "SimHei", "Microsoft YaHei", sans-serif; }
.article-meta { text-align: center; color: #777; font-size: 13px; padding: 8px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 18px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; }
.fontsize button, .link { border: 0; background: none; font: inherit; color: var(--blue); cursor: pointer; padding: 0 3px; }
.article-body { font-size: 16px; line-height: 1.95; }
.article-body p { margin: 0 0 1em; text-indent: 2em; }
.lang-ru .article-body p { text-indent: 0; }
.article-body .lead { font-weight: 600; color: #444; text-indent: 0; }
.article-body h2 { font-size: 19px; color: var(--red); border-left: 4px solid var(--red); padding-left: 10px; margin: 1.4em 0 .6em; }
.article-body figure { margin: 0 0 1.2em; text-align: center; }
.article-body figcaption { font-size: 13px; color: var(--muted); }
.emblem-fig { float: right; margin: 0 0 12px 20px !important; width: 170px; }
.note { background: #fdf6f0; border: 1px solid #f1d9c4; border-left: 4px solid var(--gold); padding: 12px 16px; margin: 18px 0; }
.note b { color: #8a5a00; }
.note p { margin: 4px 0 0; }
.original { font-size: 14px; color: #666; }
.original a { color: var(--blue); word-break: break-all; }
.prevnext { border-top: 1px dashed var(--line); margin-top: 18px; padding-top: 12px; display: grid; gap: 6px; font-size: 14px; }
.slogan { text-align: center; font-size: 18px; color: var(--red); font-weight: 700; margin-top: 1.5em; text-indent: 0 !important; }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 16px 0 10px; }
.svc { border: 1px solid var(--line); border-top: 3px solid var(--red); padding: 14px; background: #fff; scroll-margin-top: 20px; }
.svc-head { display: flex; justify-content: space-between; align-items: center; color: var(--red); }
.svc-head .ico { width: 34px; height: 34px; stroke-width: 1.5; }
.svc-num { font-size: 26px; font-weight: 700; color: #f0d4d1; }
.svc h2 { font-size: 17px; margin: 8px 0 4px; color: #222; border: 0; padding: 0; }
.svc p { margin: 0; font-size: 14px; color: #555; text-indent: 0; }
.article > .lead { text-align: center; color: #555; }
.info { width: 100%; border-collapse: collapse; margin: 10px 0 18px; font-size: 15px; }
.info th, .info td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; vertical-align: top; }
.info th { width: 160px; background: #faf6f5; color: #555; font-weight: 600; }
.checklist { padding-left: 1.4em; }
.checklist li { margin: 4px 0; }

/* --- подвал --- */
.footer { margin-top: 10px; }
.footer-links { background: var(--red-dark); color: #fff; font-size: 13px; }
.footer-links .wrap { display: flex; flex-wrap: wrap; gap: 6px 22px; padding-top: 12px; padding-bottom: 12px; }
.footer-links a { color: #ffe9e6; }
.footer-links-title { color: #ffe2a1; font-weight: 600; }
.footer-main { display: flex; gap: 18px; align-items: center; justify-content: center; padding-top: 18px; padding-bottom: 22px; color: #666; font-size: 13px; line-height: 1.9; }
.footer-main p { margin: 0; }
.footer { background: #fff; border-top: 1px solid var(--line); }
.copy { color: #999; }

/* --- плавающая панель справа --- */
.sidetools { position: fixed; right: 10px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 2px; z-index: 50; }
.sidetools a { width: 62px; padding: 8px 2px; background: #fff; border: 1px solid var(--line); color: var(--red); display: flex; flex-direction: column; align-items: center; font-size: 11px; line-height: 1.3; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.sidetools a:hover { background: var(--red); color: #fff; text-decoration: none; }
.sidetools .ico { width: 22px; height: 22px; margin-bottom: 2px; }

/* --- страница выбора языка --- */
.choose { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: linear-gradient(160deg, #fff, #fbeeee); }
.choose-box { text-align: center; }
.choose-box h1 { color: var(--red); margin: 10px 0 0; letter-spacing: 3px; }
.choose-links { display: flex; gap: 16px; justify-content: center; margin-top: 18px; }
.choose-links a { background: var(--red); color: #fff; padding: 8px 22px; }

/* --- печать --- */
@media print {
  .topbar, .mainnav, .search, .side, .sidetools, .footer-links, .crumbs, .fontsize, [data-print], .prevnext { display: none !important; }
  .cols { display: block; }
  body { background: #fff; }
  .box { border: 0; }
}

/* --- планшеты и телефоны --- */
@media (max-width: 1360px) {
  .sidetools { display: none; }
}
@media (max-width: 1100px) {
  .focus-row { grid-template-columns: 1fr; }
  .focus { min-height: 300px; }
  .three { grid-template-columns: 1fr 1fr; }
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .steps.wide { grid-template-columns: 1fr 1fr; }
  .sidetools { display: none; }
}
@media (max-width: 760px) {
  body { font-size: 15px; }
  .topbar .wrap { flex-wrap: wrap; justify-content: center; padding-top: 4px; padding-bottom: 4px; }
  .today { display: none; }
  .masthead-in { flex-direction: column; align-items: stretch; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
  .brand img { width: 60px; }
  .brand-name { font-size: 26px; }
  .lang-ru .brand-name { font-size: 24px; }
  .brand-second { font-size: 13px; }
  .brand-en { display: none; }
  .search input { width: 100%; flex: 1; }
  .nav-toggle { display: block; background: none; border: 0; color: #fff; font-size: 24px; padding: 6px 0; cursor: pointer; }
  .mainnav ul { display: none; flex-direction: column; }
  .mainnav ul.open { display: flex; }
  .mainnav a { line-height: 44px; text-align: left; padding: 0 8px; border-top: 1px solid rgba(255,255,255,.15); }
  .banner { padding: 12px 16px; }
  .banner-big { font-size: 18px; letter-spacing: 1px; }
  .three, .two, .cols, .geo, .svc-grid, .steps.wide { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .focus { min-height: 230px; }
  .newslist li { padding-right: 0; }
  .newslist .d { position: static; display: block; font-size: 12px; }
  .newslist a { white-space: normal; }
  .side { order: 2; }
  .article { padding: 16px; }
  .article h1 { font-size: 21px; }
  .emblem-fig { float: none; margin: 0 auto 12px !important; }
  .footer-main { flex-direction: column; text-align: center; }
  .info th { width: 90px; }
}

/* --- английская версия и миниатюры новостей --- */
.lang-en .brand-name { letter-spacing: 1px; font-size: 32px; font-family: Arial, "Helvetica Neue", sans-serif; }
.lang-en .article-body p { text-indent: 0; }
.lang-en .tab-heads button { font-size: 15px; padding: 0 11px; }
.lang-en .banner-big { font-size: 22px; letter-spacing: 1px; }
.newslist .thumb { float: right; width: 120px; height: 80px; object-fit: cover; margin: 2px 0 6px 14px; border: 1px solid var(--line); }
.newslist.big li:has(.thumb) .d { right: 136px; }
@media (max-width: 760px) {
  .lang-en .brand-name { font-size: 24px; }
  .newslist .thumb { width: 90px; height: 60px; }
}
