/* ================================================
   星宫网站
   ================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
    color: #4a3728;
    line-height: 2;
    background: #faf8f5;
    overflow-x: hidden;
}

/* ===== 页面背景 ===== */
.page-bg {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: url('./images/neiyebac.png') no-repeat center center;
    background-size: cover;
    z-index: -1;
    opacity: 0.85;
}

/* ===== 通用容器 ===== */
.page-wrap {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main { flex: 1; }

/* ===== 顶部 Logo + 导航 ===== */
.header {
    width: 100%;
    background: #faf8f5;
    position: sticky;
    top: 0;
    z-index: 100;
    /* 滚动后有阴影，由 JS 控制 .scrolled 类 */
    transition: box-shadow 0.3s ease;
}

.header.scrolled {
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 14px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 52px;
    display: block;
}

/* ===== PC 导航 ===== */
.nav-pc {
    display: flex;
    align-items: center;
}

.nav-pc a {
    display: inline-block;
    padding: 8px 18px;
    color: #6b5344;
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 1px;
    transition: color 0.3s;
    position: relative;
}

.nav-pc a::after {
    content: '';
    position: absolute;
    bottom: 2px; left: 50%; right: 50%;
    height: 1px;
    background: #c9a96e;
    transition: left 0.3s, right 0.3s;
}

.nav-pc a:hover::after,
.nav-pc a.active::after {
    left: 18px; right: 18px;
}

.nav-pc a:hover,
.nav-pc a.active {
    color: #c9a96e;
}

/* 手机汉堡菜单 */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #6b5344;
    transition: all 0.3s;
}

/* 手机导航 */
.nav-mobile {
    display: none;
    background: #faf8f5;
    border-top: 1px solid #e8dfd4;
}

.nav-mobile.open { display: block; }

.nav-mobile a {
    display: block;
    padding: 13px 30px;
    color: #6b5344;
    text-decoration: none;
    font-size: 14px;
    border-bottom: 1px solid #f0ebe3;
    transition: background 0.3s, color 0.3s;
}

.nav-mobile a:hover,
.nav-mobile a.active {
    background: #c9a96e;
    color: #fff;
}

/* ===== 通用区块 ===== */
.section {
    max-width: 1100px;
    margin: 0 auto;
    padding-top: 36px;
    padding-right: 30px;
    padding-left: 30px;
    padding-bottom: 80px;
}

/* ===== 首页英雄区 ===== */
.hero {
    text-align: center;
    padding-top: 36px;
    padding-right: 30px;
    padding-left: 30px;
    padding-bottom: 0px;
    max-width: none;
    overflow: visible;
}

.hero-title {
    font-size: 42px;
    font-weight: 300;
    letter-spacing: 8px;
    color: #4a3728;
    margin-bottom: 10px;
}

.hero-sub {
    font-size: 14px;
    letter-spacing: 4px;
    color: #b8a898;
    margin-bottom: 60px;
}

.hero-poem {
    font-size: 18px;
    line-height: 2.8;
    color: #6b5344;
    margin-bottom: 30px;
    letter-spacing: 2px;
}

/* 诗意开篇文字 */
.hero-tagline {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    background: #faf8f5;
    padding-top: 0px;
    padding-right: 0;
    padding-left: 0;
    padding-bottom: 69px;
    display: block;
}

.hero-tagline p {
    font-family: Cambria, "Hoefler Text", "Liberation Serif", Times, "Times New Roman", serif;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 6px;
    color: #000000;
    text-align: center;
    line-height: 1.6;
}

/* gzg+.png — 铺满屏幕宽度 */
.hero-img {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-bottom: 50px;
}

.hero-img img {
    width: 100%;
    height: auto;
    display: block;
}

/* 内容区块内图片自适应（news.png 等标题图） */
.content-block img,
.ti-text img {
    max-width: 100%;
    height: auto;
    display: inline-block;
}

/* 图文区块标题图片 */
.ti-text h3 img {
    max-width: 100%;
    height: auto;
}

/* ===== 内容区块 ===== */
.content-block {
    background: rgba(255, 255, 255, 0.82);
    border-radius: 6px;
    padding-right: 36px;
    padding-left: 36px;
    padding-bottom: 36px;
    margin: 0 auto;
    max-width: 860px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    padding-top: 36px;
}

