/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", Arial, sans-serif;
    background-color: #f5f5f5;
    color: #000;
    font-size: 12px;
    line-height: 1.5;
}

.area {
    width: 1200px;
    margin: 0 auto;
}

/* 顶部黑色工具栏 */
.sohu-top-bar {
    background: #000;
    height: 30px;
    line-height: 30px;
    color: #fff;
    font-size: 12px;
}

.sohu-top-bar .area {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sohu-top-bar .head-right {
    display: flex;
    gap: 0;
}

.sohu-top-bar .head-item {
    padding: 0 10px;
    border-right: 1px solid #333;
}

.sohu-top-bar .head-item:last-child {
    border-right: none;
}

.sohu-top-bar .top-link {
    color: #fff;
    text-decoration: none;
}

.sohu-top-bar .top-link:hover {
    color: #ffdb00;
}

.sohu-top-bar .separator {
    display: inline-block;
    width: 1px;
    height: 12px;
    background: #333;
    margin: 0 8px;
    vertical-align: middle;
}

.sohu-top-bar .login-area {
    padding-right: 10px;
}

.sohu-top-bar .login-link {
    color: #fff;
    text-decoration: none;
    padding: 0 5px;
}

.sohu-top-bar .login-link:hover {
    color: #ffdb00;
}

.sohu-top-bar .icon-user::before {
    content: "👤";
    margin-right: 3px;
}

/* Logo和搜索区域 */
.top-box {
    background: #fff;
    padding: 20px 0;
}

.logo-search {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo a {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 180px;
    height: 65px;
    background: transparent;
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
}

.logo a::before {
    content: "新泛程序";
    font-size: 28px;
    font-weight: bold;
    color: #e60012;
    letter-spacing: 3px;
}

.logo a::after {
    content: "SEO优化 · 泛目录 · 蜘蛛池";
    font-size: 11px;
    color: #666;
    margin-top: 4px;
    letter-spacing: 1px;
}

.logo a:hover::before {
    color: #c00010;
}

.search-mod {
    flex: 1;
}

.search {
    display: flex;
    align-items: center;
    border: 2px solid #667eea;
    height: 40px;
    overflow: hidden;
    border-radius: 20px;
}

.search-input {
    flex: 1;
    border: none;
    height: 36px;
    padding: 0 15px;
    font-size: 14px;
    outline: none;
}

.search-btn {
    width: 70px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.search-btn:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.search-icon::before {
    content: "🔍";
    font-size: 18px;
}

.links-list-wrap {
    display: flex;
    gap: 10px;
}

.links {
    display: flex;
    list-style: none;
    gap: 10px;
}

.link a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #000;
}

.link .icon {
    width: 40px;
    height: 40px;
    background: #ff6600;
    border-radius: 50%;
    margin-bottom: 3px;
}

.link .title {
    font-size: 12px;
}

.link.shh .title::before {
    content: "新泛号";
}

.link.gzl .icon {
    background: #e60012;
}

/* 频道导航 */
.nav {
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
    padding: 10px 0;
    display: flex;
    gap: 0;
}

.nav-box {
    display: flex;
    gap: 5px;
    padding: 0 15px;
    border-right: 1px solid #e5e5e5;
}

.nav-box:last-child {
    border-right: none;
}

.nav-item {
    color: #000;
    text-decoration: none;
    font-size: 14px;
    padding: 5px 8px;
    white-space: nowrap;
}

.nav-item strong {
    font-weight: bold;
}

.nav-item:hover {
    color: #e60012;
}

/* 二级导航栏 */
.sub-nav {
    background: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
    padding: 8px 0;
}

.sub-nav-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 5px;
}

.sub-nav-group {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 5px;
}

.sub-nav-label {
    color: #e60012;
    font-weight: bold;
    font-size: 13px;
    text-decoration: none;
    padding: 3px 6px;
}

.sub-nav-link {
    color: #666;
    font-size: 12px;
    text-decoration: none;
    padding: 3px 6px;
    transition: color 0.3s;
}

.sub-nav-link:hover {
    color: #e60012;
}

.sub-nav-label:hover {
    color: #c00010;
}

/* 主内容区域 */
.main-content {
    padding: 20px 0;
}

/* 首页布局 */
.page-title {
    font-size: 28px;
    margin-bottom: 20px;
    font-weight: bold;
    color: #000;
}

.section-title {
    font-size: 18px;
    margin-bottom: 15px;
    border-left: 3px solid #e60012;
    padding-left: 10px;
    font-weight: bold;
    color: #000;
    line-height: 1.2;
}

.content-item {
    background-color: #fff;
    padding: 18px 0;
    border-bottom: 1px solid #e8e8e8;
}

.content-title {
    font-size: 18px;
    line-height: 1.4;
    margin-bottom: 8px;
    font-weight: bold;
}

.content-title a {
    color: #000;
    text-decoration: none;
}

.content-title a:hover {
    color: #e60012;
}

.content-summary {
    margin-bottom: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

.content-meta {
    font-size: 12px;
    color: #999;
}

.content-meta span {
    margin-right: 12px;
}

/* 首页布局 */
.top-news-section {
    background: #fff;
    padding: 15px;
    border-radius: 2px;
}

.featured-news {
    position: relative;
}

.featured-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.featured-image {
    width: 100%;
    overflow: hidden;
    border-radius: 2px;
    position: relative;
    padding-top: 56.25%; /* 16:9 比例 */
    background: #000;
}

.featured-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
    padding: 20px;
    color: #fff;
}

.featured-image .ad-label {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 2px;
}

.featured-link:hover .featured-image img {
    transform: scale(1.05);
}

.featured-title {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    margin: 0;
    line-height: 1.3;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.featured-desc {
    font-size: 14px;
    color: #f0f0f0;
    margin: 8px 0 0 0;
    line-height: 1.5;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.sub-featured-item {
    margin-bottom: 10px;
}

.sub-featured-item a {
    text-decoration: none;
    color: #000;
}

.sub-featured-image {
    width: 100%;
    overflow: hidden;
    border-radius: 2px;
    margin-bottom: 8px;
}

.sub-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.sub-featured-title {
    font-size: 14px;
    line-height: 1.4;
    margin: 0;
}

.sub-featured-item a:hover .sub-featured-title {
    color: #e60012;
}

/* 新闻列表区 */
.news-list-section {
    background: #fff;
    padding: 15px;
    border-radius: 2px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #e60012;
    margin-bottom: 15px;
    padding-bottom: 8px;
}

.section-title-new {
    font-size: 18px;
    font-weight: bold;
    color: #000;
    margin: 0;
}

.section-tabs {
    display: flex;
    gap: 15px;
}

.tab-link {
    color: #666;
    text-decoration: none;
    font-size: 14px;
}

.tab-link.active {
    color: #e60012;
    font-weight: bold;
}

.tab-link:hover {
    color: #e60012;
}

/* 点击进入区域 */
.news-highlight-section {
    background: linear-gradient(to right, #fff5e6, #fff);
    padding: 12px 15px;
    margin-bottom: 15px;
    border-left: 3px solid #ff9900;
}

.highlight-badge {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.highlight-badge .badge-icon {
    font-size: 16px;
    margin-right: 5px;
}

.highlight-badge .badge-text {
    font-weight: bold;
    color: #ff6600;
    margin-right: 10px;
    font-size: 14px;
}

.highlight-badge .classic-link {
    background: #ffdb00;
    color: #000;
    padding: 4px 12px;
    border-radius: 2px;
    text-decoration: none;
    font-size: 12px;
    margin-left: 5px;
}

.highlight-badge .classic-link:hover {
    background: #ffcc00;
}

.highlight-news-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.highlight-news-item {
    color: #000;
    text-decoration: none;
    font-size: 13px;
    position: relative;
    padding-left: 10px;
}

.highlight-news-item:before {
    content: '•';
    position: absolute;
    left: 0;
    color: #e60012;
}

.highlight-news-item:hover {
    color: #e60012;
}

.news-item {
    padding: 15px 0;
    border-bottom: 1px solid #e8e8e8;
}

.news-item:last-child {
    border-bottom: none;
}

.news-title {
    font-size: 16px;
    font-weight: bold;
    margin: 0 0 8px 0;
    line-height: 1.5;
}

.news-title a {
    color: #000;
    text-decoration: none;
}

.news-title a:hover {
    color: #e60012;
}

.news-meta {
    font-size: 12px;
    color: #999;
}

.news-source {
    margin-right: 15px;
}

.news-time {
    color: #ccc;
}

.news-thumb {
    width: 100%;
    overflow: hidden;
    border-radius: 2px;
}

.news-thumb img {
    width: 100%;
    height: auto;
    display: block;
}

/* 中间栏 - 点击榜 */
.middle-sidebar {
    background: #fff;
    padding: 15px;
    border-radius: 2px;
}

.sidebar-title {
    font-size: 16px;
    font-weight: bold;
    color: #000;
    margin: 0 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #e60012;
}

.rank-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rank-item {
    padding: 8px 0;
    display: flex;
    align-items: flex-start;
}

.rank-num {
    display: inline-block;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    background: #f0f0f0;
    color: #666;
    font-size: 12px;
    font-weight: bold;
    margin-right: 8px;
    flex-shrink: 0;
}

.rank-num-1,
.rank-num-2,
.rank-num-3 {
    background: #e60012;
    color: #fff;
}

.rank-title {
    color: #000;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.5;
    flex: 1;
}

.rank-title:hover {
    color: #e60012;
}

/* 右侧栏 */
.right-sidebar {
    background: #fff;
    padding: 15px;
    border-radius: 2px;
}

.sidebar-title-red {
    font-size: 16px;
    font-weight: bold;
    color: #e60012;
    margin: 0 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #e60012;
}

.important-news-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.important-news-item {
    padding: 10px 0;
    border-bottom: 1px dashed #e8e8e8;
}

.important-news-item:last-child {
    border-bottom: none;
}

.important-news-item a {
    color: #000;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.6;
    display: block;
}

.important-news-item a:hover {
    color: #e60012;
}

.ad-box {
    background: #f5f5f5;
    border: 1px dashed #ddd;
    border-radius: 2px;
}

/* 侧边栏通用标题 */
.sidebar-title-gray {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin: 0 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #ddd;
}

/* 热门频道 */
.hot-channels-box {
    background: #fff;
    padding: 15px;
    border-radius: 2px;
}

.channels-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.channel-item {
    display: block;
    text-align: center;
    padding: 8px;
    background: #f5f5f5;
    color: #333;
    text-decoration: none;
    border-radius: 2px;
    font-size: 13px;
    transition: all 0.3s;
}

.channel-item:hover {
    background: #e60012;
    color: #fff;
}

/* 热门标签 */
.hot-tags-box {
    background: #fff;
    padding: 15px;
    border-radius: 2px;
}

.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-item {
    display: inline-block;
    padding: 5px 12px;
    background: #f5f5f5;
    color: #666;
    text-decoration: none;
    border-radius: 3px;
    font-size: 12px;
    transition: all 0.3s;
}

.tag-item:hover {
    background: #e60012;
    color: #fff;
}

/* 相关链接 */
.related-links-box,
.friend-links-box {
    background: #fff;
    padding: 15px;
    border-radius: 2px;
}

.related-links-list,
.friend-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-links-list li,
.friend-links-list li {
    padding: 8px 0;
    border-bottom: 1px dashed #e8e8e8;
}

.related-links-list li:last-child,
.friend-links-list li:last-child {
    border-bottom: none;
}

.related-links-list a,
.friend-links-list a {
    color: #333;
    text-decoration: none;
    font-size: 13px;
    display: block;
    padding-left: 15px;
    position: relative;
}

.related-links-list a:before,
.friend-links-list a:before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #999;
    font-size: 10px;
}

.related-links-list a:hover,
.friend-links-list a:hover {
    color: #e60012;
}

.related-links-list a:hover:before,
.friend-links-list a:hover:before {
    color: #e60012;
}

/* 24小时排行 */
.daily-rank-box {
    background: #fff;
    padding: 15px;
    border-radius: 2px;
}

.daily-rank-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.daily-rank-item {
    padding: 10px 0;
    border-bottom: 1px dashed #e8e8e8;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.daily-rank-item:last-child {
    border-bottom: none;
}

.daily-rank-num {
    display: inline-block;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    background: #f0f0f0;
    color: #666;
    font-size: 12px;
    font-weight: bold;
    border-radius: 2px;
    flex-shrink: 0;
}

.daily-rank-item:nth-child(1) .daily-rank-num,
.daily-rank-item:nth-child(2) .daily-rank-num,
.daily-rank-item:nth-child(3) .daily-rank-num {
    background: #e60012;
    color: #fff;
}

.daily-rank-item a {
    color: #333;
    text-decoration: none;
    font-size: 13px;
    line-height: 1.5;
    flex: 1;
}

.daily-rank-item a:hover {
    color: #e60012;
}

.daily-rank-view {
    color: #999;
    font-size: 11px;
    white-space: nowrap;
}

/* 新闻列表摘要 */
.news-summary {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin: 8px 0;
}

.news-category {
    color: #999;
    margin-left: 10px;
    font-size: 12px;
}

.news-category:before {
    content: '|';
    margin-right: 10px;
    color: #ddd;
}

/* 热门推荐 */
.hot-recommend-section {
    background: #fff;
    padding: 15px;
    border-radius: 2px;
}

.recommend-card {
    display: block;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 2px;
    overflow: hidden;
    transition: all 0.3s;
}

.recommend-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.recommend-card a {
    text-decoration: none;
    color: inherit;
}

.recommend-image {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding-top: 64%; /* 16:10 比例 */
    background: #f5f5f5;
}

.recommend-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.recommend-card:hover .recommend-image img {
    transform: scale(1.1);
}

.recommend-title {
    font-size: 14px;
    font-weight: bold;
    color: #000;
    padding: 10px 12px 5px;
    margin: 0;
    line-height: 1.4;
}

.recommend-card:hover .recommend-title {
    color: #e60012;
}

.recommend-desc {
    font-size: 12px;
    color: #666;
    padding: 0 12px 10px;
    margin: 0;
    line-height: 1.5;
}

/* 频道页样式 */
.channel-header {
    background: #fff;
    padding: 20px;
    border-radius: 2px;
    margin-bottom: 20px;
}

.channel-title {
    font-size: 28px;
    font-weight: bold;
    color: #000;
    margin: 0 0 15px 0;
    padding-bottom: 15px;
    border-bottom: 3px solid #e60012;
}

.channel-sub-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.sub-nav-label {
    color: #666;
    font-size: 14px;
    font-weight: bold;
}

.sub-nav-tag {
    display: inline-block;
    padding: 5px 12px;
    background: #f5f5f5;
    color: #333;
    text-decoration: none;
    border-radius: 3px;
    font-size: 13px;
    transition: all 0.3s;
}

.sub-nav-tag:hover {
    background: #e60012;
    color: #fff;
}

.channel-content-section {
    background: #fff;
    border-radius: 2px;
}

.channel-news-item {
    padding: 20px;
    border-bottom: 1px solid #e8e8e8;
    transition: background 0.3s;
}

.channel-news-item:hover {
    background: #fafafa;
}

.channel-news-item:last-child {
    border-bottom: none;
}

.empty-content {
    background: #fff;
    padding: 40px;
    border-radius: 2px;
    text-align: center;
}

.channel-rank-box {
    background: #fff;
    padding: 15px;
    border-radius: 2px;
}

.related-channels-box {
    background: #fff;
    padding: 15px;
    border-radius: 2px;
}

/* 页脚 */
.sohu-footer {
    background: #2c2c2c;
    color: #999;
    margin-top: 50px;
    padding: 30px 0 20px;
}

.footer-content {
    padding: 0 10px;
}

.footer-section {
    margin-bottom: 25px;
}

.footer-title {
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #444;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-links a {
    color: #999;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #fff;
}

/* 页脚联系方式 */
.footer-contact {
    background: rgba(255,255,255,0.05);
    padding: 15px;
    border-radius: 4px;
}

.footer-contact-info {
    color: #ccc;
    font-size: 13px;
    line-height: 1.8;
}

.footer-contact-info p {
    margin-bottom: 10px;
}

.contact-line {
    margin: 8px 0;
}

.contact-line .label {
    color: #999;
}

.contact-line strong {
    color: #ffdb00;
    font-size: 15px;
    letter-spacing: 1px;
    margin-left: 5px;
}

.contact-note {
    color: #888;
    font-size: 12px;
    margin-top: 10px !important;
}

.footer-bottom {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #444;
    text-align: center;
}

.footer-bottom p {
    margin: 8px 0;
    font-size: 12px;
    color: #666;
}

.footer-bottom a {
    color: #666;
    text-decoration: none;
    margin: 0 10px;
}

.footer-bottom a:hover {
    color: #999;
}

.copyright {
    font-size: 13px !important;
    color: #999 !important;
}

/* 文章详情页 */
.content-detail {
    background: #fff;
    padding: 30px;
    border-radius: 2px;
}

.content-header {
    border-bottom: 2px solid #e60012;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.content-detail .content-title {
    font-size: 28px;
    font-weight: bold;
    color: #000;
    line-height: 1.4;
    margin-bottom: 15px;
}

.content-meta {
    font-size: 13px;
    color: #999;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.content-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.content-meta .meta-item i {
    color: #e60012;
}

.content-meta .meta-item a {
    color: #e60012;
    text-decoration: none;
}

.content-meta .meta-item a:hover {
    text-decoration: underline;
}

.content-summary {
    background: #f9f9f9;
    padding: 15px 20px;
    border-left: 3px solid #e60012;
    margin-bottom: 30px;
    line-height: 1.8;
}

.content-body {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.content-body p {
    margin-bottom: 20px;
}

.content-body img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
}

.content-body h2,
.content-body h3,
.content-body h4 {
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: bold;
    color: #000;
}

.content-body h2 {
    font-size: 24px;
    border-left: 4px solid #e60012;
    padding-left: 10px;
}

.content-body h3 {
    font-size: 20px;
}

.content-body h4 {
    font-size: 18px;
}

.content-body blockquote {
    background: #f5f5f5;
    border-left: 4px solid #ddd;
    padding: 15px 20px;
    margin: 20px 0;
    font-style: italic;
}

.content-body ul,
.content-body ol {
    padding-left: 30px;
    margin-bottom: 20px;
}

.content-body li {
    margin-bottom: 10px;
}

.content-tags {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px dashed #e8e8e8;
}

.content-tags .tag {
    display: inline-block;
    background: #f5f5f5;
    color: #666;
    padding: 5px 12px;
    margin-right: 10px;
    margin-top: 10px;
    border-radius: 3px;
    text-decoration: none;
    font-size: 13px;
}

.content-tags .tag:hover {
    background: #e60012;
    color: #fff;
}

/* 相关推荐 */
.related-box {
    background: #fff;
    padding: 15px;
    border-radius: 2px;
}

.related-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-item {
    padding: 10px 0;
    border-bottom: 1px dashed #e8e8e8;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.related-item:last-child {
    border-bottom: none;
}

.related-item a {
    color: #000;
    text-decoration: none;
    font-size: 14px;
    flex: 1;
    margin-right: 10px;
}

.related-item a:hover {
    color: #e60012;
}

.related-time {
    font-size: 12px;
    color: #999;
    white-space: nowrap;
}

/* ========== 侧边栏内链模块样式 ========== */

/* 联系方式模块 */
.contact-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px 15px;
    border-radius: 4px;
    color: #fff;
}

.contact-box .sidebar-title {
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.contact-info {
    font-size: 13px;
}

.contact-intro {
    margin-bottom: 15px;
    line-height: 1.8;
    opacity: 0.95;
}

.contact-intro p {
    margin-bottom: 5px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    background: rgba(255,255,255,0.15);
    padding: 10px 12px;
    border-radius: 4px;
}

.contact-icon {
    display: inline-block;
    min-width: 40px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    background: #fff;
    color: #764ba2;
    font-size: 12px;
    font-weight: bold;
    border-radius: 3px;
    margin-right: 10px;
}

.contact-value {
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 1px;
}

.contact-tip {
    text-align: center;
    font-size: 12px;
    opacity: 0.8;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed rgba(255,255,255,0.3);
}

/* 热门文章 */
.hot-articles-box {
    background: #fff;
    padding: 15px;
    border-radius: 2px;
}

.hot-articles-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hot-article-item {
    padding: 8px 0;
    display: flex;
    align-items: flex-start;
    border-bottom: 1px dashed #e8e8e8;
}

.hot-article-item:last-child {
    border-bottom: none;
}

.hot-num {
    display: inline-block;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    background: #f0f0f0;
    color: #666;
    font-size: 12px;
    font-weight: bold;
    margin-right: 8px;
    flex-shrink: 0;
    border-radius: 2px;
}

.hot-article-item:nth-child(1) .hot-num,
.hot-article-item:nth-child(2) .hot-num,
.hot-article-item:nth-child(3) .hot-num {
    background: #e60012;
    color: #fff;
}

.hot-article-item a {
    color: #333;
    text-decoration: none;
    font-size: 13px;
    line-height: 1.5;
    flex: 1;
}

.hot-article-item a:hover {
    color: #e60012;
}

/* 最新文章 */
.new-articles-box {
    background: #fff;
    padding: 15px;
    border-radius: 2px;
}

.new-articles-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.new-article-item {
    padding: 10px 0;
    border-bottom: 1px dashed #e8e8e8;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.new-article-item:last-child {
    border-bottom: none;
}

.new-article-item a {
    color: #333;
    text-decoration: none;
    font-size: 13px;
    flex: 1;
    margin-right: 10px;
    line-height: 1.5;
}

.new-article-item a:hover {
    color: #e60012;
}

.article-time {
    font-size: 11px;
    color: #999;
    white-space: nowrap;
}

/* 猜你喜欢 */
.random-articles-box {
    background: #fff;
    padding: 15px;
    border-radius: 2px;
}

.random-articles-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.random-article-item {
    padding: 10px 0;
    border-bottom: 1px dashed #e8e8e8;
    position: relative;
    padding-left: 15px;
}

.random-article-item:last-child {
    border-bottom: none;
}

.random-article-item:before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #e60012;
    font-size: 10px;
}

.random-article-item a {
    color: #333;
    text-decoration: none;
    font-size: 13px;
    line-height: 1.5;
}

.random-article-item a:hover {
    color: #e60012;
}

/* 热门分类 */
.categories-box {
    background: #fff;
    padding: 15px;
    border-radius: 2px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.category-link {
    display: block;
    text-align: center;
    padding: 8px 10px;
    background: #f5f5f5;
    color: #333;
    text-decoration: none;
    border-radius: 2px;
    font-size: 13px;
    transition: all 0.3s;
}

.category-link:hover {
    background: #e60012;
    color: #fff;
}

/* ========== 左右两侧悬浮联系方式 ========== */
.side-contact {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 140px;
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    padding: 15px 12px;
    color: #fff;
    text-align: center;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    z-index: 9999;
}

.side-left {
    left: 10px;
}

.side-right {
    right: 10px;
}

.side-contact-title {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.3);
}

.side-intro {
    font-size: 11px;
    line-height: 1.6;
    color: rgba(255,255,255,0.9);
    margin-bottom: 12px;
    padding: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
}

.side-contact-item {
    margin-bottom: 10px;
    background: rgba(255,255,255,0.15);
    padding: 8px 5px;
    border-radius: 4px;
}

.side-icon {
    display: block;
    font-size: 11px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 3px;
}

.side-value {
    display: block;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.side-contact-desc {
    font-size: 10px;
    color: rgba(255,255,255,0.7);
    line-height: 1.4;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed rgba(255,255,255,0.3);
}

/* 小屏幕隐藏侧边悬浮，显示底部联系栏 */
@media (max-width: 1500px) {
    .side-contact.side-left,
    .side-contact.side-right {
        display: none;
    }
}

/* 手机底部固定联系栏 */
.mobile-contact-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    padding: 10px 15px;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
}

.mobile-contact-bar .contact-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    color: #fff;
    font-size: 13px;
}

.mobile-contact-bar .contact-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.mobile-contact-bar .contact-label {
    opacity: 0.85;
}

.mobile-contact-bar .contact-val {
    font-weight: bold;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .mobile-contact-bar {
        display: block;
    }
    body {
        padding-bottom: 50px;
    }
}

/* 手机弹窗联系框 */
.contact-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 25px;
    border-radius: 12px;
    z-index: 10000;
    width: 85%;
    max-width: 320px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.contact-popup .popup-title {
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.3);
}

.contact-popup .popup-contact {
    color: #fff;
    margin: 10px 0;
    font-size: 15px;
    line-height: 1.8;
}

.contact-popup .contact-label {
    display: block;
    opacity: 0.9;
    font-size: 14px;
    margin-bottom: 3px;
}

.contact-popup .contact-value {
    font-weight: bold;
    letter-spacing: 1px;
}

.contact-popup .close-btn {
    display: block;
    margin: 20px auto 0;
    padding: 8px 20px;
    background: rgba(255,255,255,0.2);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.contact-popup .close-btn:hover {
    background: rgba(255,255,255,0.3);
}

@media (max-width: 768px) {
    .contact-popup {
        display: none;
    }
}

/* ===============================================
   SEO服务专区样式
   =============================================== */

/* SEO服务专区 */
.seo-zone-section {
    background: #fff;
    padding: 15px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.seo-zone-grid {
    margin-top: 15px;
}

.seo-zone-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px 15px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.seo-zone-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
    border-color: #667eea;
}

.seo-zone-card .seo-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.seo-zone-card .seo-icon i {
    color: #fff;
    font-size: 20px;
}

.seo-zone-card h5 {
    font-size: 15px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
}

.seo-zone-card p {
    font-size: 12px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 12px;
    min-height: 36px;
}

.seo-zone-card .btn-seo {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.3s;
}

.seo-zone-card .btn-seo:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: scale(1.05);
}

/* 右侧栏SEO服务介绍 */
.seo-service-box {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
}

.seo-service-content {
    padding: 15px;
}

.seo-intro {
    font-size: 12px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 12px;
    padding: 10px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 4px;
}

.seo-service-list {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
}

.seo-service-list li {
    font-size: 12px;
    color: #333;
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
    display: flex;
    align-items: center;
}

.seo-service-list li:last-child {
    border-bottom: none;
}

.seo-service-list li i {
    color: #28a745;
    margin-right: 8px;
    font-size: 10px;
}

.seo-contact {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 12px;
    border-radius: 6px;
    color: #fff;
}

.seo-contact p {
    margin: 5px 0;
    font-size: 13px;
}

.seo-contact strong {
    display: inline-block;
    width: 45px;
}

/* SEO关键词标签特殊样式 */
.tag-item.tag-hot {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: #fff !important;
    font-weight: bold;
}

.tag-item.tag-hot:hover {
    background: linear-gradient(135deg, #ee5a24 0%, #ff6b6b 100%);
}

/* 响应式调整 */
@media (max-width: 992px) {
    .seo-zone-card {
        margin-bottom: 15px;
    }
    
    .seo-zone-card p {
        min-height: auto;
    }
}

/* ===============================================
   中间栏补充样式
   =============================================== */

/* SEO服务快捷列表 */
.seo-quick-box {
    background: #fff;
    padding: 12px;
    border-radius: 4px;
}

.seo-quick-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.seo-quick-list li {
    padding: 6px 0;
    border-bottom: 1px dashed #eee;
}

.seo-quick-list li:last-child {
    border-bottom: none;
}

.seo-quick-list li a {
    color: #333;
    font-size: 12px;
    text-decoration: none;
}

.seo-quick-list li a:hover {
    color: #e60012;
}

/* 今日热搜 */
.hot-search-box {
    background: #fff;
    padding: 12px;
    border-radius: 4px;
}

.hot-search-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hot-search-list li {
    padding: 5px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.hot-idx {
    display: inline-block;
    width: 16px;
    height: 16px;
    text-align: center;
    line-height: 16px;
    font-size: 10px;
    background: #999;
    color: #fff;
    border-radius: 2px;
}

.hot-idx.hot {
    background: #e60012;
}

.hot-search-list li a {
    color: #333;
    font-size: 11px;
    text-decoration: none;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hot-search-list li a:hover {
    color: #e60012;
}

/* 推荐阅读 */
.recommend-read-box {
    background: #fff;
    padding: 12px;
    border-radius: 4px;
}

.recommend-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recommend-list li {
    padding: 5px 0;
    border-bottom: 1px dashed #eee;
}

.recommend-list li:last-child {
    border-bottom: none;
}

.recommend-list li a {
    color: #333;
    font-size: 11px;
    text-decoration: none;
    line-height: 1.4;
}

.recommend-list li a:hover {
    color: #e60012;
}

/* 技术教程 */
.tutorial-box {
    background: #fff;
    padding: 12px;
    border-radius: 4px;
}

.tutorial-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tutorial-list li {
    padding: 5px 0;
    border-bottom: 1px dashed #eee;
}

.tutorial-list li:last-child {
    border-bottom: none;
}

.tutorial-list li a {
    color: #333;
    font-size: 11px;
    text-decoration: none;
}

.tutorial-list li a:hover {
    color: #667eea;
}

/* 站长工具 */
.tools-box {
    background: #fff;
    padding: 12px;
    border-radius: 4px;
}

.tools-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.tool-item {
    display: inline-block;
    padding: 4px 6px;
    background: #f0f7ff;
    border: 1px solid #d0e5ff;
    border-radius: 3px;
    font-size: 10px;
    color: #1890ff;
    text-decoration: none;
}

.tool-item:hover {
    background: #1890ff;
    color: #fff;
}

/* 公告通知 */
.notice-box {
    background: linear-gradient(135deg, #fff7e6 0%, #ffe4ba 100%);
    padding: 12px;
    border-radius: 4px;
    border: 1px solid #ffd591;
}

.notice-content p {
    margin: 4px 0;
    font-size: 11px;
    color: #873800;
    line-height: 1.5;
}

/* 联系方式卡片 */
.contact-quick-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 12px;
    border-radius: 4px;
    color: #fff;
}

.contact-quick-box .sidebar-title {
    color: #fff;
    border-bottom-color: rgba(255,255,255,0.3);
}

.contact-info p {
    margin: 6px 0;
    font-size: 12px;
}

.contact-info strong {
    display: inline-block;
    width: 40px;
}

.contact-tip {
    font-size: 10px;
    opacity: 0.8;
    margin-top: 8px !important;
    padding-top: 8px;
    border-top: 1px dashed rgba(255,255,255,0.3);
}

/* 最新文章列表 */
.latest-quick-box {
    background: #fff;
    padding: 12px;
    border-radius: 4px;
}

.latest-quick-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.latest-quick-list li {
    padding: 5px 0;
    border-bottom: 1px dashed #eee;
}

.latest-quick-list li:last-child {
    border-bottom: none;
}

.latest-quick-list li a {
    color: #333;
    font-size: 11px;
    text-decoration: none;
    line-height: 1.4;
    display: block;
}

.latest-quick-list li a:hover {
    color: #e60012;
}

/* 快捷导航 */
.quick-nav-box {
    background: #fff;
    padding: 12px;
    border-radius: 4px;
}

.quick-nav-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.quick-nav-item {
    display: inline-block;
    padding: 4px 8px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 3px;
    font-size: 11px;
    color: #333;
    text-decoration: none;
}

.quick-nav-item:hover {
    background: #667eea;
    color: #fff;
    border-color: #667eea;
}

/* ========== 手机响应式适配 ========== */
@media screen and (max-width: 768px) {
    /* 整体容器 */
    .area {
        width: 100%;
        padding: 0 10px;
    }
    
    /* 顶部工具栏 */
    .sohu-top-bar .area {
        flex-wrap: wrap;
        padding: 5px 10px;
    }
    
    .sohu-top-bar .head-right {
        display: none;
    }
    
    .sohu-top-bar .login-area {
        width: 100%;
        text-align: right;
    }
    
    /* Logo和搜索区 */
    .logo-search {
        flex-direction: column;
        gap: 10px;
        padding: 10px 0;
    }
    
    .logo a {
        width: 100%;
    }
    
    .search-mod {
        width: 100%;
    }
    
    /* 导航栏 - 横向滚动 */
    .nav {
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        padding: 8px 0;
    }
    
    .nav-box {
        display: inline-flex;
        flex-shrink: 0;
    }
    
    /* 隐藏左右悬浮联系方式 */
    .side-contact {
        display: none;
    }
    
    /* 主内容区域 */
    .main-content {
        padding: 10px 0;
    }
    
    /* Bootstrap栅格覆盖 */
    .row {
        margin: 0 -5px;
    }
    
    .col-md-6, .col-md-8, .col-md-4, .col-lg-3, .col-lg-6, .col-lg-9 {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
        padding: 0 5px;
        margin-bottom: 10px;
    }
    
    /* 首页大图 */
    .featured-title {
        font-size: 18px;
    }
    
    .featured-desc {
        font-size: 12px;
    }
    
    /* 新闻标题 */
    .news-title {
        font-size: 14px;
    }
    
    .content-title {
        font-size: 16px;
    }
    
    /* 侧边栏 */
    .middle-sidebar, .right-sidebar {
        margin-bottom: 10px;
    }
    
    /* 频道网格 */
    .channels-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* 底部 */
    .sohu-footer {
        padding: 15px 0;
    }
    
    .footer-links {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .footer-links a {
        font-size: 12px;
    }
    
    .footer-bottom {
        font-size: 11px;
    }
    
    /* 分页 */
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    /* 文章详情页 */
    .article-title {
        font-size: 20px !important;
    }
    
    .article-content {
        font-size: 14px;
        padding: 10px;
    }
    
    .article-content img {
        max-width: 100%;
        height: auto;
    }
    
    /* 搜索框 */
    .search-input {
        font-size: 14px;
    }
    
    /* 侧边栏小组件 */
    .hot-search-box, .recommend-read-box, .tutorial-box, .tools-box,
    .notice-box, .contact-quick-box, .latest-quick-box, .quick-nav-box {
        margin-bottom: 10px;
    }
}

@media screen and (max-width: 480px) {
    .logo a::before {
        font-size: 22px;
    }
    
    .logo a::after {
        font-size: 10px;
    }
    
    .search {
        height: 36px;
    }
    
    .search-btn {
        width: 50px;
        height: 36px;
    }
    
    .featured-title {
        font-size: 16px;
    }
    
    .channels-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tags-cloud {
        gap: 5px;
    }
    
    .tag-item {
        padding: 4px 8px;
        font-size: 11px;
    }
}
