/*
Theme Name: roi
Theme URI: https://example.com/roi
Description: 自定义WordPress主题 - ROI计算器
Version: 1.0
Author: 陈小锅
Author URI: https://example.com
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: roi
*/

/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* CSS变量 */
:root {
    --primary-color: #007bff;
    --primary-hover: #0056b3;
    --primary-dark: #004085;
    --text-color: #333;
    --text-secondary: #666;
    --light-bg: #f5f7fa;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 6px 20px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
}

/* 广告区域样式 */
.top-ad-section img,
.bottom-ad-section img,
.calculator-ad-section img {
    margin-top: 10px;
    border-radius: var(--border-radius);
}

/* 幻灯片广告样式 */
.slider-ad-slide {
    position: relative;
}

.slider-ad-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-ad-wrapper .widget {
    width: 100%;
    height: 100%;
}

/* 幻灯片广告右下角"广告"标签 */
.slider-ad-wrapper::after {
    content: "广告";
    position: absolute;
    right: 20px;
    bottom: 20px;
    padding: 2px 8px;
    font-size: 12px;
    color: #666;
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid #ccc;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 100;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* 默认隐藏广告标签，等待广告内容加载完成 */
.slider-ad-wrapper.ad-label-hidden::after {
    opacity: 0;
}

/* 当广告内容加载完成后显示广告标签 */
.slider-ad-wrapper:not(.ad-label-hidden)::after {
    opacity: 1;
}

/* 计算器广告位样式 */
.calculator-ad-section {
    position: relative;
}

/* 计算器广告位右下角"广告"标签 */
.calculator-ad-section::after {
    content: "广告";
    position: absolute;
    right: 10px;
    bottom: 10px;
    padding: 2px 8px;
    font-size: 12px;
    color: #666;
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* 默认隐藏广告标签，等待广告内容加载完成 */
.calculator-ad-section.ad-label-hidden::after {
    opacity: 0;
}

/* 当广告内容加载完成后显示广告标签 */
.calculator-ad-section:not(.ad-label-hidden)::after {
    opacity: 1;
}

/* 顶部广告位右下角"广告"标签 */
.top-ad-section {
    position: relative;
}

.top-ad-section::after {
    content: "广告";
    position: absolute;
    right: 10px;
    bottom: 10px;
    padding: 2px 8px;
    font-size: 12px;
    color: #666;
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* 默认隐藏广告标签，等待广告内容加载完成 */
.top-ad-section.ad-label-hidden::after {
    opacity: 0;
}

/* 当广告内容加载完成后显示广告标签 */
.top-ad-section:not(.ad-label-hidden)::after {
    opacity: 1;
}

/* 底部广告位样式 */
.bottom-ad-section {
    text-align: center;
    position: relative;
}

/* 底部广告位右下角"广告"标签 */
.bottom-ad-section::after {
    content: "广告";
    position: absolute;
    right: 10px;
    bottom: 10px;
    padding: 2px 8px;
    font-size: 12px;
    color: #666;
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* 默认隐藏广告标签，等待广告内容加载完成 */
.bottom-ad-section.ad-label-hidden::after {
    opacity: 0;
}

/* 当广告内容加载完成后显示广告标签 */
.bottom-ad-section:not(.ad-label-hidden)::after {
    opacity: 1;
}
.top-ad-section:not(.ad-label-hidden)::after {
    opacity: 1;
}

/* 基础样式 */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
}

/* 快递查询页面特定样式 */
.page-template-page-courier .post-title,
.page-template-page-courier-internal .post-title {
    text-align: center;
    margin-top: 30px;
    font-size: 2.2rem;
    color: var(--text-color);
    position: relative;
    padding-left: 35px;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.page-template-page-courier .post-title::before,
.page-template-page-courier-internal .post-title::before {
    content: '\f48b';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--primary-color);
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
}

/* 快递查询页面容器样式 */
.page-template-page-courier .content {
    min-height: calc(100vh - 250px); /* 减去头部和底部的高度，使内容区域有足够高度 */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.page-template-page-courier .post {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 20px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

/* 快递查询表单样式 */
.courier-form-container {
    text-align: center;
    position: relative;
}

.courier-form-container form {
    max-width: 600px;
    margin: 0 auto;
}

.courier-form-row {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.courier-form-row input {
    padding: 12px 20px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 100%;
    max-width: 400px;
    box-sizing: border-box;
}

.courier-form-row button {
    padding: 12px 30px;
    font-size: 16px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.courier-form-row button:hover {
    background-color: #0056b3;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .page-template-page-courier .post-title {
        font-size: 1.8rem;
        padding-left: 30px;
    }
    
    .page-template-page-courier .post-title::before {
        font-size: 1.2rem;
    }
    
    .page-template-page-courier .content {
        min-height: calc(100vh - 200px);
    }
    
    /* 确保按钮文字在小屏幕上不换行 */
    .courier-form-row button {
        white-space: nowrap;
        padding: 12px 20px;
    }
    
    .page-template-page-courier .post {
        padding: 30px 15px;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 */
.site-header {
    background-color: var(--white);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

/* 滚动时的导航栏效果 */
.site-header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    margin-right: 30px;
}

.logo a {
    display: inline-block;
    transition: transform 0.3s ease;
}

.logo a:hover {
    transform: scale(1.05);
}

.logo img {
    max-height: 40px;
}

.main-navigation {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 15px;
    margin: 0;
    padding: 0;
}

/* 菜单项基础样式 - 紧凑风格 */
.nav-link,
.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 12px;
    display: inline-block;
    border-radius: 4px;
    background-color: transparent;
}

/* 导航菜单中Font Awesome图标的右侧间隙 */
.nav-links .nav-link i.fa-solid,
.nav-links a i.fa-solid {
    margin-right: 2px;
}

/* 菜单项悬停效果 */
.nav-link:hover,
.nav-links a:hover {
    color: var(--primary-color);
    background-color: transparent;
    transform: translateY(-1px);
    box-shadow: none;
}

/* 当前活动菜单项样式 */
.nav-links .current-menu-item a,
.nav-links .current-menu-item a:hover {
    color: var(--primary-color);
    background-color: transparent;
    font-weight: 600;
    box-shadow: none;
}

/* 移除下划线动画，使用背景色变化作为视觉反馈 */
.nav-link:after,
.nav-links a:after {
    display: none;
}

/* 二级菜单样式 */
.nav-links li.menu-item-has-children {
    position: relative;
}

/* 二级菜单箭头 - 使用Font Awesome 4.7.0 */
.nav-links li.menu-item-has-children > a:after {
    content: '\f0d7';
    font-family: 'FontAwesome';
    font-size: 12px;
    margin-left: 6px;
    display: inline-block;
    transition: transform 0.3s ease;
    vertical-align: middle;
}

/* 鼠标悬停时箭头旋转180度动画 */
.nav-links li.menu-item-has-children:hover > a:after {
    transform: rotate(-180deg);
}

.nav-links .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    padding: 8px 0;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(5px);
    transition: all 0.3s ease;
    z-index: 999;
}

.nav-links li.menu-item-has-children:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-links .sub-menu li {
    list-style: none;
}

.nav-links .sub-menu a {
    display: block;
    padding: 12px 20px;
    font-size: 14px;
    color: var(--text-color);
    border-bottom: 1px solid #f5f5f5;
    transition: all 0.2s ease;
}

.nav-links .sub-menu a:hover {
    background-color: #f5f7fa;
    color: var(--primary-color);
    padding-left: 25px;
}

.nav-links .sub-menu li:last-child a {
    border-bottom: none;
}

.nav-links .sub-menu a:after {
    display: none;
}

/* 搜索区域样式 */
.search-section {
    background-color: var(--white);
    padding: 30px 0;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.search-form-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-form {
    max-width: 600px; /* 缩小搜索框宽度 */
    width: 100%;
}

.search-input-container {
    display: flex;
    align-items: center;
    background-color: #f5f7fa;
    border-radius: 30px;
    padding: 8px 15px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.search-input-container:focus-within {
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
    border-color: var(--primary-color);
}

.baidu-icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    opacity: 0.7;
}

.search-input {
    flex: 1;
    border: none;
    background: none;
    outline: none;
    font-size: 16px;
    padding: 3px 0;
    color: var(--text-color);
}

.search-input::placeholder {
    color: #999;
}

.search-input:focus {
    box-shadow: none;
}

/* 搜索按钮容器 */
.search-buttons {
    display: flex;
    gap: 10px;
}

/* 搜索按钮通用样式 */
.search-button {
    padding: 10px 20px;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
}

/* 站内搜索按钮样式 */
.site-search-btn {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.site-search-btn:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2);
}

/* 百度搜索按钮样式 */
.baidu-search-btn {
    background-color: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
}

.baidu-search-btn:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2);
}

/* AI搜索按钮样式 - 毛玻璃七彩流动效果 */
.ai-search-btn {
    position: relative;
    color: white;
    font-weight: 600;
    overflow: hidden;
    background: rgba(0, 123, 255, 0.1);
    backdrop-filter: blur(10px);
    z-index: 1;
}

/* 七彩流动背景动画 */
.ai-search-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg, 
        #ff0080, #7928ca, #00bcd4, #ff0080, 
        #7928ca, #00bcd4, #ff0080
    );
    background-size: 400% 400%;
    animation: gradientFlow 8s ease infinite;
    z-index: -1;
    opacity: 0.7;
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* AI搜索按钮悬停效果 */
.ai-search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

/* 确保文本在动画背景上清晰可见 */
.ai-search-btn span {
    position: relative;
    z-index: 2;
}

/* 隐藏表单样式 */
.hidden {
    display: none;
}

/* 网址导航样式 */
.nav-container {
    padding: 0px;
}

.nav-category {
    margin-bottom: 40px;
}

.category-title {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 20px;
    border-bottom: 2px solid var(--primary-color);
    display: flex;
    align-items: center;
    position: relative;
}

.category-title .more-link {
    color: var(--primary-color);
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: normal;
    margin-left: auto;
}

.category-title .more-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

.category-title i {
    margin-right: 10px;
    margin-left: 10px;
    color: var(--primary-color);
    font-size: 22px;
}

.category-title:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 80px;
    height: 2px;
    background-color: var(--primary-color);
}

/* 响应式卡片网格布局 */
.nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

/* 大屏幕：最多4列 */
@media (min-width: 1200px) {
    .nav-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* 中屏幕：最多3列 */
@media (max-width: 1199px) and (min-width: 900px) {
    .nav-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 小屏幕：最多2列 */
@media (max-width: 899px) and (min-width: 600px) {
    .nav-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 超小屏幕：1列 */
@media (max-width: 599px) {
    .nav-grid {
        grid-template-columns: 1fr;
    }
}

/* 卡片样式 */
.nav-item {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: inherit;
    height: 100%;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.nav-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.nav-item:hover .nav-item-icon {
    transform: rotate(-5deg) scale(1.1);
    transition: transform 0.3s ease;
}

.nav-item-wrapper {
    display: flex;
    align-items: center;
    width: 100%;
    position: relative;
}

.nav-item-icon {
    transition: transform 0.3s ease;
    width: 64px;
    height: 64px;
    margin-right: 15px;
    flex-shrink: 0;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f8f9fa;
}

.nav-item-content {
    flex: 1;
    text-align: left;
}

.nav-item-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-color);
    display: block;
    transition: color 0.3s ease;
}

.nav-item:hover .nav-item-title {
    color: var(--primary-color);
}

.nav-item-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    display: block;
}

.hot-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff4757;
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
}

.nav-item-wrapper {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    width: 100%;
}

/* 底部导航菜单样式 */
.footer-navigation {
    margin-bottom: 25px;
}

.footer-nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-nav-links li {
    position: relative;
}

/* 在菜单项之间添加50%灰色的·符号 */
.footer-nav-links li:not(:last-child)::after {
    content: '·';
    color: rgba(0, 0, 0, 0.5);
    margin: 0 10px;
    font-size: 16px;
}

.footer-nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    padding: 4px 0;
    border-radius: 0;
}

.footer-nav-links a:hover {
    color: var(--primary-color);
    background-color: var(--primary-color-light);
}

.footer-nav-links .current-menu-item a,
.footer-nav-links .current-menu-item a:hover {
    color: var(--primary-color);
    font-weight: 600;
}

/* 底部样式 */
.site-footer {
    background-color: var(--white);
    border-top: 1px solid var(--border-color);
    padding: 30px 0;
    margin-top: 40px;
}

.footer-content {
    text-align: center;
}

.footer-content p {
    margin-bottom: 10px;
    color: var(--text-secondary);
    font-size: 14px;
}

.footer-content a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-content a:hover {
    color: #0056b3;
    text-decoration: none;
}

/* 全局链接样式 - 隐藏所有链接的下划线 */
a {
    text-decoration: none !important;
}

/* 全宽幻灯片样式 */
.full-width-slider-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.full-width-slider {
    position: relative;
    width: 100%;
    padding-top: 31.58%; /* 19:6 的比例 (6/19 ≈ 0.3158) */
    height: 0;
    background-color: #000;
}

.slider-slides {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slider-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.slider-slide:first-child {
    opacity: 1;
}

.slider-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5);
}

