/* 全局样式 */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    max-width: 100%;
    word-wrap: break-word;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

.nav a:hover {
    color: var(--secondary-color);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--primary-color);
    margin: 5px 0;
    transition: 0.3s;
}

/* 英雄区域样式 */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 50px;
    position: relative;
    z-index: 2;
}

.hero-text {
    flex: 1;
    max-width: 600px;
}

.hero h2 {
    font-size: 48px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-features {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.hero-features span {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 16px;
    backdrop-filter: blur(5px);
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 36px;
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

.stat-text {
    font-size: 14px;
    opacity: 0.8;
}

.hero-image {
    flex: 1;
    position: relative;
    max-width: 500px;
}

.hero-img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.3s ease;
}

.hero-img:hover {
    transform: perspective(1000px) rotateY(0deg);
}

/* 服务区域样式 */
.service-section {
    padding: 80px 0;
}

.service-section.bg-light {
    background: var(--light-bg);
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: var(--primary-color);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon {
    font-size: 40px;
    margin-bottom: 20px;
}

.service-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.service-content.reverse {
    flex-direction: row-reverse;
}

.service-text {
    flex: 1;
}

.service-image {
    flex: 1;
    position: relative;
    max-width: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.service-img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.service-img:hover {
    transform: scale(1.02);
}

.feature-list {
    list-style: none;
    margin-top: 20px;
}

.feature-list li {
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
}

.feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
}

/* 页脚样式 */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 80px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-contact li {
    margin-bottom: 10px;
    opacity: 0.8;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
}

.footer-info {
    margin-bottom: 20px;
}

.footer-copyright {
    opacity: 0.6;
    font-size: 14px;
}

/* 响应式设计优化 */
@media (max-width: 1024px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .hero-text {
        max-width: 100%;
    }

    .hero-features {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-image {
        max-width: 80%;
        margin: 0 auto;
    }

    .service-content {
        flex-direction: column;
        gap: 30px;
    }

    .service-content.reverse {
        flex-direction: column;
    }

    .service-image {
        max-width: 80%;
        margin: 0 auto;
    }

    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-content {
        height: 70px;
    }

    .logo {
        font-size: 20px;
    }

    .hero {
        padding: 90px 0 50px;
    }

    .hero h2 {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-features span {
        font-size: 14px;
        padding: 8px 16px;
    }

    .stat-number {
        font-size: 28px;
    }

    .section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .service-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-card {
        padding: 20px;
    }

    .service-icon {
        font-size: 32px;
    }

    .service-highlights {
        justify-content: center;
    }

    .highlight-item {
        padding: 10px 16px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-section {
        text-align: center;
    }

    .footer-links {
        display: inline-block;
        text-align: left;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 80px 0 40px;
    }

    .hero h2 {
        font-size: 24px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .hero-features {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 15px;
    }

    .stat-number {
        font-size: 24px;
    }

    .hero-image {
        max-width: 100%;
    }

    .service-image {
        max-width: 100%;
    }

    .service-img {
        max-width: 100%;
    }

    .feature-list li {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .highlight-item {
        font-size: 14px;
        padding: 8px 12px;
    }

    .footer {
        padding: 40px 0 20px;
    }

    .footer-section h3 {
        font-size: 18px;
    }

    .footer-copyright {
        font-size: 12px;
    }
}

/* 导航菜单响应式优化 */
@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--white);
        padding: 20px;
        box-shadow: var(--shadow);
        transform: translateX(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        overflow-y: auto;
        z-index: 999;
    }
    
    .nav.active {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav ul {
        flex-direction: column;
        gap: 0;
        padding: 0;
    }
    
    .nav li {
        width: 100%;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    .nav a {
        display: block;
        padding: 15px 20px;
        font-size: 16px;
        color: var(--text-color);
        text-align: left;
        transition: all 0.3s ease;
    }
    
    .nav a:hover {
        background: rgba(52, 152, 219, 0.1);
        color: var(--secondary-color);
    }
    
    .mobile-menu-btn {
        display: block;
        z-index: 1001;
        padding: 10px;
        background: none;
        border: none;
        cursor: pointer;
    }
    
    .mobile-menu-btn span {
        display: block;
        width: 25px;
        height: 2px;
        background: var(--primary-color);
        margin: 5px 0;
        transition: all 0.3s ease;
    }
    
    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    /* 当菜单打开时禁止背景滚动 */
    body.menu-open {
        overflow: hidden;
    }
}

/* 添加遮罩层 */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-overlay.active {
    display: block;
    opacity: 1;
}

/* 优化移动端导航按钮 */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }
}

/* 图片响应式优化 */
.service-img, .hero-img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-img:hover, .hero-img:hover {
    transform: scale(1.02);
}

/* 确保内容在移动端不会溢出 */
* {
    max-width: 100%;
    word-wrap: break-word;
}

/* 优化按钮和交互元素在移动端的触摸区域 */
button, 
a, 
.highlight-item,
.service-card {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) {
    button:hover, 
    a:hover, 
    .highlight-item:hover,
    .service-card:hover {
        opacity: 0.9;
    }
}

.service-highlights {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(52, 152, 219, 0.1);
    padding: 12px 20px;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.highlight-item:hover {
    transform: translateY(-3px);
}

.highlight-icon {
    font-size: 24px;
}

.highlight-text {
    font-weight: 500;
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .service-highlights {
        justify-content: center;
    }
    
    .highlight-item {
        padding: 10px 16px;
    }
}

/* 导航当前栏目样式 */
.nav a.z38872this,
.nav li.z38872this > a,
.nav li[class*="z38872this"] > a {
    color: var(--secondary-color);
    font-weight: 600;
}

.logo a {
    text-decoration: none;
    color: inherit;
}

/* 页面布局 */
.page-wrapper {
    padding: 100px 0 60px;
    min-height: 60vh;
}

.page-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.main-content {
    flex: 1;
    min-width: 0;
}

.sidebar {
    width: 300px;
    flex-shrink: 0;
}

.page-breadcrumb {
    padding: 15px 0;
    font-size: 14px;
    color: #666;
}

.page-breadcrumb a {
    color: var(--secondary-color);
    text-decoration: none;
}

.breadcrumb-sep {
    margin: 0 8px;
    color: #999;
}

/* 首页文章板块 - 一行5条，共两行 */
.article-grid-home {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.article-card {
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.3s;
}

.article-card:hover {
    transform: translateY(-5px);
}

.article-card-thumb {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: var(--light-bg);
}

.article-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.article-card:hover .article-card-thumb img {
    transform: scale(1.05);
}

.article-card-body {
    padding: 15px;
}

.article-card-title {
    font-size: 15px;
    margin-bottom: 8px;
    line-height: 1.4;
}

.article-card-title a {
    color: var(--primary-color);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card-title a:hover {
    color: var(--secondary-color);
}

.article-card-desc {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card-date {
    font-size: 12px;
    color: #999;
}

/* 列表页 */
.list-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--secondary-color);
}

.list-title {
    font-size: 28px;
    color: var(--primary-color);
}

.article-list {
    list-style: none;
}

.article-list-item {
    display: flex;
    gap: 20px;
    padding: 25px 0;
    border-bottom: 1px solid #eee;
}

.article-list-item:first-child {
    padding-top: 0;
}

.list-thumb {
    flex-shrink: 0;
    width: 240px;
    display: block;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 3 / 2;
    background: var(--light-bg);
}

.list-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.list-thumb:hover img {
    transform: scale(1.05);
}

.list-content {
    flex: 1;
    min-width: 0;
}

.list-item-title {
    font-size: 20px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.list-item-title a {
    color: var(--primary-color);
    text-decoration: none;
}

.list-item-title a:hover {
    color: var(--secondary-color);
}

.list-meta {
    font-size: 13px;
    color: #888;
    margin-bottom: 10px;
}

.list-meta .meta-item {
    margin-right: 15px;
}

.list-meta a {
    color: var(--secondary-color);
    text-decoration: none;
}

.list-intro {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
}

/* 分页 - 左右显示 */
.pagebar {
    margin-top: 30px;
    padding-top: 20px;
}

.pagebar-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.pagebar-flex .page-left {
    flex: 0 0 auto;
}

.pagebar-flex .page-center {
    flex: 1;
    text-align: center;
}

.pagebar-flex .page-right {
    flex: 0 0 auto;
    text-align: right;
}

.pagebar-flex ul {
    display: inline-flex;
    list-style: none;
    gap: 5px;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
    justify-content: center;
}

.pagebar-flex a,
.pagebar-flex span {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: var(--text-color);
    font-size: 14px;
    transition: all 0.3s;
}

.pagebar-flex a:hover {
    background: var(--secondary-color);
    color: var(--white);
    border-color: var(--secondary-color);
}

/* 内容页 */
.article-detail {
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 30px;
}

.article-header {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.article-title {
    font-size: 32px;
    color: var(--primary-color);
    line-height: 1.4;
    margin-bottom: 15px;
}

.article-meta {
    font-size: 14px;
    color: #888;
}

.article-meta .meta-item {
    margin-right: 20px;
}

.article-meta a {
    color: var(--secondary-color);
    text-decoration: none;
}

.article-thumb-main {
    margin-bottom: 25px;
    text-align: center;
}

.article-thumb-main img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.article-body {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 30px;
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 10px 0;
}

.article-body p {
    margin-bottom: 15px;
}

.article-images {
    margin-bottom: 25px;
}

.article-figure {
    margin-bottom: 20px;
    text-align: center;
}

.article-figure img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.article-figure figcaption {
    font-size: 14px;
    color: #666;
    margin-top: 8px;
}

.z38872meta-tags {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    padding: 15px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.z38872tagitem a {
    display: inline-block;
    padding: 5px 12px;
    background: var(--light-bg);
    border-radius: 15px;
    font-size: 13px;
    color: var(--secondary-color);
    text-decoration: none;
    transition: background 0.3s;
}

.z38872tagitem a:hover {
    background: rgba(52, 152, 219, 0.2);
}

.article-nav-links {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px 0;
    border-top: 1px solid #eee;
}

.article-nav-prev,
.article-nav-next {
    flex: 1;
    min-width: 0;
}

.article-nav-next {
    text-align: right;
}

.nav-label {
    display: block;
    font-size: 13px;
    color: #999;
    margin-bottom: 5px;
}

.article-nav-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
}

.article-nav-links a:hover {
    color: var(--secondary-color);
}

.related-articles {
    margin-top: 20px;
}

.related-title {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary-color);
}

.related-list {
    list-style: none;
}

.related-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.related-thumb {
    flex-shrink: 0;
    width: 120px;
    display: block;
    overflow: hidden;
    border-radius: 6px;
    aspect-ratio: 3 / 2;
    background: var(--light-bg);
}

.related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-info {
    flex: 1;
    min-width: 0;
}

.related-link {
    font-size: 16px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.related-link:hover {
    color: var(--secondary-color);
}

.related-info p {
    font-size: 13px;
    color: #666;
    margin-top: 8px;
    line-height: 1.6;
}

.z38872diyfield {
    margin-bottom: 20px;
}

.clear {
    clear: both;
}

/* 侧栏 */
.sidebar-block {
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 25px;
    overflow: hidden;
}

.sidebar-title {
    font-size: 16px;
    padding: 15px 18px;
    background: var(--primary-color);
    color: var(--white);
    margin: 0;
}

.sidebar-title a {
    color: var(--white);
    text-decoration: none;
}

.sidebar-list {
    list-style: none;
    padding: 10px 0;
    max-height: 600px;
    overflow-y: auto;
}

.sidebar-item {
    border-bottom: 1px solid #f5f5f5;
}

.sidebar-item:last-child {
    border-bottom: none;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    text-decoration: none;
    transition: background 0.3s;
}

.sidebar-link:hover {
    background: var(--light-bg);
}

.sidebar-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    overflow: hidden;
    border-radius: 4px;
    background: var(--light-bg);
}

.sidebar-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-text {
    flex: 1;
    font-size: 13px;
    color: var(--text-color);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sidebar-link:hover .sidebar-text {
    color: var(--secondary-color);
}

/* 文章页/列表页响应式 */
@media (max-width: 1024px) {
    .article-grid-home {
        grid-template-columns: repeat(3, 1fr);
    }

    .sidebar {
        width: 260px;
    }
}

@media (max-width: 768px) {
    .page-wrapper {
        padding: 85px 0 40px;
    }

    .page-layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }

    .article-grid-home {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .article-detail {
        padding: 20px 15px;
    }

    .article-title {
        font-size: 24px;
    }

    .article-list-item {
        flex-direction: column;
        gap: 12px;
    }

    .list-thumb {
        width: 100%;
    }

    .list-item-title {
        font-size: 18px;
    }

    .article-nav-links {
        flex-direction: column;
    }

    .article-nav-next {
        text-align: left;
    }

    .related-item {
        flex-direction: column;
    }

    .related-thumb {
        width: 100%;
        aspect-ratio: 16 / 9;
    }

    .pagebar-flex {
        flex-direction: column;
        align-items: stretch;
    }

    .pagebar-flex .page-left,
    .pagebar-flex .page-center,
    .pagebar-flex .page-right {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .article-grid-home {
        grid-template-columns: 1fr;
    }

    .article-card-body {
        padding: 12px;
    }

    .article-title {
        font-size: 20px;
    }

    .list-title {
        font-size: 22px;
    }

    .sidebar-list {
        max-height: none;
    }
} 