:root {
    --primary: #0f172a; --accent: #2563eb; --accent-hover: #1d4ed8;
    --text: #334155; --text-light: #64748b; --bg: #f8fafc;
    --white: #ffffff; --border: #e2e8f0; --shadow: 0 4px 12px rgba(0,0,0,0.06); --radius: 10px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; color: var(--text); line-height: 1.6; background: var(--bg); }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; display: block; border-radius: 8px; }
.container { margin: 0 auto; padding: 0 50px; }

/* Header & Dropdown */
header { background: rgba(15, 23, 42, 0.92); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15); position: sticky; top: 0; z-index: 1000; backdrop-filter: blur(8px);}
.header-inner { display: flex; justify-content: space-between; align-items: center; padding: 10px 50px; }
.logo { font-size: 20px; font-weight: 700; color: #ffffff; display: flex; align-items: center; gap: 8px; }
.logo span { background: #3b82f6; color: #ffffff; padding: 2px 6px; border-radius: 4px; font-size: 12px; letter-spacing: 1px; }
.main-nav { display: flex; gap: 5px; }
.main-nav > li { position: relative; }
.main-nav > li > a { padding: 10px 16px; font-weight: 500; border-radius: 6px; display: block; color: #e2e8f0;}
.main-nav > li > a:hover, .main-nav > li > a.active { background: rgba(255, 255, 255, 0.15); color: #ffffff; }
.arrow { font-size: 10px; margin-left: 4px; opacity: 0.6; transition: transform 0.3s; }
.dropdown { position: absolute; top: 100%; left: 0; background: rgba(30, 41, 59, 0.95); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); border-radius: 8px; width: 180px; padding: 8px 0; opacity: 0; visibility: hidden; transform: translateY(10px); transition: 0.2s ease; z-index: 10; backdrop-filter: blur(10px); }
.has-dropdown:hover > .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.has-dropdown:hover .arrow { transform: rotate(180deg); }
.dropdown a { display: block; padding: 10px 20px; color: #e2e8f0; font-size: 0.95rem; }
.dropdown a:hover { background: rgba(255, 255, 255, 0.1); color: #ffffff; padding-left: 25px; }
.mobile-toggle { display: none; font-size: 24px; cursor: pointer; padding: 5px; }

/* Common layout */
.page-header { margin-bottom: 30px; border-bottom: 2px solid var(--border); padding: 40px; text-align: center;}
.page-header h1 { color: var(--primary); font-size: 1.8rem; margin-bottom: 5px; }
.page-header p { color: var(--text-light); }
.content-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; margin-top: 20px; padding: 0 5%;}
.card { background: var(--white); padding: 25px; border-radius: var(--radius); box-shadow: var(--shadow); }
.card h3 { color: var(--accent); margin-bottom: 10px; font-size: 1.2rem; }
.card p { font-size: 0.95rem; color: var(--text-light); margin-bottom: 15px; text-indent: 2em;}
.card img { height: auto;object-fit: fill; width: 50%; margin-bottom: 15px; background: #e2e8f0; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 15px; margin-top: 20px; padding: 0 50px;}
.gallery img { height: 200px; width: 100%; object-fit: contain; transition: transform 0.3s; background: white }
.gallery img:hover { transform: scale(1.03); }

.news-item { background: var(--white); padding: 20px; border-radius: var(--radius); margin: 0 8%; margin-bottom: 15px; display: flex; gap: 20px; box-shadow: var(--shadow); cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; }
.news-item:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.12); }
.news-item img { width: 200px; height: 200px; object-fit: cover; flex-shrink: 0; }
.news-info .date { font-size: 0.8rem; color: var(--text-light); margin: 15px 0; }
.news-info h4 { font-size: 1.1rem; margin-bottom: 8px; color: #356cba; }
.news-info p { font-size: 0.9rem; color: #4e596a; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Hero Carousel */
.hero { position: relative; height: 450px; overflow: hidden; background: var(--primary); margin-bottom: 40px; border-radius: var(--radius); }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.8s; display: flex; align-items: center; justify-content: center; background-size: cover; background-position: center; }
.slide.active { opacity: 1; }
.slide::before { content: ''; position: absolute; inset: 0; background: rgba(15,23,42,0.65); }
.slide-text { position: relative; z-index: 2; text-align: center; color: var(--white); max-width: 800px; padding: 20px; }
.slide-text h2 { font-size: 2.5rem; margin-bottom: 10px; }
.carousel-dots { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 3; }
.dot { width: 10px; height: 10px; background: rgba(255,255,255,0.5); border-radius: 50%; cursor: pointer; transition: 0.3s; }
.dot.active { background: var(--white); transform: scale(1.2); }

/* Contact & Footer */
.contact-grid { display: grid; gap: 40px; justify-content: center;}
.contact-info-box { background: var(--white); padding: 30px; border-radius: var(--radius); box-shadow: var(--shadow); }
.info-row { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 20px; }
.info-row .icon { width: 40px; height: 40px; background: #dbeafe; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--accent); flex-shrink: 0; }
.contact-form input, .contact-form textarea { width: 100%; padding: 12px; margin-bottom: 15px; border: 1px solid var(--border); border-radius: 6px; font-family: inherit; }
.btn { background: var(--accent); color: var(--white); border: none; padding: 12px 25px; border-radius: 6px; cursor: pointer; font-weight: 500; transition: 0.3s; }
.btn:hover { background: var(--accent-hover); }

footer { background: var(--primary); color: #cbd5e1; padding: 40px 0 20px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(30%, 1fr)); gap: 30px; margin-bottom: 30px;padding: 0 10%;}
.footer-nav h4, .footer-info h4 { color: var(--white); margin-bottom: 15px; font-size: 1rem; border-bottom: 2px solid var(--accent); padding-bottom: 8px; display: inline-block; }
.footer-nav a { display: block; padding: 5px 0; color: #94a3b8; }
.footer-nav a:hover { color: var(--white); padding-left: 5px; }
.footer-info p { margin-bottom: 8px; font-size: 0.9rem; }
.copyright { text-align: center; padding-top: 20px; border-top: 1px solid #334155; font-size: 0.85rem; color: #64748b; }

@media (max-width: 768px) {
    .mobile-toggle { display: block; }
    .main-nav { position: fixed; top: 60px; left: 0; right: 0; background: #1e293b; flex-direction: column; padding: 20px; box-shadow: var(--shadow); transform: translateY(-120%); transition: 0.3s; }
    .main-nav.open { transform: translateY(0); }
    .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; width: 100%; padding-left: 15px; display: none; }
    .has-dropdown:hover > .dropdown { display: block; }
    .hero { height: 300px; }
    .slide-text h2 { font-size: 1.6rem; }
    .contact-grid, .news-item { grid-template-columns: 1fr; flex-direction: column; }
    .news-item img { width: 100%; height: 2%; }
    .news-item { margin: 0 0 15px 0; }
    .container { padding: 0 15px; }
    .footer-grid { padding: 0 15px; }
    .content-grid { padding: 0 15px; }
    .gallery { padding: 0 15px; }
}

.child-page-header{ background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; height: 280px; margin: 0 -50px; }

/* Tab栏 */
.tab-nav { display: flex; justify-content: center; gap: 28px; margin: -20px auto -5px; padding: 11px; background: var(--white); border-radius: 20px; box-shadow: var(--shadow); max-width: 800px; flex-wrap: wrap; }
.tab-btn { padding: 10px 36px; border: 1px solid var(--border); background: var(--bg); color: var(--text-light); border-radius: 50px; cursor: pointer; font-size: 20px; transition: all 0.2s; }
.tab-btn:hover { border-color: var(--accent); color: var(--accent); }
.tab-btn.active { background: var(--accent); color: var(--white); border-color: var(--accent); }

/* Tab内容切换 */
.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.gallery-item { margin: 0; text-align: center; background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.gallery-item img { width: 100%; height: auto; object-fit: cover; display: block; }
.gallery-item figcaption { padding: 12px 8px; font-size: 15px; color: #333; font-weight: 500; background: #f9f9f9; }

/* 新闻详情弹窗 */
.modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(15, 23, 42, 0.75); display: flex; align-items: center; justify-content: center; z-index: 2000; opacity: 0; visibility: hidden; transition: all 0.3s ease; padding: 20px; }
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-content { background: var(--white); border-radius: var(--radius); max-width: 800px; width: 100%; max-height: 90vh; overflow-y: auto; box-shadow: 0 20px 40px rgba(0,0,0,0.2); animation: modalSlide 0.3s ease; }
@keyframes modalSlide { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
.modal-header { padding: 25px 30px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: flex-start; position: sticky; top: 0; background: var(--white); z-index: 1; }
.modal-title { font-size: 1.4rem; color: var(--primary); margin-bottom: 8px; line-height: 1.4; }
.modal-date { font-size: 0.85rem; color: var(--text-light); }
.modal-close { width: 32px; height: 32px; border: none; background: var(--bg); border-radius: 50%; font-size: 20px; color: var(--text-light); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; flex-shrink: 0; }
.modal-close:hover { background: var(--accent); color: var(--white); }
.modal-body { padding: 25px 30px; }
.modal-body img { width: 100%; max-height: 400px; object-fit: cover; border-radius: 8px; margin-bottom: 20px; }
.modal-body p { font-size: 1rem; color: var(--text); line-height: 1.8; text-indent: 2em; margin-bottom: 15px; }
.modal-content::-webkit-scrollbar { width: 6px; }
.modal-content::-webkit-scrollbar-track { background: var(--bg); border-radius: 3px; }
.modal-content::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.modal-content::-webkit-scrollbar-thumb:hover { background: var(--accent); }
.loading-text { text-align: center; color: #999; padding: 40px; font-size: 1rem; }

.shape-img{
    float: left;          /* 注意：shape-outside 必须配合 float 使用才有效 */
    width: 50%;
    height: 200px;
    border-radius: 5%;   /* 让图片显示为圆形 */
    /* 核心属性：告诉浏览器文字应该沿着什么形状环绕 */
    shape-outside: circle(95%); /* 让文字沿着圆形边缘环绕 */
    margin: 0 15px 15px 0;
}