/* 确保广告幻灯片也能保持正确比例 */
.slider-ad-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slider-ad-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-caption {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    padding: 40px;
    transform: translateY(-50%);
    color: white;
    text-align: center;
    z-index: 1;
}

.slider-title {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 3px 6px rgba(0,0,0,0.7);
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.slider-description {
    font-size: 1.4rem;
    max-width: 900px;
    margin: 0 auto 25px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.7);
    line-height: 1.4;
}

.slider-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.slider-button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* 幻灯片指示器 */
.slider-indicators {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 15px;
    z-index: 10;
    padding: 0;
    margin: 0;
    list-style: none;
}

.slider-indicators li {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.slider-indicators li::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 22px;
    height: 22px;
    border: 2px solid transparent;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.slider-indicators li.active {
    background-color: white;
    transform: scale(1.2);
}

.slider-indicators li.active::before {
    border-color: rgba(255,255,255,0.5);
}

/* 响应式设计 - 保持19:6比例 */
@media (max-width: 1200px) {
    .slider-title {
        font-size: 2rem;
    }
    
    .slider-description {
        font-size: 1rem;
    }
}

@media (max-width: 992px) {
    .slider-caption {
        padding: 20px;
    }
    
    .slider-prev,
    .slider-next {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    /* 隐藏幻灯片 */
    .full-width-slider-wrapper {
        display: none;
    }
    
    .slider-title {
        font-size: 1.5rem;
    }
    
    .slider-description {
        font-size: 0.9rem;
    }
    
    .slider-prev,
    .slider-next {
        width: 40px;
        height: 40px;
        font-size: 16px;
        left: 15px;
        right: 15px;
    }
}

@media (max-width: 576px) {
    .slider-title {
        font-size: 1.2rem;
    }
    
    .slider-description {
        font-size: 0.8rem;
    }
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #0056b3;
    transform: translateY(-3px);
}

/* 复制提示弹窗 */
.copy-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.copy-toast.visible {
    opacity: 1;
    visibility: visible;
}

.copy-toast i {
    font-size: 16px;
}

/* 移动设备导航菜单按钮 */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-color);
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    position: relative;
}

