/* 使用根部节点托管颜色，随便改 */
:root {
    --brand-colour: white;
    --brand-active: #d39d9d;
    --accent-colour: #d39d9d;
    --text-colour: #960000;
    --muted-text: #666;
    --bg-colour: #f1f1f1;
    --card-bg: #fff;
    --border-colour: #e0e0e0;
}


* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "FZYaoTi", sans-serif;
    color: var(--text-colour);
    background: var(--bg-colour);
    padding: 10px;
}

h1,
h2,
h3 {
    font-family: "FZYaoTi", serif;
    font-weight: 700;
    letter-spacing: 0.3px;
}

/* 链接样式 */
a {
    text-decoration: none;
}

/* 仅卡片内生效 鼠标移动到链接上时才显示链接下面的横线 */
.card a:hover {
    text-decoration: underline;
}

.card a:active {
    text-decoration: underline;
}

/* 头部标题 */
.header {
    height: 150px;
    padding: 30px;
    text-align: left;
    background: #e8e8e8;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 导航条 */
.topnav {
    display: flex;
    flex-wrap: wrap;
    background-color: #960000;
    color: whitesmoke;
    position: relative;
}

/* 导航条链接 */
.topnav a {
    flex: 1 1 auto;
    text-align: center;
    padding: 14px 16px;
    color: var(--border-colour);
    transition: background 0.3s;
}

/* 鼠标悬停导航栏颜色修改 */
.topnav a:hover {
    background-color: var(--accent-colour);
    color: black;
}

.topnav a:last-child {
    margin-left: auto;
}

/* 搜索样式 */
.search-form {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 8px;
}

.search-input {
    padding: 8px 12px;
    border-radius: 20px;
    /* 未聚焦时有明显边框和微弱背景，以便在导航条上可辨识 */
    border: 3px solid #fff;
    /* 边框 */
    font-family: "STZhongsong", sans-serif;
    background: rgba(255, 45, 149, 0.06);
    font-weight: 700;
    min-width: 180px;
    color: white;
    /* 未聚焦时文字为白色 */
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.75);
}

.search-input:focus {
    outline: none;
    box-shadow: 0 6px 0 rgba(11, 11, 11, 0.06);
    background: #ffffff;
    /* 焦点时显示白色背景，增强可见性 */
    color: #0b0b0b;
    /* 聚焦时文字改为深色，保证可读性 */
    border-color: white;
}

.search-btn {
    background: var(--brand-colour);
    color: #960000;
    border: none;
    padding: 8px 12px;
    border-radius: 20px;
    font-family: "STZhongsong", sans-serif;
    font-weight: 700;
    cursor: pointer;
}

.search-btn:hover {
    transform: translateY(-2px);
}

/* 搜索结果 */
.search-results {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.search-results .card {
    border-style: solid;
    border-color: var(--border-colour);
}

.search-results .card h2 {
    margin-bottom: 8px;
}

.search-results .card p {
    color: var(--muted-text);
}

.search-no-results {
    padding: 24px;
    text-align: center;
    color: var(--muted-text);
}

/* 导航栏链接选中 */
a.active {
    background-color: var(--brand-active);
    color: white;
}

/* 内容行容器 */
.row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

/* 左列、右列（取代 float） */
.leftcolumn {
    flex: 3 1 600px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.rightcolumn {
    flex: 1 1 300px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 卡片效果 */
.card {
    display: flex;
    flex-direction: column;
    background-color: white;
    padding: 50px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    gap: 10px;
}

.card p {
    color: var(--text-colour);
}

/* 段落首行缩进：2 个字符宽度 */
p {
    text-indent: 2ch;
}

.card:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    transition: 0.3s ease;
}

.card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 三等分卡片 */
.third-width-card {
    flex: 1 1 30%;
    display: flex;
    flex-direction: column;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    gap: 10px;
}

/* 图像部分 */
.fakeimg {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 50px;
    background-color: red;
    padding: 200px;
    border-radius: 4px;
}

.fakeimg img {
    flex: 1 1 30%;
    max-width: 30%;
    height: auto;
    border-radius: 4px;
    object-fit: cover;
}

/* 底部 */
.footer {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: var(--border-colour);
    margin-top: 20px;
}

.banner-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 400px;
    height: 400px;
    margin: 20px auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    position: relative;
}

.banner-wrapper {
    display: flex;
    flex: 1;
    width: 100%;
    height: 100%;
    transition: transform 0.8s ease-in-out;
}

.banner-slide {
    flex: 0 0 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.banner-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 95%;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.banner-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.banner-btn:hover {
    background: rgba(0, 0, 0, 0.6);
}

.banner-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
}

.banner-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: background 0.3s;
}

.banner-dots span.active {
    background: var(--accent-colour);
}

