/**
 * 谷德专业资讯网 - 全局样式表
 * 版本: 1.0
 */

/* ==================== 基础重置 ==================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 防止横向滚动 */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: "Microsoft YaHei", "微软雅黑", "PingFang SC", "Hiragino Sans GB", simhei, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f3f3f3;
}

a {
    text-decoration: none;
    color: #333;
    transition: color 0.2s;
}

a:hover {
    color: #f34540;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 防止内容溢出 */
.gude-article-body img,
.gude-item img,
.gude-headline img {
    max-width: 100%;
    height: auto;
}

/* 表格响应式 */
table {
    max-width: 100%;
}

/* 视频容器响应式 */
.gude-article-body iframe,
.gude-article-body video,
.gude-article-body embed {
    max-width: 100%;
    height: auto;
}

/* ==================== 品牌变量 ==================== */
:root {
    --brand-color: #f34540;
    --brand-dark: #c00;
    --brand-light: #ff6b6b;
    --text-color: #333;
    --text-gray: #666;
    --text-light: #999;
    --bg-gray: #f3f3f3;
    --border-color: #e8e8e8;
}

/* ==================== 顶部导航 ==================== */
.gude-top {
    height: 40px;
    background: #333;
    line-height: 40px;
    font-size: 12px;
}

.gude-top-inner {
    width: 1200px;
    margin: 0 auto;
}

.gude-top a {
    color: #bbb;
    margin-right: 20px;
}

.gude-top a:hover {
    color: #fff;
}

.gude-top .right {
    float: right;
}

/* ==================== Logo区域 ==================== */
.gude-logo {
    height: 80px;
    background: #fff;
    border-bottom: 1px solid var(--border-color);
}

.gude-logo-inner {
    width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

.gude-logo-main {
    float: left;
    font-size: 32px;
    font-weight: bold;
    color: var(--brand-color);
}

.gude-logo-main span {
    color: #666;
    font-size: 14px;
    font-weight: normal;
    margin-left: 10px;
}

/* ==================== 主导航 ==================== */
.gude-nav {
    height: 50px;
    background: var(--brand-color);
}

.gude-nav-inner {
    width: 1200px;
    margin: 0 auto;
}

.gude-nav a {
    float: left;
    display: block;
    height: 50px;
    line-height: 50px;
    padding: 0 22px;
    color: #fff;
    font-size: 16px;
    transition: background 0.2s;
}

.gude-nav a:hover,
.gude-nav a.active {
    background: var(--brand-dark);
}

/* ==================== 主体布局 ==================== */
.gude-main {
    width: 1200px;
    margin: 20px auto;
    overflow: hidden;
}

/* ==================== 左侧内容区 ==================== */
.gude-left {
    float: left;
    width: 840px;
}

/* 面包屑 */
.gude-crumb {
    background: #fff;
    padding: 15px 20px;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    font-size: 14px;
    color: #666;
}

.gude-crumb a {
    color: #666;
}

.gude-crumb a:hover {
    color: var(--brand-color);
}

.gude-crumb .current {
    color: var(--brand-color);
    font-weight: bold;
}

/* 头条新闻 */
.gude-headline {
    background: #fff;
    padding: 25px 30px;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-top: 3px solid var(--brand-color);
}

.gude-headline h1 {
    font-size: 28px;
    font-weight: bold;
    line-height: 1.4;
    margin-bottom: 15px;
}

.gude-headline h1 a {
    color: #222;
}

.gude-headline h1 a:hover {
    color: var(--brand-color);
}

.gude-headline p {
    color: #666;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 15px;
}

.gude-headline .meta {
    color: #999;
    font-size: 13px;
}

.gude-headline .meta .tag {
    background: var(--brand-color);
    color: #fff;
    padding: 2px 8px;
    margin-right: 10px;
}

/* 新闻列表 */
.gude-list {
    background: #fff;
}

.gude-item {
    padding: 20px 30px;
    border-bottom: 1px solid #f0f0f0;
}

.gude-item:last-child {
    border-bottom: none;
}

.gude-item:hover {
    background: #fafafa;
}

.gude-item h3 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}

.gude-item h3 a {
    color: #222;
}

.gude-item h3 a:hover {
    color: var(--brand-color);
}

.gude-item p {
    color: #666;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 10px;
}

.gude-item .meta {
    color: #999;
    font-size: 12px;
}

.gude-item .meta .time {
    margin-right: 15px;
}

.gude-item .meta .cat {
    color: var(--brand-color);
}

/* ==================== 右侧边栏 ==================== */
.gude-right {
    float: right;
    width: 340px;
}

.gude-box {
    background: #fff;
    margin-bottom: 15px;
    padding: 20px;
    border: 1px solid var(--border-color);
}

.gude-box-title {
    font-size: 18px;
    font-weight: bold;
    border-left: 4px solid var(--brand-color);
    padding-left: 10px;
    margin-bottom: 15px;
}

/* 栏目列表 */
.gude-catlist li {
    list-style: none;
    padding: 12px 0;
    border-bottom: 1px dashed #eee;
}

.gude-catlist li:last-child {
    border-bottom: none;
}

.gude-catlist a {
    color: #333;
    font-size: 15px;
}

.gude-catlist a:hover {
    color: var(--brand-color);
}

.gude-catlist .name {
    font-weight: bold;
}

.gude-catlist .count {
    color: #999;
    font-size: 12px;
    margin-left: 8px;
}

/* 热门列表 */
.gude-hotlist li {
    list-style: none;
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
    font-size: 14px;
}

.gude-hotlist li:last-child {
    border-bottom: none;
}

.gude-hotlist .num {
    display: inline-block;
    width: 18px;
    height: 18px;
    background: #f0f0f0;
    text-align: center;
    line-height: 18px;
    font-size: 11px;
    margin-right: 8px;
}

.gude-hotlist .num.top {
    background: var(--brand-color);
    color: #fff;
}

.gude-hotlist a {
    color: #333;
}

.gude-hotlist a:hover {
    color: var(--brand-color);
}

/* ==================== 友情链接 ==================== */
.gude-links {
    background: #fff;
    padding: 20px;
    border: 1px solid var(--border-color);
}

.gude-links-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
    border-left: 4px solid var(--brand-color);
    padding-left: 10px;
}