.menu-toggle:hover {
    color: var(--primary-color);
}

/* 响应式设计 */
@media (min-width: 1200px) {
    .nav-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* 平板设备样式 */
@media (max-width: 992px) {
    .nav-links {
        gap: 10px;
    }
    
    .nav-link,
    .nav-links a {
        font-size: 15px;
        padding: 6px 10px;
    }
}

/* 移动设备样式 */
@media (max-width: 768px) {
    /* 导航菜单调整为移动端样式 */
    .menu-toggle {
        display: block;
        position: relative;
        z-index: 1001;
    }
    
    .main-navigation {
        position: fixed;
        top: 0;
        right: -300px;
        width: 300px;
        height: 100vh;
        background-color: white;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
        z-index: 1000;
        padding: 80px 20px 20px;
        overflow-y: auto;
    }
    
    .main-navigation.toggled {
        right: 0;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 10px;
    }
    
    .nav-links li {
        width: 100%;
    }
    
    /* 移动端菜单项样式调整 */
    .nav-link,
    .nav-links a {
        display: block;
        padding: 8px 12px;
        font-size: 16px;
        border-radius: 4px;
        border-bottom: none;
        background-color: transparent;
        color: var(--text-color);
    }
    
    .nav-link:hover,
    .nav-links a:hover {
        background-color: transparent;
        color: var(--primary-color);
        transform: none;
    }
    
    .nav-links .current-menu-item a,
    .nav-links .current-menu-item a:hover {
        background-color: transparent;
        color: var(--primary-color);
    }
    
    /* 二级菜单在移动端的样式 - 保持一致性 */
    .nav-links .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border-radius: 6px;
        padding: 8px;
        display: none;
        margin-top: 5px;
        background-color: #f8f9fa;
        width: 100%;
    }
    
    .nav-links li.menu-item-has-children.active .sub-menu {
        display: block;
    }
    
    /* 移动端二级菜单箭头样式调整 */
    .nav-links li.menu-item-has-children > a:after {
        content: '\f0d7';
        font-family: 'FontAwesome';
        font-size: 12px;
        float: right;
        transition: transform 0.3s ease;
    }
    
    .nav-links li.menu-item-has-children.active > a:after {
        transform: rotate(180deg);
    }
    
    .nav-links .sub-menu a {
        padding: 10px 20px;
        font-size: 14px;
        border-bottom: 1px solid #f5f5f5;
        background-color: #f9f9f9;
    }
    
    .nav-links .sub-menu a:hover {
        padding-left: 25px;
        background-color: var(--primary-color-light);
    }
    
    /* 头部布局调整 */
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    /* 网址导航卡片样式调整 */
    .nav-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .nav-item {
        padding: 15px;
    }
    
    .category-title {
        font-size: 20px;
        justify-content: space-between;
        align-items: center;
    }
    
    .category-title .more-link {
        color: var(--primary-color);
        font-size: 14px;
        text-decoration: none;
        transition: all 0.3s ease;
        float: right;
    }
    
    .category-title .more-link:hover {
        color: #0056b3;
        text-decoration: underline;
    }
    
    .search-section {
        padding: 20px 0;
    }
    
    .search-input-container {
        padding: 6px 12px;
    }
    
    .search-input {
        font-size: 14px;
    }
    
    /* 遮罩层 */
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 999;
        display: none;
        transition: opacity 0.3s ease;
    }
    
    .nav-overlay.active {
        display: block;
    }
}

@media (max-width: 480px) {
    .nav-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    
    .container {
        padding: 0 15px;
    }
    
    .category-title {
        font-size: 18px;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

/* 链接格式文章样式 */
.link-format-redirect {
    background-color: var(--light-bg);
    padding: 15px;
    border-radius: var(--border-radius);
    margin: 20px 0;
    text-align: center;
    border: 1px solid var(--border-color);
}

.btn-redirect {
    display: inline-flex;
    align-items: center;
    background-color: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-redirect:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-redirect i {
    margin-right: 8px;
}

/* 网址导航页面样式 */
.no-links-message {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
    font-size: 16px;
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
    border: 1px dashed var(--border-color);
}

/* 分类页面瀑布流样式 */
.category-header {
    margin-bottom: 30px;
    margin-top: 30px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.category-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
}

.category-description {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
}

/* 瀑布流网格容器 */
.masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin: 0 auto;
    padding: 10px 0;
}

/* 瀑布流项目 */
.masonry-item {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* 置顶文章推荐角标样式 */
.sticky-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #ff4500;
    color: white;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    min-width: 40px;
}

.masonry-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

/* 特色图片样式 */
.post-thumbnail {
    width: 100%;
    overflow: hidden;
    border-radius: var(--border-radius);
    margin: 0;
    box-shadow: var(--shadow);
}

/* 文章列表缩略图3:2比例 */
.masonry-item .post-thumbnail {
    position: relative;
    height: 0;
    padding-top: 66.67%; /* 3:2比例 (2/3 = 0.6667) */
}

.masonry-item .post-thumbnail a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
    display: block;
}

/* 文章列表缩略图智能裁剪 */
.masonry-item .post-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* 文章页特色图片优化 */
.single-post .post-thumbnail, 
.post-single:not(.link-format-post) .post-thumbnail {
    margin: 20px 0;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
}

.single-post .post-thumbnail img, 
.post-single:not(.link-format-post) .post-thumbnail img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    display: block;
    margin: 0 auto;
}