/* 响应式：平板及以下（max-width: 900px） */
@media (max-width: 900px) {

    .leftcolumn,
    .rightcolumn {
        flex: 1 1 100%;
    }
}

/* 手机端进一步优化（max-width: 600px） */
@media (max-width: 600px) {
    .row {
        flex-direction: column;
    }

    .topnav a {
        flex: 1 1 100%;
    }

    .header h1 {
        font-size: 32px;
    }

    .card {
        padding: 15px;
    }

    .banner-container {
        width: 80%;
        /* 宽度不超过80% */
        height: auto;
        /* 高度自适应 */
        aspect-ratio: 1 / 1;
        /* 宽高比1:1，形成正方形 */
        max-width: 400px;
        /* 设置最大宽度避免过大 */
        border-radius: 8px;
    }

    .banner-btn {
        width: 32px;
        height: 32px;
        font-size: 18px;
    }

    .banner-dots span {
        width: 10px;
        height: 10px;
    }

    /* 移动端：搜索区域占满整行，输入与按钮同行紧凑布局 */
    .search-form {
        flex-direction: row;
        align-items: stretch;
        /* 让子元素拉伸以匹配高度 */
        gap: 0;
        margin-left: 0;
        width: 100%;
    }

    .search-input {
        flex: 1 1 auto;
        min-width: 0;
        box-sizing: border-box;
        height: 44px;
        /* 统一高度，符合触控目标 */
        padding: 8px 12px;
        /* 保持与 PC 端一致的配色，右侧去掉边框以与按钮无缝衔接 */
        border: 3px solid #fff;
        border-right: 0;
        border-radius: 20px 0 0 20px;
        background: rgba(255, 45, 149, 0.06);
        color: #ffffff;
        font-weight: 700;
        display: flex;
        align-items: center;
    }

    .search-input::placeholder {
        color: rgba(255, 255, 255, 0.75);
    }

    .search-input:focus {
        outline: none;
        box-shadow: 0 6px 0 rgba(11, 11, 11, 0.06);
        background: #ffffff;
        color: #0b0b0b;
        border-color: #00d4ff;
        border-right: 0;
    }

    .search-btn {
        flex: 0 0 auto;
        box-sizing: border-box;
        height: 44px;
        /* 与输入框对齐 */
        padding: 0 14px;
        /* 竖向由 height 控制，左右保留内边距 */
        border-radius: 0 20px 20px 0;
        background: #666;
        color: #fff;
        font-weight: 700;
        cursor: pointer;
        border: none;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

/* 这里我定义了一个 Hero Banner，想用可以用 */

.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 60vh;
    color: white;
    overflow: hidden;

    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3em;
    margin-bottom: .5em;
    text-shadow:
        0 0 10px rgba(0, 0, 0, 0.8),
        0 0 20px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(0, 0, 0, 0.4),
        0 0 80px rgba(0, 0, 0, 0.2);
}

.heroimg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: 0;
    /* Hero 不需要圆角 */
}

/* 背景图像 */
.heroimg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.btn-primary {
    background: var(--accent-colour);
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.3s;
}

.btn-primary:hover {
    background: var(--brand-colour);
}

/* --- 来自 inline-styles.css 的提取样式（合并） --- */
/* 提取的内联样式 */
/* 原 head 中的通用 div 样式（保留原始优先级） */
div {
    font-size: 20px;
    font-family: "FZYaoTi";
    color: #960000;
    text-transform: uppercase;
    text-align: center;
    z-index: 10;
}

/* 原来内嵌的文本类 */
.text {
    font-family: "STZhongsong";
    font-size: 20px;
    height: 100px;
    top: 10px;
}

.text1 {
    font-family: "STZhongsong";
    font-size: 15px;
    height: 40px;
    top: 20px;
}

/* 替换原先行内定位的标题容器和定位 span */
.title-box {
    position: relative;
    width: 300px;
    height: 100px;
}

.title-box-large {
    position: relative;
    width: 300px;
    height: 130px;
}

.title-span-1,
.title-span-2,
.title-span-3 {
    position: absolute;
    border: 1px solid transparent;
    /* 保持原来写的 border:1px; 不影响布局 */
}

.title-span-1 {
    top: -10px;
    left: 120px;
}

.title-span-2 {
    top: -40px;
    left: 125px;
}

.title-span-3 {
    top: -135px;
    left: 1280px;
}

/* 提取的图片定位 */
.img-top-left {
    position: absolute;
    top: 25px;
    left: 40px;
    width: 7%;
    height: auto;
}

.img-top-right {
    position: absolute;
    top: 10px;
    left: 1330px;
    width: 7%;
    height: auto;
}

/* 保留已有的 top-left/top-right 类兼容性 */