/*
Theme Name: ECATCCA Bridge
Theme URI: https://ecatcca.org/
Author: ECATCCA
Author URI: https://ecatcca.org/
Description: 东欧-中国影视传媒与文化交流协会官方主题。藏青+金学术风格，模块化首页，中英双语（配合 Polylang）。Custom theme for the East Europe-China Audiovisual Translation and Cultural Communication Association — navy & gold academic style, modular front page, bilingual (works with Polylang).
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ecatcca
*/

/* ==========================================================================
   设计变量 / Reset
   ========================================================================== */
:root {
	--navy: #0e2a47;
	--navy-dark: #081d33;
	--navy-light: #16395e;
	--gold: #c9a24b;
	--gold-bright: #e0bd6a;
	--ink: #26313f;
	--muted: #66727f;
	--paper: #f7f5f0;
	--line: #e4e0d6;
	--serif: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", "SimSun", Georgia, "Times New Roman", serif;
	--sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--container: 1140px;
	--radius: 6px;
	--shadow: 0 10px 30px rgba(8, 29, 51, 0.10);
}

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

html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--sans);
	font-size: 16px;
	line-height: 1.8;
	color: var(--ink);
	background: #fff;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: var(--navy); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--gold); }

h1, h2, h3, h4 { font-family: var(--serif); color: var(--navy); line-height: 1.35; margin: 0 0 .6em; }

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

.screen-reader-text {
	position: absolute; width: 1px; height: 1px;
	clip: rect(1px, 1px, 1px, 1px); overflow: hidden;
}

/* ==========================================================================
   顶部 / Header
   ========================================================================== */
.site-header {
	position: sticky; top: 0; z-index: 100;
	background: rgba(255, 255, 255, 0.97);
	backdrop-filter: blur(6px);
	border-bottom: 1px solid var(--line);
}

.site-header .container {
	display: flex; align-items: center; gap: 24px;
	padding-top: 10px; padding-bottom: 10px;
}

.site-branding { display: flex; align-items: center; gap: 14px; min-width: 0; }

.site-branding .custom-logo { height: 52px; width: auto; display: block; }

.site-name { line-height: 1.3; }
.site-name .zh {
	display: block;
	font-family: var(--serif);
	font-size: 17px; font-weight: 700;
	color: var(--navy); letter-spacing: .5px;
	white-space: nowrap;
}
.site-name .en {
	display: block;
	font-size: 10.5px; color: var(--muted);
	letter-spacing: .4px; text-transform: uppercase;
}

.main-navigation { margin-left: auto; display: flex; align-items: center; gap: 28px; }

.main-navigation ul {
	list-style: none; margin: 0; padding: 0;
	display: flex; align-items: center; gap: 26px;
}

.main-navigation a {
	font-size: 14.5px; font-weight: 600; letter-spacing: .5px;
	color: var(--navy); padding: 6px 2px;
	border-bottom: 2px solid transparent;
}
.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
	color: var(--gold); border-bottom-color: var(--gold);
}