/* 文章页特色图片悬停效果 */
.single-post .post-thumbnail:hover img, 
.post-single:not(.link-format-post) .post-thumbnail:hover img {
    transform: scale(1.02);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .single-post .post-thumbnail, 
    .post-single:not(.link-format-post) .post-thumbnail {
        margin: 0;
        box-shadow: var(--shadow-sm);
    }
    
    .single-post .post-thumbnail img, 
    .post-single:not(.link-format-post) .post-thumbnail img {
        max-height: 350px;
    }
}

@media (max-width: 480px) {
    .single-post .post-thumbnail, 
    .post-single:not(.link-format-post) .post-thumbnail {
        margin: 0;
    }
    
    .single-post .post-thumbnail img, 
    .post-single:not(.link-format-post) .post-thumbnail img {
        max-height: 250px;
    }
}

.masonry-item:hover .post-thumbnail img {
    transform: scale(1.05);
}

/* 文章标题样式 */
.masonry-item .post-title {
    font-size: 1.4rem;
    margin: 15px 20px 10px;
    line-height: 1.4;
}

.masonry-item .post-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.masonry-item .post-title a:hover {
    color: #007bff;
}

/* 文章元数据样式 */
.masonry-item .post-meta {
    font-size: 0.9rem;
    color: #999;
    margin: 0 20px 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.masonry-item .post-meta span {
    margin-right: 15px;
}

/* 文章摘要样式 */
.masonry-item .post-excerpt {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin: 10px 20px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 文章分类样式 */
.masonry-item .post-categories {
    margin: 15px 20px 20px;
    font-size: 0.9rem;
}

.masonry-item .post-categories a {
    display: inline-block;
    background-color: #f0f0f0;
    color: #666;
    padding: 3px 10px;
    border-radius: 15px;
    text-decoration: none;
    margin-right: 5px;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.masonry-item .post-categories a:hover {
    background-color: #007bff;
    color: white;
}

/* 无文章提示样式 */
.no-posts {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    background-color: #f9f9f9;
    border-radius: 8px;
    margin-top: 30px;
}

/* 分页样式 */
.pagination {
    margin-top: 40px;
    text-align: center;
}

/* 加载指示器样式 */
.loading-indicator p {
    color: rgba(0, 0, 0, 0.3);
}

.loading-indicator i.fa-spinner {
    color: rgba(0, 0, 0, 0.3);
}

.pagination a {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 5px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .masonry-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .category-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .masonry-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .category-title {
        font-size: 1.6rem;
    }
    
    .masonry-item {
        padding: 0;
    }
}

/* 搜索结果页面样式 */
.search-results-header {
    margin-bottom: 30px;
    margin-top: 30px;
    padding: 20px;
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.search-title {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.search-keyword {
    color: var(--primary-color);
    font-weight: 600;
}

.search-summary {
    font-size: 14px;
    color: var(--text-secondary);
    font-style: italic;
}

.search-results-list {
    margin-bottom: 40px;
}

.search-result-item {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 25px;
    margin-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.search-result-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.search-result-title {
    font-size: 20px;
    margin-bottom: 15px;
    line-height: 1.4;
}

.search-result-title a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.search-result-title a:hover {
    color: var(--primary-color);
}

.search-result-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 13px;
    color: var(--text-secondary);
}

.search-result-meta span {
    display: flex;
    align-items: center;
}

.search-result-meta i {
    margin-right: 5px;
    font-size: 12px;
}

.search-result-excerpt {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 20px;
}

.search-result-excerpt mark {
    background-color: #fff3cd;
    color: #856404;
    padding: 2px 4px;
    border-radius: 3px;
}

.search-result-title mark {
    background-color: #fff3cd;
    color: var(--primary-color);
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 600;
}

.search-result-footer {
    text-align: right;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: var(--border-radius);
    background-color: transparent;
    border: 1px solid var(--primary-color);
}

.read-more-btn:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateX(5px);
}

.read-more-btn i {
    margin-left: 5px;
    font-size: 12px;
}

/* 搜索结果分页样式 */
.search-pagination {
    margin-top: 30px;
    padding: 20px;
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
    text-align: center;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    background-color: white;
}

.pagination .page-numbers:hover {
    background-color: var(--primary-color-light);
    border-color: var(--primary-color-light);
    color: var(--primary-color);
}

.pagination .page-numbers.current {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination .prev.page-numbers,
.pagination .next.page-numbers {
    width: auto;
    padding: 0 15px;
}

/* 无搜索结果样式 */
.no-search-results {
    text-align: center;
    padding: 60px 20px;
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
}

.no-results-icon {
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.no-results-title {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.no-results-message {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.no-results-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.home-btn,
.nav-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid var(--primary-color);
}

.home-btn {
    background-color: var(--primary-color);
    color: white;
}

.home-btn:hover {
    background-color: transparent;
    color: var(--primary-color);
    transform: translateY(-2px);
}

.nav-btn {
    background-color: transparent;
    color: var(--primary-color);
}

.nav-btn:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.home-btn i,
.nav-btn i {
    margin-right: 8px;
}

.error-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* 搜索结果页面响应式样式 */
@media (max-width: 768px) {
    .search-results-header {
        padding: 15px;
    }
    
    .search-title {
        font-size: 20px;
    }
    
    .search-result-item {
        padding: 20px;
    }
    
    .search-result-title {
        font-size: 18px;
    }
    
    .search-result-meta {
        flex-direction: column;
        gap: 5px;
    }
    
    .search-result-excerpt {
        font-size: 14px;
    }
    
    .pagination .page-numbers {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .no-search-results {
        padding: 40px 15px;
    }
    
    .no-results-title {
        font-size: 20px;
    }
    
    .no-results-message {
        font-size: 14px;
    }
    
    .no-results-actions {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .search-results-header {
        padding: 12px;
    }
    
    .search-title {
        font-size: 18px;
    }
    
    .search-result-item {
        padding: 15px;
    }
    
    .search-result-title {
        font-size: 16px;
    }
    
    .search-result-excerpt {
        font-size: 13px;
    }
    
    .pagination {
        gap: 3px;
    }
    
    .pagination .page-numbers {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
    
    .pagination .prev.page-numbers,
    .pagination .next.page-numbers {
        padding: 0 10px;
        font-size: 12px;
    }
}

/* 404页面样式 */
.error-404 {
    padding: 40px 20px;
    text-align: center;
}

/* 404错误头部样式 */
.error-header {
    margin-bottom: 50px;
}

.error-icon {
    margin-bottom: 20px;
}

.error-title {
    font-size: 6rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
    line-height: 1;
}

.error-subtitle {
    font-size: 1.6rem;
    color: var(--text-color);
    margin-bottom: 10px;
}

/* 404错误内容样式 */
.error-content {
    max-width: 700px;
    margin: 0 auto;
}

.error-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 30px;
}

/* 404错误搜索框样式 */
.error-search {
    margin-bottom: 40px;
}

/* 搜索框居中样式 */
.centered-search {
    display: flex;
    justify-content: center;
}

.error-search .search-form {
    display: flex;
    max-width: 500px;
}

.error-search .search-field {
    flex-grow: 1;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-right: none;
    border-radius: 6px 0 0 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.error-search .search-field:focus {
    outline: none;
    border-color: var(--primary-color);
}

.error-search .search-submit {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 0 6px 6px 0;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.error-search .search-submit:hover {
    background-color: var(--primary-hover);
}

/* 快速导航选项卡样式 */
.error-quick-nav {
    margin-bottom: 40px;
}

.quick-nav-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    gap: 5px;
}

.quick-nav-tabs .tab {
    padding: 10px 20px;
    background-color: var(--light-bg);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    color: var(--text-secondary);
}

.quick-nav-tabs .tab:hover {
    background-color: var(--border-color);
    color: var(--text-color);
}

.quick-nav-tabs .tab.active {
    background-color: var(--primary-color);
    color: white;
}

/* 选项卡内容样式 */
.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 分类网格样式 */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.category-card {
    display: block;
    padding: 15px;
    background-color: var(--light-bg);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.category-card:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.category-name {
    display: block;
    color: var(--text-color);
    font-weight: 500;
    margin-bottom: 5px;
}

.category-card:hover .category-name {
    color: white;
}

.category-count {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.category-card:hover .category-count {
    color: rgba(255, 255, 255, 0.8);
}

/* 最近文章网格样式 */
.recent-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.recent-post-card {
    display: block;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-decoration: none;
    transition: all 0.3s ease;
}

.recent-post-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.recent-post-title {
    color: var(--text-color);
    font-size: 1.1rem;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recent-post-card:hover .recent-post-title {
    color: var(--primary-color);
}

.recent-post-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* 导航网格样式 */
.navigation-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.nav-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 30px;
    background-color: var(--light-bg);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-color);
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.nav-button:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.nav-button i {
    font-size: 1.2rem;
}

/* 返回首页按钮样式 */
.back-to-home-button {
    text-align: center;
    margin-top: 40px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

/* 按钮悬停时调整颜色与背景色 */
.btn-hover-same:hover {
    color: white;
    background-color: var(--primary-dark);
}

/* 响应式设计 - 404页面 */
@media (max-width: 768px) {
    .error-title {
        font-size: 4.5rem;
    }
    
    .error-subtitle {
        font-size: 1.3rem;
    }
    
    .category-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    .recent-posts-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .quick-nav-tabs {
        flex-wrap: wrap;
    }
    
    .quick-nav-tabs .tab {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .error-404 {
        padding: 20px 15px;
    }
    
    .error-title {
        font-size: 3.5rem;
    }
    
    .error-subtitle {
        font-size: 1.1rem;
    }
    
    .error-description {
        font-size: 1rem;
    }
    
    .error-search .search-form {
        flex-direction: column;
    }
    
    .error-search .search-field {
        border-radius: 6px 6px 0 0;
        border-right: 2px solid var(--border-color);
        border-bottom: none;
    }
    
    .error-search .search-submit {
        border-radius: 0 0 6px 6px;
    }
    
    /* 搜索栏响应式样式 - 解决480px宽度下溢出问题 */
    .search-form-container {
        flex-direction: column;
        align-items: stretch;
        max-width: 100%;
        padding: 0 15px;
        gap: 15px;
    }
    
    .search-form {
        max-width: 100%;
    }
    
    .search-input-container {
        border-radius: 20px;
    }
    
    .search-input {
        font-size: 14px;
    }
    
    .search-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .search-button {
        flex: 1;
        min-width: 120px;
    }
    
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .recent-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .navigation-grid {
        flex-direction: column;
        align-items: center;
    }
    
    .nav-button {
        width: 100%;
        max-width: 300px;
    }
}

/* ROI计算器通用样式 */
:root {
    --primary-color: #007bff;
    --primary-color-light: #e7f1ff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-bg: #f8f9fa;
    --dark-bg: #343a40;
    --text-color: #212529;
    --text-secondary: #6c757d;
    --border-color: #dee2e6;
    --white: #ffffff;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 5px 15px rgba(0, 0, 0, 0.15);
    --border-radius: 8px;
}

.card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 24px;
    margin-bottom: 24px;
}

.card-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copy-hint-inline {
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 8px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-prefix,
.input-suffix {
    position: absolute;
    padding: 0 12px;
    color: var(--text-secondary);
    font-size: 14px;
    pointer-events: none;
}

.input-prefix {
    left: 0;
}

.input-suffix {
    right: 0;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
    background-color: var(--white);
    color: var(--text-color);
}

.form-control.pl-8 {
    padding-left: 32px;
}

.form-control.pr-8 {
    padding-right: 32px;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

/* 使用说明和键盘快捷键样式 */
.usage-tips {
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
    padding: 16px;
    border: 1px solid var(--border-color);
}

.tips-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tips-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tips-list li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.tips-list li:before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 8px;
}

kbd {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 2px 6px;
    font-family: monospace;
    font-size: 0.8rem;
    color: var(--text-color);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    margin: 0 2px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1.5;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #0056b3;
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: #545b62;
}

.btn-block {
    width: 100%;
    margin-bottom: 8px;
}

.btn-copy {
    background-color: var(--light-bg);
    color: var(--text-color);
    padding: 8px 16px;
    font-size: 12px;
    margin-left: 12px;
}

.btn-copy:hover {
    background-color: var(--border-color);
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 24px;
    margin: 30px 0;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.result-item {
    text-align: center;
    padding: 16px;
    background-color: var(--light-bg);
    border-radius: 6px;
}

.result-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.result-value {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.formula-text {
    font-size: 11px;
    color: var(--text-secondary);
    font-style: italic;
}

.bid-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.bid-item {
    text-align: center;
    padding: 12px;
    background-color: var(--light-bg);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.bid-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.bid-item.base-option,
.bid-item.manual-base-option {
    background-color: var(--primary-color-light);
    border: 1px solid var(--primary-color);
}

.suggested-roi {
    text-align: center;
    padding: 20px;
    background-color: var(--light-bg);
    border-radius: 6px;
}

.highlighted-result-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 12px 0;
}

.highlighted-result {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.note-text {
    font-size: 12px;
    color: var(--text-secondary);
    text-align: center;
    font-style: italic;
    margin-top: 16px;
}

/* 复制提示弹窗 */
.copy-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.copy-toast.visible {
    opacity: 1;
    visibility: visible;
}


/* 计算器响应式设计 */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .bid-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .bid-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .highlighted-result {
        font-size: 2rem;
    }
}

/* 文章内容通用样式 */
.post-content {
    margin-top: 30px;
}

/* 普通文章内容排版样式 */
.post-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--text-color);
    text-align: justify;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    margin: 2rem 0 1rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-color);
}

.post-content h1 {
    font-size: 1.8rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.post-content h2 {
    font-size: 1.6rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.4rem;
}

.post-content h3 {
    font-size: 1.4rem;
    color: var(--primary-dark);
}

.post-content h4 {
    font-size: 1.2rem;
}

.post-content h5 {
    font-size: 1.1rem;
}

.post-content h6 {
    font-size: 1rem;
    color: var(--text-secondary);
}

.post-content ul,
.post-content ol {
    margin: 1rem 0 1.5rem 1.5rem;
    line-height: 1.8;
}

.post-content ul {
    list-style-type: disc;
}

.post-content ol {
    list-style-type: decimal;
}

.post-content li {
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

/* 引用样式 */
.post-content blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    border-left: 4px solid var(--primary-color);
    background-color: var(--light-bg);
    font-style: italic;
    color: var(--text-secondary);
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

/* 代码块样式 */
.post-content pre {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    overflow-x: auto;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
}

.post-content code {
    padding: 0.2rem 0.4rem;
    background-color: #f8f9fa;
    border-radius: 3px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.9em;
    color: #d63384;
}

.post-content pre code {
    padding: 0;
    background-color: transparent;
    color: #212529;
}

/* 表格样式 */
.post-content table {
    width: 100%;
    margin: 1.5rem 0;
    border-collapse: collapse;
    border-spacing: 0;
}

.post-content th,
.post-content td {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    text-align: left;
}

.post-content th {
    background-color: var(--light-bg);
    font-weight: 600;
    color: var(--text-color);
}

.post-content tr:nth-child(even) {
    background-color: #f8f9fa;
}

/* 图片样式 */
.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin: 1.5rem 0;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.post-content img:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-hover);
}

/* 链接样式 */
.post-content a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.post-content a:hover {
    color: var(--primary-hover);
    border-bottom-color: var(--primary-hover);
}

/* 链接格式文章样式 */
.link-format-post .post-content {
    margin-top: 30px;
}

.link-format-container {
    margin-bottom: 30px;
    margin-top: 0;
}
/* 标题移到link-card上方并居中 */
.link-title-top-center {
    text-align: center;
    margin-bottom: 30px;
    margin-top: 30px;
}

/* 链接卡片样式 - 修改为竖排居中对齐 */
.link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 30px 24px;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}


/* 缓慢旋转动画 */
@keyframes rotateSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 网站图标容器 - 包含阴影但不旋转 */
.link-icon {
    width: 256px;
    height: 256px;
    border-radius: 50%;
    overflow: hidden;
    background-color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15), 0 4px 12px rgba(0, 0, 0, 0.12);
    margin-bottom: 24px;
    flex-shrink: 0;
    transition: all 0.3s ease;
    /* 保留边框 */
    border: 2px solid rgba(255, 255, 255, 0.6);
}

/* 内部旋转元素 */
.link-icon-inner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: rotateSlow 20s linear infinite;
}

.link-icon:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22), 0 6px 16px rgba(0, 0, 0, 0.16);
    border-color: rgba(255, 255, 255, 0.8);
}

.link-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.link-default-icon {
    width: 100%;
    height: 100%;
    background-color: var(--primary-color-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 3rem;
}

/* 文章标签，风格参考kbd */
.post-tags.kbd-style {
    margin-bottom: 20px;
}

/* 链接格式文章中的标签居中显示 */
.link-tags-center {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin: 16px 0;
}

.post-tags.kbd-style a {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 2px 6px;
    font-family: monospace;
    font-size: 0.8rem;
    color: var(--text-color);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    margin: 0 2px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.post-tags.kbd-style a:hover {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* 链接内容区域样式 */
.link-content {
    max-width: 100%;
    width: 100%;
}

.link-title {
    margin: 30px 0 30px 0;
    font-size: 1.6rem;
    line-height: 1.4;
    word-wrap: break-word;
}

.link-title.no-link {
    color: var(--text-color);
}

.link-title a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
    border-bottom: 2px solid transparent;
    padding-bottom: 2px;
}

.link-title a:hover {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* 域名样式 - 修改为居中显示 */
.link-domain {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    background-color: var(--light-bg);
    padding: 8px 16px;
    border-radius: 20px;
    justify-content: center;
}

/* 描述样式 - 修改为居中显示 */
.link-description {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 24px;
    padding: 16px 20px;
    background-color: var(--light-bg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

/* 链接文章额外内容 */
.link-post-content {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    text-align: left;
}

/* 跳转按钮样式 - 修改为与404页面"返回首页"按钮一致 */
.link-action {
    width: 100%;
    display: flex;
    justify-content: center;
}

.btn-redirect {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.2);
}

.btn-redirect:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

/* 链接格式文章响应式设计 */
@media (max-width: 768px) {
    .link-card {
        padding: 24px 20px;
    }
    
    .link-icon {
        width: 200px;
        height: 200px;
        margin-bottom: 20px;
    }
    
    .link-default-icon {
        font-size: 2.2rem;
    }
    
    .link-title {
        font-size: 1.4rem;
        margin-bottom: 12px;
    }
    
    .link-domain {
        margin-bottom: 12px;
        font-size: 0.9rem;
    }
    
    .link-description {
        margin-bottom: 20px;
        padding: 12px 16px;
        font-size: 15px;
    }
    
    .btn-redirect {
        padding: 10px 24px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .link-card {
        padding: 20px 16px;
    }
    
    .link-icon {
        width: 150px;
        height: 150px;
    }
    
    .link-default-icon {
        font-size: 2rem;
    }
    
    .link-title {
        font-size: 1.3rem;
    }
    
    .link-domain {
        padding: 6px 12px;
    }
    
    .link-description {
        font-size: 14px;
        padding: 10px 12px;
    }
    
    .btn-redirect {
        padding: 9px 20px;
        font-size: 0.95rem;
    }
}

/* 面包屑导航样式 */
.breadcrumb {
    margin-bottom: 16px;
    padding: 8px 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.breadcrumb-icon {
    margin-right: 8px;
    color: var(--primary-color);
}

.breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

.breadcrumb-separator {
    margin: 0 8px;
    color: var(--border-color);
}

.breadcrumb-current {
    color: var(--text-color);
    font-weight: 500;
}

/* 作者信息样式美化 */
.author-info {
    display: flex;
    align-items: flex-start;
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
    padding: 24px;
    margin: 40px 0;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.author-avatar {
    flex-shrink: 0;
    margin-right: 20px;
    position: relative;
}

.author-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.author-avatar:hover img {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.author-details {
    flex-grow: 1;
}

.author-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.author-meta {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.author-meta a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.author-meta a:hover {
    color: var(--primary-color);
}

.author-meta i {
    margin-right: 4px;
}

.author-name::after {
    content: "作者";
    font-size: 0.8rem;
    font-weight: normal;
    color: var(--white);
    background-color: var(--primary-color);
    padding: 2px 8px;
    border-radius: 12px;
}

.author-description {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

/* 文章内分页导航样式美化 */
.post-pagination {
    margin: 30px 0;
    padding: 20px;
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.page-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
}

.page-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-color);
    background-color: var(--white);
    border: 1px solid var(--border-color);
    font-weight: 500;
    transition: all 0.3s ease;
}

.page-links a:hover {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* 文章前后导航样式美化 */
.post-navigation {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.nav-previous, .nav-next {
    flex: 1;
    min-width: 150px;
}

.nav-previous a, .nav-next a {
    display: block;
    padding: 10px;
    background-color: var(--white);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    font-size: 0.9rem;
}

.nav-previous a:hover, .nav-next a:hover {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.nav-previous a::before, .nav-next a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
}

.nav-previous a:hover::before, .nav-next a:hover::before {
    width: 100%;
    opacity: 0.1;
}

.nav-previous .meta-nav, .nav-next .meta-nav {
    display: inline;
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0 5px;
    font-weight: 500;
}

.nav-previous:hover .meta-nav, .nav-next:hover .meta-nav {
    color: rgba(255, 255, 255, 0.9);
}

.nav-previous a {
    text-align: left;
}

.nav-next a {
    text-align: right;
}

/* 评论部分样式美化 */
.comments-area {
    margin: 50px 0 0;
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.comments-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 30px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--light-bg);
    display: flex;
    align-items: center;
    gap: 10px;
}

.comments-title::before {
    content: "💬";
    font-size: 1.8rem;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
}

.comment-list > li {
    margin-bottom: 30px;
    position: relative;
}

/* 嵌套评论容器样式 */
.comment-list .children {
    list-style: none;
    padding: 20px 0 0 40px;
    margin: 20px 0 0 0;
    position: relative;
}

/* 嵌套评论连接线 */
.comment-list .children::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    width: 2px;
    height: calc(100% - 40px);
    background-color: var(--border-color);
}

.comment-list .children li {
    margin-bottom: 20px;
    position: relative;
}

/* 嵌套评论连接线点 */
.comment-list .children li::before {
    content: '';
    position: absolute;
    top: 30px;
    left: -40px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--white);
    border: 2px solid var(--primary-color);
    z-index: 1;
}

/* 嵌套评论的最后一个子评论不需要底部连接线 */
.comment-list .children > li:last-child::after {
    content: '';
    position: absolute;
    top: 40px;
    left: -39px;
    width: 2px;
    height: calc(100% - 10px);
    background-color: var(--white);
}

.comment-author {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.comment-author .avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 15px;
    border: 2px solid var(--white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.comment-author:hover .avatar {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 嵌套评论头像缩小 */
.comment-list .children .avatar {
    width: 50px;
    height: 50px;
}

.comment-meta {
    flex-grow: 1;
}

.comment-meta .fn {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    text-decoration: none;
    margin-right: 10px;
    display: inline-flex;
    align-items: center;
}

/* 博主评论标记 */
.comment-meta .fn.bypostauthor::after {
    content: "作者";
    font-size: 0.7rem;
    font-weight: normal;
    color: var(--white);
    background-color: var(--primary-color);
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 6px;
}

.comment-meta .fn:hover {
    color: var(--primary-color);
}

.comment-meta .says {
    display: none;
}

.comment-meta .comment-metadata {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.comment-meta .comment-metadata a {
    color: var(--text-secondary);
    text-decoration: none;
}

.comment-meta .comment-metadata a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.comment-content {
    margin-left: 75px;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-color);
    padding: 15px 20px;
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
    position: relative;
}

/* 评论内容左上角装饰 */
.comment-content::before {
    content: '';
    position: absolute;
    top: 20px;
    left: -10px;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 10px solid var(--light-bg);
}

/* 嵌套评论内容区域调整 */
.comment-list .children .comment-content {
    margin-left: 65px;
    background-color: #f8f9fa;
}

.comment-list .children .comment-content::before {
    border-right-color: #f8f9fa;
}

.comment-content p {
    margin: 0 0 15px 0;
}

.comment-content p:last-child {
    margin-bottom: 0;
}

.comment-content a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px solid var(--primary-color-light);
    transition: all 0.3s ease;
}

.comment-content a:hover {
    border-bottom-color: var(--primary-color);
}

.comment-reply-link {
    display: inline-block;
    margin-left: 75px;
    margin-top: 10px;
    padding: 8px 16px;
    background-color: var(--light-bg);
    color: var(--text-color);
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.comment-reply-link:hover {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* 嵌套评论回复链接位置调整 */
.comment-list .children .comment-reply-link {
    margin-left: 65px;
}

/* 评论表单样式美化 */
.comment-form {
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.comment-form label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 8px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: var(--white);
    color: var(--text-color);
    margin-bottom: 20px;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.comment-form textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

.comment-form .form-submit {
    margin: 0;
    text-align: right;
}

.comment-form input[type="submit"] {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.comment-form input[type="submit"]:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

/* 评论分页样式美化 */
.comment-navigation {
    display: flex;
    justify-content: space-between;
    margin: 30px 0;
}

.comment-navigation a {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--white);
    color: var(--text-color);
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.comment-navigation a:hover {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* 猜你喜欢相关文章样式 */
.related-posts {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid var(--border-color);
    background-color: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
}

.related-title {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 5px;
    font-weight: 700;
    position: relative;
    padding-bottom: 12px;
}

.related-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), #6610f2);
    border-radius: 3px;
}

.related-title i {
    margin-right: 10px;
    color: var(--primary-color);
    font-size: 1.3rem;
}

.related-grid {
    padding: 20px 0;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    overflow: hidden;
}

.related-item {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    min-width: 0; /* 确保内容不会溢出 */
    position: relative;
}

.related-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

/* 添加悬停时的发光效果 */
.related-item:hover {
    box-shadow: 0 10px 25px rgba(0, 123, 255, 0.15), 0 0 0 2px rgba(0, 123, 255, 0.1);
}

.related-thumbnail {
    position: relative;
    padding-bottom: 65%;
    overflow: hidden;
    border-bottom: 1px solid #f5f5f5;
}

.related-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, filter 0.4s ease;
}

.related-item:hover .related-thumbnail img {
    transform: scale(1.1);
    filter: brightness(1.05);
}

/* 文章标题与日期的容器 */
.related-content {
    padding: 12px 14px;
}

/* 标题只显示一行 */
.related-post-title {
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0 0 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 600;
}

.related-post-title a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

.related-post-title a:hover {
    color: var(--primary-color);
}

/* 发布时间样式 */
.related-post-date {
    font-size: 0.8rem;
    color: #999;
    display: flex;
    align-items: center;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.related-item:hover .related-post-date {
    opacity: 1;
    color: #666;
}

.related-post-date i {
    margin-right: 5px;
    font-size: 0.75rem;
}

/* 响应式设计 - 调整网格列数 */
@media (max-width: 1200px) {
    .related-grid {
        padding: 20px 0;
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (max-width: 992px) {
    .related-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        overflow: hidden;
    }
    
    .related-title {
        font-size: 1.3rem;
    }
    
    .related-post-title {
        font-size: 0.9rem;
    }
    
    .comments-area {
        padding: 20px;
    }
    
    .post-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-previous, .nav-next {
        min-width: auto;
    }
    
    .comment-author .avatar {
        width: 50px;
        height: 50px;
    }
    
    .comment-content,
    .comment-reply-link {
        margin-left: 65px;
    }
}

/* 手机设备响应式设计 */
@media (max-width: 480px) {
    .nav-previous a, .nav-next a {
        padding: 15px;
    }
    
    .comments-area {
        padding: 15px;
    }
    
    .comments-title {
        font-size: 1.4rem;
    }
    
    .comment-author .avatar {
        width: 40px;
        height: 40px;
    }
    
    .comment-content,
    .comment-reply-link {
        margin-left: 55px;
    }
    
    .comment-form {
        padding: 15px;
    }
    
    /* 相关文章响应式设计 - 手机设备 */
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        overflow: hidden;
    }
    
    .related-title {
        font-size: 1.3rem;
    }
}

/* 社交分享按钮样式 */
.social-share {
    display: flex;
    align-items: center;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin: 2rem 0;
    justify-content: center;
}

.share-title {
    margin-right: 1rem;
    font-size: 1rem;
    color: var(--text-color);
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    border: none;
    background-color: var(--background-color);
    color: var(--text-color);
    font-size: 1.25rem;
    margin-right: 0.75rem;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.share-btn.share-link:hover {
    background-color: #6c757d;
    color: white;
}

.share-btn.share-wechat:hover {
    background-color: #07C160;
    color: white;
}

.share-btn.share-qq:hover {
    background-color: #12B7F5;
    color: white;
}

.share-btn.share-weibo:hover {
    background-color: #E6162D;
    color: white;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .social-share {
        flex-wrap: wrap;
        padding: 1rem 0;
    }
    
    .share-title {
        width: 100%;
        margin-bottom: 0.75rem;
    }
    
    .share-btn {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1rem;
        margin-right: 0.5rem;
        margin-bottom: 0.5rem;
    }
    
    /* 作者信息响应式布局调整 - 优化小屏幕显示 */
    .author-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 15px 10px;
    }
    
    .author-avatar {
        margin: 0 0 15px 0;
    }
    
    .author-avatar img {
        width: 70px;
        height: 70px;
    }
    
    .author-details {
        padding-left: 0;
    }
    
    .author-name {
        font-size: 1.2rem;
        justify-content: center;
    }
    
    .author-meta {
        font-size: 0.85rem;
    }
    
    .author-description {
        font-size: 0.95rem;
    }
}

/* 快递查询页面特定样式 - 通用 */
.courier-description {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    color: #999;
    font-size: 14px;
    margin-top: 15px;
    line-height: 1.6;
}

.courier-history {
    margin: 0 auto;
    margin-top: 10px;
}

.courier-history h3 {
    text-align: center;
    margin-bottom: 10px;
}

#history-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

#history-list p {
    color: #999;
    text-align: center;
    width: 100%;
}

/* 历史记录项样式 */
.history-item {
    display: inline-block;
    padding: 6px 12px;
    background: #f5f5f5;
    border-radius: 16px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
    user-select: none;
}

.history-item:hover {
    background: #e0e0e0;
}

/* 内部版快递查询页面特定样式 */
#courier-info-container {
    background: #fff;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    display: none;
}

#courier-info-container .info-title {
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 10px;
}

#courier-info-content {
    line-height: 1.8;
    color: #333;
}

/* 物流信息样式 */
.courier-info-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.courier-info-header .courier-name {
    font-weight: 600;
    margin-bottom: 10px;
}

.courier-info-header .courier-status {
    color: #666;
}

/* 物流时间线样式 */
.courier-time-line {
    margin-left: 5px;
}

.courier-time-item {
    border-left: 2px solid #eee;
    padding-left: 15px;
    position: relative;
}

.courier-time-item:first-child {
    border-left-color: #007bff;
}

.courier-time-item:first-child .time-dot {
    background-color: #007bff;
}

.courier-time-item:first-child .time-content {
    font-weight: 600;
    color: #007bff;
}

.time-dot {
    position: absolute;
    left: -6px;
    top: 9px;
    width: 10px;
    height: 10px;
    background-color: #eee;
    border-radius: 50%;
}

.time-content {
    margin-bottom: 0px;
}

.time-stamp {
    color: #999;
    font-size: 14px;
}