.gude-links-list {
    overflow: hidden;
}

.gude-links-list a {
    float: left;
    display: block;
    padding: 5px 12px;
    margin: 0 10px 10px 0;
    font-size: 13px;
    color: #666;
    background: #f5f5f5;
    border-radius: 2px;
    transition: all 0.2s;
}

.gude-links-list a:hover {
    background: var(--brand-color);
    color: #fff;
}

/* ==================== 今日标记 ==================== */
.gude-today {
    background: var(--brand-color);
    color: #fff;
    font-size: 11px;
    padding: 1px 5px;
    margin-left: 8px;
    border-radius: 2px;
}

/* ==================== 底部友情链接 ==================== */
.gude-friendlinks {
    background: #fff;
    padding: 25px 30px;
    margin-top: 20px;
    border: 1px solid var(--border-color);
}

.gude-friendlinks-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
    border-left: 4px solid var(--brand-color);
    padding-left: 12px;
}

.gude-friendlinks-list {
    overflow: hidden;
}

.gude-friendlinks-list a {
    float: left;
    display: block;
    padding: 8px 16px;
    margin: 0 12px 12px 0;
    font-size: 14px;
    color: #666;
    background: #f8f8f8;
    border-radius: 3px;
    transition: all 0.2s;
}

.gude-friendlinks-list a:hover {
    background: var(--brand-color);
    color: #fff;
}

/* ==================== 页脚 ==================== */
.gude-footer {
    background: #333;
    color: #999;
    padding: 30px 0;
    margin-top: 30px;
    text-align: center;
    font-size: 12px;
}

.gude-footer a {
    color: #999;
    margin: 0 10px;
}

.gude-footer a:hover {
    color: #fff;
}