/* 语言切换 */
.lang-switch { display: flex; gap: 0; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.lang-switch a {
	font-size: 12.5px; font-weight: 600;
	padding: 4px 12px; color: var(--muted);
	border: none !important;
}
.lang-switch a.current { background: var(--navy); color: #fff; }
.lang-switch a:not(.current):hover { color: var(--navy); background: var(--paper); }

.nav-toggle {
	display: none; margin-left: auto;
	background: none; border: 1px solid var(--line); border-radius: var(--radius);
	font-size: 20px; line-height: 1; padding: 8px 12px; color: var(--navy); cursor: pointer;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
	position: relative;
	min-height: 560px; height: 72vh; max-height: 760px;
	display: flex; align-items: center; justify-content: center;
	text-align: center; color: #fff;
	background: var(--navy-dark) center/cover no-repeat;
}
.hero::before {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(8,29,51,.72) 0%, rgba(8,29,51,.55) 45%, rgba(8,29,51,.82) 100%);
}
.hero-inner { position: relative; padding: 0 24px; max-width: 900px; }

.hero-kicker {
	font-size: 13px; letter-spacing: 4px; text-transform: uppercase;
	color: var(--gold-bright); margin-bottom: 18px;
}
.hero-title {
	font-size: clamp(30px, 5vw, 52px);
	font-weight: 700; color: #fff; letter-spacing: 2px;
	margin-bottom: 10px; text-shadow: 0 2px 20px rgba(0,0,0,.35);
}
.hero-subtitle {
	font-family: var(--serif);
	font-size: clamp(15px, 2vw, 20px);
	color: rgba(255,255,255,.88); letter-spacing: 1px;
	margin-bottom: 26px;
}
.hero-divider {
	width: 64px; height: 3px; margin: 0 auto 30px;
	background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn {
	display: inline-block; padding: 13px 34px;
	font-size: 15px; font-weight: 600; letter-spacing: 1px;
	border-radius: 3px; border: 1px solid transparent;
	transition: all .25s ease;
}
.btn-gold { background: var(--gold); color: var(--navy-dark); }
.btn-gold:hover { background: var(--gold-bright); color: var(--navy-dark); transform: translateY(-2px); }
.btn-ghost { border-color: rgba(255,255,255,.65); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; border-color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-light); color: #fff; }

/* 横幅式 Hero（使用含协会名称的旧首图） */
.hero-banner {
	position: relative;
	min-height: 0; height: auto; max-height: none;
	display: block; text-align: center;
	background: var(--navy-dark);
}
.hero-banner::before { display: none; }
.hero-banner-img { width: 100%; display: block; }
.hero-banner-actions {
	position: absolute; left: 0; right: 0; bottom: 7%;
	display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
}
@media (max-width: 720px) {
	.hero-banner-actions { position: static; padding: 18px 0 22px; background: var(--navy-dark); }
}

/* ==========================================================================
   通用 Section
   ========================================================================== */
.section { padding: 88px 0; }
.section-alt { background: var(--paper); }

.section-head { text-align: center; margin-bottom: 52px; }
.section-kicker {
	font-size: 12.5px; letter-spacing: 3.5px; text-transform: uppercase;
	color: var(--gold); font-weight: 700; margin-bottom: 10px;
}
.section-title { font-size: clamp(24px, 3.4vw, 34px); margin-bottom: 14px; }
.section-title::after {
	content: ""; display: block; width: 48px; height: 2px;
	background: var(--gold); margin: 16px auto 0;
}

/* 关于协会 */
.about-grid {
	display: grid; grid-template-columns: 1.05fr .95fr;
	gap: 56px; align-items: center;
}
.about-text p { margin: 0 0 1.1em; color: #3d4956; }
.about-text .lead { font-size: 17.5px; color: var(--navy); font-weight: 600; }
.about-media img { border-radius: var(--radius); box-shadow: var(--shadow); display: block; }
.about-media .caption { font-size: 12.5px; color: var(--muted); text-align: center; margin-top: 10px; }

/* 期刊板块 */
.section-journal { background: linear-gradient(150deg, var(--navy-dark), var(--navy) 60%, var(--navy-light)); color: rgba(255,255,255,.85); }
.section-journal .section-title { color: #fff; }
.journal-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.journal-intro p { margin: 0 0 1em; }
.journal-badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 28px; }
.journal-badges span {
	font-size: 12.5px; letter-spacing: .5px;
	border: 1px solid rgba(201,162,75,.55); color: var(--gold-bright);
	padding: 5px 14px; border-radius: 20px;
}
.issue-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.issue-list a {
	display: block; background: rgba(255,255,255,.06);
	border: 1px solid rgba(255,255,255,.14); border-left: 3px solid var(--gold);
	border-radius: var(--radius); padding: 16px 18px; color: #fff;
	transition: all .25s ease;
}
.issue-list a:hover { background: rgba(255,255,255,.12); transform: translateY(-2px); color: #fff; }
.issue-list .issue-title { font-family: var(--serif); font-size: 16px; font-weight: 700; display: block; }
.issue-list .issue-meta { font-size: 12.5px; color: rgba(255,255,255,.6); }

/* 新闻卡片 */
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.post-card {
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
	overflow: hidden; transition: all .25s ease; display: flex; flex-direction: column;
}
.post-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); border-color: transparent; }
.post-card .card-body { padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.post-card .card-date { font-size: 12.5px; color: var(--gold); letter-spacing: 1px; font-weight: 700; margin-bottom: 8px; }
.post-card .card-title { font-size: 18px; margin-bottom: 10px; }
.post-card .card-title a { color: var(--navy); }
.post-card .card-title a:hover { color: var(--gold); }
.post-card .card-excerpt { font-size: 14px; color: var(--muted); flex: 1; }
.post-card .card-link { font-size: 13.5px; font-weight: 700; color: var(--navy); margin-top: 14px; letter-spacing: .5px; }
.post-card .card-link::after { content: " →"; color: var(--gold); }

.section-foot { text-align: center; margin-top: 46px; }

/* 图片集锦横幅 */
.banner-gallery {
	position: relative; min-height: 300px;
	display: flex; align-items: center; justify-content: center; text-align: center;
	background: var(--navy-dark) center/cover no-repeat fixed; color: #fff;
}
.banner-gallery::before { content: ""; position: absolute; inset: 0; background: rgba(8,29,51,.62); }
.banner-gallery .inner { position: relative; padding: 56px 24px; }
.banner-gallery h2 { color: #fff; font-size: clamp(22px, 3vw, 30px); letter-spacing: 2px; }
.banner-gallery p { color: rgba(255,255,255,.8); margin: 0 0 24px; }

/* ==========================================================================
   内页 / 文章
   ========================================================================== */
.page-hero {
	background: linear-gradient(150deg, var(--navy-dark), var(--navy));
	color: #fff; padding: 64px 0; text-align: center;
}
.page-hero h1 { color: #fff; font-size: clamp(24px, 3.4vw, 36px); margin: 0; letter-spacing: 1px; }
.page-hero .meta { font-size: 13px; color: rgba(255,255,255,.65); margin-top: 12px; letter-spacing: .5px; }

.content-area { padding: 64px 0 88px; }
.entry-wrap { max-width: 780px; margin: 0 auto; }

.entry-content { font-size: 16.5px; line-height: 1.95; }
.entry-content h2 { font-size: 24px; margin-top: 1.6em; padding-bottom: .35em; border-bottom: 2px solid var(--paper); }
.entry-content h3 { font-size: 20px; margin-top: 1.4em; }
.entry-content img { border-radius: var(--radius); }
.entry-content figure { margin: 1.6em 0; }
.entry-content figcaption { font-size: 13px; color: var(--muted); text-align: center; margin-top: 8px; }
.entry-content a { color: var(--navy); border-bottom: 1px solid var(--gold); }
.entry-content a:hover { color: var(--gold); }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.4em 0; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.entry-content th { background: var(--paper); }
.entry-content blockquote {
	margin: 1.6em 0; padding: 18px 26px;
	border-left: 3px solid var(--gold); background: var(--paper);
	font-family: var(--serif);
}
.entry-content .wp-block-file { margin: 1.4em 0; }
.entry-content .wp-block-file__button,
.entry-content .wp-element-button {
	background: var(--navy); color: #fff; border-radius: 3px;
	padding: 8px 20px; font-size: 14px;
}
.entry-content .wp-block-file__button:hover { background: var(--gold); color: var(--navy-dark); }

/* 列表页 */
.archive-list { max-width: 820px; margin: 0 auto; }
.archive-item {
	padding: 26px 4px; border-bottom: 1px solid var(--line);
	display: flex; gap: 28px; align-items: baseline;
}
.archive-item .date { flex: 0 0 108px; font-size: 13px; color: var(--gold); font-weight: 700; letter-spacing: .5px; }
.archive-item h2 { font-size: 19px; margin: 0 0 6px; }
.archive-item h2 a { color: var(--navy); }
.archive-item h2 a:hover { color: var(--gold); }
.archive-item .excerpt { font-size: 14px; color: var(--muted); }

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 48px; }
.pagination .page-numbers {
	padding: 8px 16px; border: 1px solid var(--line); border-radius: 3px;
	font-size: 14px; color: var(--navy);
}
.pagination .page-numbers.current { background: var(--navy); color: #fff; border-color: var(--navy); }
.pagination .page-numbers:hover:not(.current) { border-color: var(--gold); color: var(--gold); }

/* 上下篇 */
.post-nav { max-width: 780px; margin: 40px auto 0; display: flex; justify-content: space-between; gap: 20px; font-size: 14px; }
.post-nav a { color: var(--muted); }
.post-nav a:hover { color: var(--gold); }

/* ==========================================================================
   页脚
   ========================================================================== */
.site-footer { background: var(--navy-dark); color: rgba(255,255,255,.68); font-size: 14px; }
.footer-grid {
	display: grid; grid-template-columns: 1.3fr 1fr 1fr;
	gap: 48px; padding: 64px 0 48px;
}
.site-footer h4 { color: #fff; font-size: 16px; letter-spacing: 1px; margin-bottom: 18px; }
.site-footer h4::after { content: ""; display: block; width: 32px; height: 2px; background: var(--gold); margin-top: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer ul li { margin-bottom: 10px; }
.site-footer a { color: rgba(255,255,255,.68); }
.site-footer a:hover { color: var(--gold-bright); }
.footer-brand .zh { font-family: var(--serif); font-size: 17px; color: #fff; display: block; margin-bottom: 6px; }
.footer-brand .en { font-size: 12px; color: rgba(255,255,255,.5); display: block; margin-bottom: 16px; line-height: 1.5; }
.footer-bottom {
	border-top: 1px solid rgba(255,255,255,.12);
	padding: 20px 0; font-size: 12.5px; color: rgba(255,255,255,.45);
	display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 960px) {
	.about-grid, .journal-grid { grid-template-columns: 1fr; gap: 36px; }
	.posts-grid { grid-template-columns: repeat(2, 1fr); }
	.footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
	.nav-toggle { display: block; }
	.main-navigation {
		position: absolute; top: 100%; left: 0; right: 0;
		background: #fff; border-bottom: 1px solid var(--line);
		box-shadow: 0 12px 24px rgba(8,29,51,.08);
		display: none; padding: 12px 24px 20px;
	}
	.main-navigation.open { display: block; }
	.main-navigation ul { flex-direction: column; align-items: flex-start; gap: 4px; }
	.main-navigation ul li { width: 100%; }
	.main-navigation ul a { display: block; padding: 10px 0; }
	.lang-switch { margin-top: 12px; }
	.site-header .container { flex-wrap: wrap; }
	.site-name .zh { font-size: 14px; white-space: normal; }
	.site-name .en { display: none; }
	.section { padding: 60px 0; }
	.posts-grid, .issue-list { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr; gap: 32px; }
	.archive-item { flex-direction: column; gap: 6px; }
	.hero { min-height: 440px; height: auto; padding: 90px 0; }
	.hero-banner { min-height: 0; padding: 0; }
	.banner-gallery { background-attachment: scroll; }
}