.content-block h2 {
    font-family: "Source Han Serif SC", "Source Han Serif", "思源宋体", "Noto Serif SC", serif;
    font-weight: 700;
    font-size: 22px;
    letter-spacing: 4px;
    color: #4a3728;
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e8dfd4;
}

.text-img h3 {
    font-family: "Source Han Serif SC", "Source Han Serif", "思源宋体", "Noto Serif SC", serif;
    font-weight: 700;
}

.content-block p {
    font-size: 15px;
    line-height: 2.4;
    color: #6b5344;
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.content-block p:last-child {
    margin-bottom: 0;
    text-align: left;
}

.content-block .highlight {
    color: #c9a96e;
    font-weight: 500;
}

/* ===== 图文区块 ===== */
.text-img {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 860px;
    margin: 0 auto;
    padding: 0 30px;
}

.text-img .ti-text { flex: 1; }
.text-img .ti-img {
    flex: 0 0 380px;
    border-radius: 9px;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(0,0,0,0.1);
}

.text-img .ti-img img {
    width: 100%;
    height: auto;
    display: block;
}

.text-img h3 {
    font-family: "Source Han Serif SC", "Source Han Serif", "思源宋体", "Noto Serif SC", serif;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 3px;
    color: #4a3728;
    margin-bottom: 20px;
}

.text-img p {
    font-size: 14px;
    line-height: 2.2;
    color: #6b5344;
    letter-spacing: 1px;
}

/* ===== 联系页面 ===== */
.contact-grid {
    display: flex;
    gap: 60px;
    align-items: flex-start;
    max-width: 860px;
    margin: 0 auto;
    padding: 0 30px;
}

.contact-img {
    flex: 0 0 380px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(0,0,0,0.1);
}

.contact-img img { width: 100%; height: auto; display: block; }

.contact-info { flex: 1; }

.contact-info h2 {
    font-family: "Source Han Serif SC", "Source Han Serif", "思源宋体", "Noto Serif SC", serif;
    font-weight: 700;
    font-size: 20px;
    letter-spacing: 4px;
    color: #4a3728;
    margin-bottom: 30px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e8dfd4;
}

.contact-info p {
    font-size: 14px;
    line-height: 2.4;
    color: #6b5344;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.contact-info strong { color: #4a3728; }

.contact-qr {
    display: flex;
    gap: 16px;
    margin-top: 24px;
}

.contact-qr img {
    width: 113px;
    height: auto;
    border-radius: 4px;
}

/* ===== 底部 Footer ===== */
.footer {
    background: transparent;
    color: #4a3728;
    margin-top: auto;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px;
    text-align: center;
}

.footer-copy {
    font-size: 12px;
    color: #7a6a5a;
    letter-spacing: 1px;
}

.footer-copy a {
    color: #7a6a5a;
    text-decoration: none;
}

.footer-copy a:hover { color: #c9a96e; }

/* ===== 响应式 ===== */
@media (max-width: 860px) {
    .nav-pc { display: none; }
    .nav-toggle { display: flex; }

    .hero-title { font-size: 30px; letter-spacing: 4px; }
    .hero-poem { font-size: 16px; }

    .content-block { padding: 36px 24px; }

    .text-img {
        flex-direction: column;
        gap: 30px;
        padding: 0 20px;
    }
    .text-img .ti-img { flex: none; width: 100%; max-width: 400px; margin: 0 auto; }

    .contact-grid {
        flex-direction: column;
        gap: 30px;
        padding: 0 20px;
    }
    .contact-img { flex: none; width: 100%; max-width: 400px; margin: 0 auto; }

    .section { padding: 50px 20px; }
}

@media (max-width: 480px) {
    .hero { padding: 70px 20px 40px; }
    .hero-title { font-size: 24px; }
    .hero-sub { font-size: 12px; letter-spacing: 2px; }
    .hero-poem { font-size: 15px; }
    .content-block { padding: 28px 18px; }
    .content-block h2 { font-size: 18px; letter-spacing: 2px; }
    .content-block p { font-size: 14px; }
}