/* ==================== 内容页样式 ==================== */

/* 内容页布局 */
.gude-article-content {
    float: left;
    width: 840px;
    background: #fff;
    padding: 30px;
    border: 1px solid var(--border-color);
}

.gude-article-sidebar {
    float: right;
    width: 340px;
}

/* 文章 */
.gude-article h1 {
    font-size: 28px;
    font-weight: bold;
    line-height: 1.4;
    margin-bottom: 15px;
    color: #222;
}

.gude-article-meta {
    color: #999;
    font-size: 13px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.gude-article-meta span {
    margin-right: 20px;
}

/* 正文内嵌标签链接 */
a.gude-inline-tag {
    color: #0d9488;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}

a.gude-inline-tag:hover {
    color: #047857;
}

.gude-article-body {
    font-size: 18px;
    line-height: 1.9;
    color: #333;
}

.gude-article-body p {
    margin-bottom: 20px;
    text-indent: 2em;
}

/* 视频样式 */
.gude-article-body .video-wrapper,
.gude-article-body .video-box {
    margin: 20px 0;
    background: #000;
    border-radius: 4px;
    overflow: hidden;
}

.gude-article-body .video-wrapper iframe,
.gude-article-body .video-box video {
    display: block;
    width: 100%;
    max-height: 400px;
}

.gude-article-body video {
    max-width: 100%;
    height: auto;
}

/* 相关阅读 */
.gude-article-related {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid var(--brand-color);
}

.gude-article-related h3 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}

.gude-article-related-item {
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
}

.gude-article-related-item:last-child {
    border-bottom: none;
}

.gude-article-related-item a {
    color: #333;
    font-size: 15px;
}

.gude-article-related-item a:hover {
    color: var(--brand-color);
}

/* 专题推荐 */
.gude-topic-item {
    display: block;
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 4px;
    color: #fff;
    transition: opacity 0.2s;
}

.gude-topic-item:last-child {
    margin-bottom: 0;
}

.gude-topic-item:hover {
    opacity: 0.9;
    color: #fff;
}

.gude-topic-item h4 {
    font-size: 15px;
    margin-bottom: 3px;
}

.gude-topic-item p {
    font-size: 12px;
    opacity: 0.9;
}

/* 热门条目 */
.gude-hot-item {
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
    font-size: 14px;
}

.gude-hot-item:last-child {
    border-bottom: none;
}

.gude-hot-item a {
    color: #333;
}

.gude-hot-item a:hover {
    color: var(--brand-color);
}

/* ==================== 响应式 ==================== */
@media (max-width: 1200px) {
    .gude-top-inner,
    .gude-logo-inner,
    .gude-nav-inner,
    .gude-main {
        width: 100%;
        padding: 0 15px;
        box-sizing: border-box;
    }
    
    .gude-left {
        width: 100%;
        float: none;
    }
    
    .gude-right {
        width: 100%;
        float: none;
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    /* 顶部导航 */
    .gude-top {
        height: auto;
        min-height: 40px;
    }
    
    .gude-top-inner {
        padding: 8px 10px;
        line-height: 1.8;
    }
    
    .gude-top a {
        display: inline-block;
        margin-right: 10px;
        font-size: 11px;
    }
    
    .gude-top .right {
        float: none;
        display: block;
        margin-top: 5px;
    }
    
    /* Logo区域 */
    .gude-logo {
        height: auto;
        min-height: 60px;
    }
    
    .gude-logo-inner {
        padding: 15px 10px;
    }
    
    .gude-logo-main {
        float: none;
        font-size: 22px;
        text-align: center;
    }
    
    .gude-logo-main span {
        display: none;
    }
    
    /* 导航 */
    .gude-nav {
        height: auto;
        min-height: 44px;
        overflow: hidden;
    }
    
    .gude-nav-inner {
        padding: 0;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE 10+ */
    }
    
    .gude-nav-inner::-webkit-scrollbar {
        display: none; /* Chrome Safari */
    }
    
    .gude-nav a {
        float: none;
        display: inline-block;
        height: 44px;
        line-height: 44px;
        padding: 0 15px;
        font-size: 14px;
    }
    
    /* 主体 */
    .gude-main {
        margin: 10px auto;
        padding: 0 10px;
    }
    
    /* 左侧内容 */
    .gude-left {
        width: 100%;
    }
    
    .gude-crumb {
        padding: 12px 15px;
        font-size: 13px;
    }
    
    /* 头条 */
    .gude-headline {
        padding: 20px 15px;
    }
    
    .gude-headline h1 {
        font-size: 20px;
        line-height: 1.4;
    }
    
    .gude-headline p {
        font-size: 14px;
    }
    
    /* 列表 */
    .gude-item {
        padding: 15px;
    }
    
    .gude-item h3 {
        font-size: 17px;
        line-height: 1.5;
    }
    
    .gude-item p {
        font-size: 13px;
        line-height: 1.6;
    }
    
    /* 右侧边栏 */
    .gude-right {
        width: 100%;
        margin-top: 15px;
    }
    
    .gude-box {
        padding: 15px;
    }
    
    .gude-box-title {
        font-size: 16px;
    }
    
    /* 文章详情页 */
    .gude-article-content {
        width: 100%;
        float: none;
    }
    
    .gude-article-sidebar {
        width: 100%;
        float: none;
        margin-top: 20px;
    }
    
    .gude-article {
        padding: 20px 15px;
    }
    
    .gude-article h1 {
        font-size: 22px;
    }
    
    .gude-article-body {
        font-size: 15px;
        line-height: 1.8;
    }
    
    .gude-article-body p {
        margin-bottom: 15px;
    }
    
    /* 标签 */
    .gude-tags {
        padding: 10px;
    }
    
    .gude-tag {
        padding: 5px 10px;
        font-size: 12px;
        margin-bottom: 5px;
    }
    
    /* 页脚 */
    .gude-footer {
        padding: 20px 15px;
    }
    
    .gude-footer a {
        display: inline-block;
        margin: 0 8px 5px 0;
        font-size: 13px;
    }
}

/* 超小屏幕适配 */
@media (max-width: 480px) {
    .gude-logo-main {
        font-size: 18px;
    }
    
    .gude-nav a {
        padding: 0 12px;
        font-size: 13px;
    }
    
    .gude-headline h1 {
        font-size: 18px;
    }
    
    .gude-item h3 {
        font-size: 16px;
    }
    
    .gude-article h1 {
        font-size: 20px;
    }
}

/* ==================== 标签样式 ==================== */
.gude-tags {
    padding: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.gude-tag {
    display: inline-block;
    padding: 6px 12px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    font-size: 13px;
    color: #555;
    transition: all 0.3s ease;
    text-decoration: none;
}

.gude-tag:hover {
    background: var(--brand-color);
    color: #fff;
    border-color: var(--brand-color);
    text-decoration: none;
}

.gude-tag.active {
    background: var(--brand-color);
    color: #fff;
    border-color: var(--brand-color);
}

.gude-tag-plain {
    cursor: default;
}

.gude-tag-plain:hover {
    background: #f5f5f5;
    color: #555;
    border-color: #e0e0e0;
}

.gude-article-tags {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #eee;
    font-size: 14px;
    line-height: 1.8;
}

.gude-article-tags-label {
    color: #666;
    margin-right: 8px;
    font-weight: 600;
}

.gude-tags-inline {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    vertical-align: middle;
}

/* 文章页标签样式 */
.gude-article-sidebar .gude-tags {
    padding: 12px;
}

.gude-article-sidebar .gude-tag {
    padding: 5px 10px;
    font-size: 12px;
}

/* 右侧热门标签：保证标签中文名可见 */
.gude-box-hot-tags .gude-tag-text {
    display: inline;
    color: #555;
    font-size: inherit;
    line-height: inherit;
}

.gude-box-hot-tags a.gude-tag {
    color: #555;
}

.gude-box-hot-tags a.gude-tag:hover .gude-tag-text {
    color: #fff;
}
