* {
    margin: 0;
    /* padding: 0; */
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    font-size: 150%;
    margin: 0;
    padding: 0;
    background-color: #f8f6f4; /* 设置背景颜色 */
    color: #333; /* 设置默认文本颜色 */
    line-height: 2;
    max-width: none; /* 移除max-width限制 */
    margin-left: 0;
    margin-right: 0;
}

.column_title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    display: inline;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.logo-container {
    display: flex;
    align-items: center; /* 垂直居中 */
    justify-content: center; /* 水平居中 */
    height: 100%;
}

.logo {
    height: 50px;
    width: 50px;
    margin-right: 10px;
}

.title {
    font-size: 1.2em;
    margin-bottom: 0;
}

.nav-links a {
    margin-left: 20px;
    text-decoration: none;
    color: #333;
    font-size: 1em;
}

.nav-links a:hover {
    color: #007bff;
    text-decoration: none;
}

a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    color: #007bff;
    text-decoration: none;
}

a.h1 {
    color: #333;
    padding: 0px;
    margin: 0px;
}

h2 {
    margin: auto;
    text-align: center;
}

div.column_title {
    font-size: 20px;
}

div.hot-introduce {
    text-align: center;
    margin: 20px auto;
}

div.watch-more {
    text-align: center;
    margin: 20px auto;
}

.content {
    margin-top: 60px; /* 确保内容不被标题栏遮挡 */
    padding: 20px;
}

a {
    color: rgba(0, 0, 255, 0.8);
    text-decoration: none;
    padding: 10px;
    /* margin: 10px; */
    border-radius: 5px;
}

a.link:hover {
    color: #fff;
    background-color: rgba(255, 0, 0, 0.6);
}

section {
    /* max-width: 90%; */
    /* margin: 20px auto; */
    /* padding: 30px; */
    /* border: 2px dashed orange; */
    /* border-radius: 20px; */
}

section.category {
    border: none;
}

section.search {
    border: none;
}

section.intro {
    /* margin-top: 150px; */
    max-width: 900px;
}

.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.red {
    color: red;
}

.bold {
    font-weight: bold;
}

section#hot {
    /* margin-top: 100px; */
    max-width: 2200px;
    border: none;
}

section#about {
    margin-top: 50px;
    margin-bottom: 200px;
    max-width: 900px;
}

button {
    border: none;
    background-color: rgb(255, 165, 0, 0.8);
    /* color: white; */
    padding: 10px 20px;
    font-weight: bold;
    font-size: large;
    border-radius: 10px;
}

.friend-links {
    font-size: 80%;
}

/* 设置友情链接样式 */
.friend-links {
    margin-top: 10px; /* 上外边距 */
}

.friend-links h4 {
    margin-bottom: 10px; /* 下外边距 */
}

.friend-links ul {
    list-style-type: none; /* 列表样式为无 */
    padding: 0; /* 内边距为0 */
}

.friend-links li {
    display: inline; /* 行内展示 */
    margin: 0 10px; /* 外边距 */
}

.friend-links a {
    text-decoration: none; /* 移除下划线 */
    color: #000; /* 字体颜色 */
}

.friend-links a:hover {
    text-decoration: underline; /* 鼠标悬停时显示下划线 */
}

/* 将精选虾仁沙雕动画导航站原站友链设置为和背景同一颜色 */
li.original a {
    color: #f8f6f4;
}

section#privacy {
    margin-top: 100px;
    margin-bottom: 50px;
}

/* 让 main 区域整体居中且宽度与 body 保持一致 */
main {
    max-width: 1200px; /* 或1200px，建议与header/container一致 */
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    padding-left: 12px;
    padding-right: 12px;
    width: 100%;
    display: block; /* 还原为块级，避免flex影响子元素宽度 */
}

/* 只让 section、nav、.tab-content 居中显示，不强制100%宽度 */
main > section,
main > nav,
main > .tab-content,
main > div,
main > ul,
main > form {
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    /* 移除width:100%和display:flex，避免撑满main导致内容溢出 */
    /* width: 100%; */
    /* max-width: 100%; */
    /* display: flex; */
    /* flex-direction: column; */
    /* align-items: center; */
}

/* 强制 filter-sort 使用 flex 行并禁止换行，覆盖 Bootstrap .row 在小屏的换行行为 */
.filter-sort {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;       /* 禁止换行，保持两个控件在一行 */
    gap: 8px !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box;
    width: auto !important;
    min-width: 0 !important;            /* 允许在小屏收缩 */
}

/* 让每个 col-auto 不占满整行，内部居中并能收缩 */
.filter-sort .col-auto {
    display: flex !important;
    flex: 0 1 auto !important;          /* 不强制扩展，占用内容宽度并可收缩 */
    align-items: center !important;
    justify-content: center !important;
    padding-left: 6px !important;
    padding-right: 6px !important;
    min-width: 0 !important;
}

/* 下拉控件允许收缩并限制最大宽度，防止撑断布局 */
.filter-sort .form-select,
.filter-sort select,
.filter-sort .form-select-sm {
    flex: 0 1 auto !important;
    min-width: 64px !important;         /* 最小可用宽度，视需要可调整 */
    max-width: 46vw !important;         /* 在窄屏时限制最大宽度 */
    width: auto !important;
    padding: 4px 10px !important;
    box-sizing: border-box;
}

/* 当空间确实不足时，允许水平滚动（不换行）作为退路，而不是折行 */
@media (max-width: 420px) {
    .filter-sort {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* 小屏幕模式 */
@media (max-width: 800px) {
    .title {
        display: none;
    }
    .navbar {
        padding: 10px;
    }
    .filter-sort {
        flex-direction: column;
        align-items: center;
    }
    .filter-sort select {
        width: 80%;
        margin-bottom: 10px;
    }
    .friend-links {
        font-size: smaller;
    }
    a.about {
        display: none;
    }
    
}

/* header-container 默认样式 */
#header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background-color: #ffffff; /* 修改为白色，与页面背景一致 */
    color: #333;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); /* 添加轻微阴影，增强层次感 */
}

#header-container a {
    color: #333;
    text-decoration: none;
    padding: 10px;
}

#header-container a:hover {
    text-decoration: underline;
}

/* header 脚手架高度，header 脚本注入时不应推翻页面 */
#header-container { min-height: 72px; display:block; }

/* actor 列表短时间无内容时保留高度，避免首次填充时推移 */
.actor-list { min-height: 240px; }
