/* 基础变量 */
:root {
    --primary-color: #1a1a1a;
    --secondary-color: #ff3e3e;
    --accent-color: #ff6b6b;
    --text-color: #333;
    --light-text: #fff;
    --gray-text: #666666;
    --background-light: #f8f9fa;
    --background-dark: #1a1a1a;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --container-width: 1200px;
    --header-height: 70px;
}

/* 性能优化 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 顶部操作栏 */
.action-bar {
    background: linear-gradient(90deg, var(--secondary-color), #ff6b6b);
    padding: 0.8rem 0;
    color: var(--light-text);
    font-size: 1.1rem;
    font-weight: bold;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.action-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 45%, rgba(255, 255, 255, 0.1) 50%, transparent 55%);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.action-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.action-text {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.action-buttons {
    display: flex;
    gap: 1rem;
}

.btn-action {
    padding: 0.5rem 1rem;
    border-radius: 4px;
    color: var(--light-text);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.2);
}

.btn-action:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* 导航栏优化 */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background-color: var(--light-text);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: var(--transition);
    will-change: transform;
}

.main-nav.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nav-content {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.nav-logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
    will-change: transform;
}

.nav-logo:hover {
    transform: scale(1.05);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.toggle-line {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--primary-color);
    position: relative;
    transition: var(--transition);
}

.toggle-line::before,
.toggle-line::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.toggle-line::before {
    top: -8px;
}

.toggle-line::after {
    bottom: -8px;
}

.nav-toggle.active .toggle-line {
    background-color: transparent;
}

.nav-toggle.active .toggle-line::before {
    transform: rotate(45deg);
    top: 0;
}

.nav-toggle.active .toggle-line::after {
    transform: rotate(-45deg);
    bottom: 0;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-menu ul {
    display: flex;
    gap: 20px;
    list-style: none;
}

.nav-menu a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 5px 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.nav-menu a:hover::after {
    width: 100%;
}

.btn-contact {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--secondary-color);
    color: var(--light-text);
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    will-change: transform;
}

.btn-contact:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
}

/* 主横幅 */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--background-dark));
    color: var(--light-text);
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><rect width="1" height="1" fill="rgba(255,255,255,0.05)"/></svg>');
    opacity: 0.1;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 48px;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
}

.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.feature-icon {
    font-size: 32px;
}

.feature-text {
    font-size: 16px;
    opacity: 0.9;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* 按钮样式 */
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--light-text);
}

.btn-secondary {
    background-color: transparent;
    color: var(--light-text);
    border: 2px solid var(--light-text);
}

.btn-primary:hover {
    background-color: #ff6b6b;
    transform: translateY(-2px);
}

.btn-secondary:hover {
    background-color: var(--light-text);
    color: var(--primary-color);
}

/* 章节标题 */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.section-header p {
    font-size: 18px;
    color: var(--gray-text);
}

/* 服务区域 */
.services {
    padding: 80px 0;
    background-color: var(--light-text);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--background-light);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 40px;
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* 流程区域 */
.process {
    padding: 80px 0;
    background-color: var(--background-light);
}

.process-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--border-color);
    z-index: 1;
}

.process-step {
    position: relative;
    z-index: 2;
    background-color: var(--light-text);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow);
}

.step-number {
    width: 40px;
    height: 40px;
    background-color: var(--secondary-color);
    color: var(--light-text);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-weight: bold;
}

/* 案例展示 */
.cases {
    padding: 80px 0;
    background-color: var(--light-text);
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.case-card {
    background-color: var(--background-light);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.case-card:hover {
    transform: translateY(-5px);
}

.case-content {
    padding: 30px;
}

.case-content h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.case-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    color: var(--gray-text);
}

/* 关于我们 */
.about {
    padding: 80px 0;
    background-color: var(--background-light);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text ul {
    list-style: none;
    margin-top: 20px;
}

.about-text li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.about-text li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item {
    background-color: var(--light-text);
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.stat-number {
    font-size: 36px;
    font-weight: bold;
    color: var(--secondary-color);
    display: block;
    margin-bottom: 10px;
}

/* 联系区域 */
.contact {
    padding: 80px 0;
    background-color: var(--light-text);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info {
    padding: 30px;
    background-color: var(--background-light);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.contact-icon {
    font-size: 24px;
    margin-right: 15px;
}

.contact-details h3 {
    margin-bottom: 5px;
    color: var(--primary-color);
}

.contact-form {
    background-color: var(--background-light);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 16px;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.btn-submit {
    background-color: var(--secondary-color);
    color: var(--light-text);
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-submit:hover {
    background-color: #ff6b6b;
    transform: translateY(-2px);
}

/* 页脚 */
.site-footer {
    background-color: var(--background-dark);
    color: var(--light-text);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: var(--light-text);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .services-grid,
    .cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-timeline {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* 移动端优化 */
@media (max-width: 768px) {
    /* 主导航优化 */
    .main-nav {
        height: 50px;
        padding: 0 10px;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-content {
        height: 50px;
        padding: 0 10px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        max-width: 100%;
    }

    .nav-logo {
        font-size: 18px;
        max-width: 120px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        color: var(--primary-color);
        text-decoration: none;
        font-weight: bold;
    }

    .nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 28px;
        height: 28px;
        padding: 0;
        background: none;
        border: none;
        cursor: pointer;
        transition: var(--transition);
        z-index: 1001;
    }

    .toggle-line {
        width: 22px;
        height: 2px;
        background-color: var(--primary-color);
        position: relative;
        transition: var(--transition);
    }

    .toggle-line::before,
    .toggle-line::after {
        content: '';
        position: absolute;
        width: 100%;
        height: 100%;
        background-color: var(--primary-color);
        transition: var(--transition);
    }

    .toggle-line::before {
        top: -7px;
    }

    .toggle-line::after {
        bottom: -7px;
    }

    .nav-toggle.active .toggle-line {
        background-color: transparent;
    }

    .nav-toggle.active .toggle-line::before {
        transform: rotate(45deg);
        top: 0;
    }

    .nav-toggle.active .toggle-line::after {
        transform: rotate(-45deg);
        bottom: 0;
    }

    .nav-menu {
        position: fixed;
        top: 50px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 50px);
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding: 0;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        z-index: 999;
        display: flex;
        flex-direction: column;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 0;
        padding: 0;
        margin: 0;
        list-style: none;
        width: 100%;
    }

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .nav-menu a {
        display: block;
        padding: 15px 20px;
        font-size: 16px;
        color: var(--text-color);
        text-decoration: none;
        transition: var(--transition);
        position: relative;
    }

    .nav-menu a::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 2px;
        background-color: var(--secondary-color);
        transition: var(--transition);
    }

    .nav-menu a:hover::after {
        width: 100%;
    }

    .nav-menu a:hover {
        background-color: rgba(0, 0, 0, 0.02);
        color: var(--secondary-color);
    }

    .nav-menu .btn-contact {
        margin: 20px;
        width: calc(100% - 40px);
        text-align: center;
        padding: 12px 20px;
        font-size: 16px;
        border-radius: 6px;
        background-color: var(--secondary-color);
        color: var(--light-text);
        text-decoration: none;
        transition: var(--transition);
        order: 1;
    }

    .nav-menu .btn-contact:hover {
        background-color: var(--accent-color);
        transform: translateY(-2px);
    }

    /* 内容区域优化 */
    .hero {
        padding-top: 70px;
    }

    .hero-title {
        font-size: 28px;
        margin-bottom: 15px;
    }

    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .hero-features {
        flex-direction: column;
        gap: 20px;
    }

    .hero-actions {
        flex-direction: column;
        gap: 15px;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
        padding: 12px 20px;
        font-size: 16px;
    }

    /* 服务区域优化 */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-card {
        padding: 20px;
    }

    /* 流程区域优化 */
    .process-timeline {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .process-step {
        padding: 20px;
    }

    /* 案例展示优化 */
    .cases-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .case-card {
        padding: 20px;
    }

    /* 关于我们优化 */
    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* 联系区域优化 */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-info,
    .contact-form {
        padding: 20px;
    }

    /* 页脚优化 */
    .site-footer {
        padding: 30px 0 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-section {
        padding: 0 15px;
    }

    .footer-section h4 {
        font-size: 18px;
        margin-bottom: 15px;
    }

    .footer-section ul {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .footer-section li {
        margin-bottom: 8px;
    }

    .footer-section a {
        font-size: 14px;
    }

    .footer-bottom {
        padding: 15px;
        font-size: 12px;
    }
}

/* 小屏幕优化 */
@media (max-width: 480px) {
    .main-nav {
        height: 45px;
        padding: 0 8px;
    }

    .nav-content {
        height: 45px;
        padding: 0 8px;
    }

    .nav-logo {
        font-size: 16px;
        max-width: 100px;
    }

    .nav-toggle {
        width: 24px;
        height: 24px;
    }

    .toggle-line {
        width: 18px;
    }

    .nav-menu {
        top: 45px;
        height: calc(100vh - 45px);
    }

    .nav-menu a {
        padding: 12px 15px;
        font-size: 15px;
    }

    .nav-menu .btn-contact {
        margin: 15px;
        width: calc(100% - 30px);
        padding: 10px 15px;
        font-size: 15px;
    }

    .hero {
        padding-top: 60px;
    }

    .hero-title {
        font-size: 24px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .footer-section ul {
        grid-template-columns: 1fr;
    }
}

/* 横屏模式优化 */
@media (max-width: 768px) and (orientation: landscape) {
    .nav-menu {
        width: 100%;
        max-width: 100%;
        padding: 0;
        background-color: rgba(255, 255, 255, 0.98);
    }

    .nav-menu ul {
        max-height: 60vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav-menu a {
        padding: 10px 15px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 触摸设备优化 */
@media (hover: none) {
    .nav-toggle {
        -webkit-tap-highlight-color: transparent;
    }

    .nav-menu a {
        -webkit-tap-highlight-color: transparent;
    }

    .nav-menu a:active {
        background-color: rgba(0, 0, 0, 0.05);
    }

    .nav-menu .btn-contact:active {
        background-color: var(--accent-color);
        transform: scale(0.98);
    }

    .footer-section a:active {
        color: var(--secondary-color);
    }
}

/* 打印样式优化 */
@media print {
    .nav-menu,
    .hero-actions,
    .contact-form {
        display: none !important;
    }

    .container {
        max-width: 100%;
        padding: 0;
    }

    .service-card,
    .case-card {
        break-inside: avoid;
        box-shadow: none;
    }
}

/* 友情链接 */
.friend-links {
    background-color: var(--background-light);
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
}

.friend-links .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.links-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.links-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.links-content li {
    margin-bottom: 10px;
}

.links-content a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
    padding: 5px 0;
}

.links-content a:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .friend-links {
        padding: 30px 0;
    }

    .links-content {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .friend-links {
        padding: 20px 0;
    }

    .links-content {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .links-content li {
        margin-bottom: 8px;
    }
}

@media (max-width: 768px) and (orientation: landscape) {
    .links-content {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 导航当前栏目 */
.nav-menu li.nav-active a,
.nav-menu li.z4f682this a {
    color: var(--secondary-color);
}

.nav-menu li.nav-active a::after,
.nav-menu li.z4f682this a::after {
    width: 100%;
}

body.menu-open {
    overflow: hidden;
}

/* 内页通用 */
.page-banner {
    background: linear-gradient(135deg, var(--primary-color), var(--background-dark));
    color: var(--light-text);
    padding: 100px 0 40px;
    margin-top: var(--header-height);
    text-align: center;
}

.page-banner-title {
    font-size: 32px;
    margin-bottom: 12px;
    line-height: 1.3;
}

.breadcrumb {
    font-size: 14px;
    opacity: 0.85;
}

.breadcrumb a {
    color: var(--light-text);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--accent-color);
}

.breadcrumb-sep {
    margin: 0 8px;
    opacity: 0.6;
}

.page-main {
    padding: 50px 0 80px;
    background-color: #f5f5f5;
}

.page-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
    align-items: start;
}

.page-content {
    background: var(--light-text);
    border-radius: 8px;
    padding: 30px;
    box-shadow: var(--shadow);
    min-width: 0;
}

/* 列表页 */
.article-list {
    list-style: none;
}

.article-list-item {
    display: flex;
    gap: 24px;
    padding: 24px 0;
    border-bottom: 1px solid var(--border-color);
}

.article-list-item:last-child {
    border-bottom: none;
}

.article-list-thumb {
    flex-shrink: 0;
    width: 280px;
    display: block;
    border-radius: 6px;
    overflow: hidden;
    background: var(--background-light);
}

.article-list-thumb img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: var(--transition);
}

.article-list-item:hover .article-list-thumb img {
    transform: scale(1.03);
}

.article-list-body {
    flex: 1;
    min-width: 0;
}

.article-list-title {
    font-size: 20px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.article-list-title a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.article-list-title a:hover {
    color: var(--secondary-color);
}

.article-list-meta {
    font-size: 13px;
    color: var(--gray-text);
    margin-bottom: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.article-list-meta a {
    color: var(--secondary-color);
    text-decoration: none;
}

.article-list-intro {
    color: var(--gray-text);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 12px;
}

.article-list-more {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.article-list-more:hover {
    text-decoration: underline;
}

/* 分页：左(首页/上一页) 中(页码) 右(下一页/末页) */
.pagebar {
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.pagebar .pagelist,
.zzpages .pagelist {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.pagebar .pagelist > li,
.zzpages .pagelist > li {
    list-style: none;
    display: inline-block;
}

.pagebar .pagelist .pageinfo,
.zzpages .pagelist .pageinfo {
    width: 100%;
    text-align: center;
    font-size: 13px;
    color: var(--gray-text);
    margin-bottom: 6px;
}

.pagebar .pagelist a,
.pagebar .pagelist span,
.zzpages .pagelist a,
.zzpages .pagelist span {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    text-decoration: none;
    color: var(--text-color);
    font-size: 14px;
    transition: var(--transition);
    background: var(--light-text);
}

.pagebar .pagelist a:hover,
.pagebar .pagelist .thisclass a,
.zzpages .pagelist a:hover,
.zzpages .pagelist .thisclass a {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--light-text);
}

/* 末页、下一页靠右 */
.pagebar .pagelist .end,
.pagebar .pagelist .next,
.zzpages .pagelist .end,
.zzpages .pagelist .next {
    margin-left: 4px;
}

.pagebar .pagelist .end,
.zzpages .pagelist .end {
    display: inline-block !important;
    visibility: visible !important;
}

/* 内容页 */
.article-detail {
    max-width: 100%;
}

.article-header {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.article-title {
    font-size: 28px;
    color: var(--primary-color);
    line-height: 1.35;
    margin-bottom: 16px;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 14px;
    color: var(--gray-text);
}

.article-meta a {
    color: var(--secondary-color);
    text-decoration: none;
}

.article-litpic {
    margin-top: 20px;
    text-align: center;
}

.article-litpic img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.article-body {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-color);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.article-body img {
    max-width: 100%;
    height: auto;
}

.article-gallery-item {
    margin-top: 20px;
}

.article-gallery-item img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

.z4f682meta-tags {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 30px 0 0;
    padding: 20px 0 0;
    border-top: 1px solid var(--border-color);
}

.z4f682tagitem a {
    display: inline-block;
    padding: 6px 14px;
    background: var(--background-light);
    border-radius: 20px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 13px;
    transition: var(--transition);
}

.z4f682tagitem a:hover {
    background: var(--secondary-color);
    color: var(--light-text);
}

.article-prenext {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    font-size: 14px;
    line-height: 1.6;
}

.prenext-item {
    flex: 1;
    min-width: 0;
}

.prenext-prev {
    text-align: left;
}

.prenext-next {
    text-align: right;
}

.article-prenext a {
    color: var(--secondary-color);
    text-decoration: none;
}

.article-prenext a:hover {
    text-decoration: underline;
}

.related-articles {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid var(--border-color);
}

.related-title {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.related-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.related-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: var(--background-light);
    border-radius: 8px;
    transition: var(--transition);
}

.related-item:hover {
    box-shadow: var(--shadow);
}

.related-thumb {
    flex-shrink: 0;
    width: 120px;
    display: block;
    border-radius: 6px;
    overflow: hidden;
}

.related-thumb img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.related-body h4 {
    font-size: 16px;
    margin-bottom: 8px;
}

.related-body h4 a {
    color: var(--primary-color);
    text-decoration: none;
}

.related-body h4 a:hover {
    color: var(--secondary-color);
}

.related-body p {
    font-size: 13px;
    color: var(--gray-text);
    line-height: 1.6;
}

/* 侧栏 */
.page-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-block {
    background: var(--light-text);
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--shadow);
}

.sidebar-title {
    font-size: 18px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--secondary-color);
}

.sidebar-title a {
    color: var(--primary-color);
    text-decoration: none;
}

.sidebar-title a:hover {
    color: var(--secondary-color);
}

.sidebar-list {
    list-style: none;
}

.sidebar-item-wrap {
    border-bottom: 1px solid var(--border-color);
}

.sidebar-item-wrap:last-child {
    border-bottom: none;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    text-decoration: none;
    transition: var(--transition);
}

.sidebar-item:hover {
    background: rgba(255, 62, 62, 0.04);
}

.sidebar-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    overflow: hidden;
    border-radius: 4px;
    background: var(--background-light);
}

.sidebar-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sidebar-item-title {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    color: var(--primary-color);
    line-height: 1.45;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.sidebar-item:hover .sidebar-item-title {
    color: var(--secondary-color);
}

/* 首页常见问题 */
.faq {
    padding: 80px 0;
    background-color: var(--light-text);
}

.faq-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.faq-item {
    background: var(--background-light);
    padding: 28px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.faq-item:hover {
    transform: translateY(-3px);
}

.faq-item h3 {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.faq-item p {
    color: var(--gray-text);
    font-size: 15px;
    line-height: 1.7;
}

/* 首页文章板块 5列×2行 */
.home-articles {
    padding: 80px 0;
    background-color: var(--background-light);
}

.home-articles-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.home-article-card {
    background: var(--light-text);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.home-article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.home-article-thumb {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #eee;
}

.home-article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.home-article-card:hover .home-article-thumb img {
    transform: scale(1.05);
}

.home-article-info {
    padding: 14px;
}

.home-article-title {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 8px;
    height: 2.8em;
    overflow: hidden;
}

.home-article-title a {
    color: var(--primary-color);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-article-title a:hover {
    color: var(--secondary-color);
}

.home-article-date {
    font-size: 12px;
    color: var(--gray-text);
}

/* 首页文章区不显示正文/摘要 */
.home-articles .home-article-desc,
.home-articles .home-article-intro,
.home-articles .home-article-body,
.home-articles p:not(.home-article-info p) {
    display: none !important;
}

.home-articles .home-article-info p {
    display: none !important;
}

.home-articles-more {
    text-align: center;
    margin-top: 40px;
}

.clear {
    clear: both;
}

/* 内页与文章板块响应式 */
@media (max-width: 1200px) {
    .home-articles-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1024px) {
    .page-layout {
        grid-template-columns: 1fr 280px;
        gap: 24px;
    }

    .article-list-thumb {
        width: 220px;
    }

    .home-articles-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .page-banner {
        padding: 80px 15px 30px;
        margin-top: 50px;
    }

    .page-banner-title {
        font-size: 22px;
    }

    .page-main {
        padding: 30px 0 50px;
    }

    .page-layout {
        grid-template-columns: 1fr;
    }

    .page-sidebar {
        order: 2;
    }

    .page-content {
        padding: 20px 16px;
    }

    .article-list-item {
        flex-direction: column;
        gap: 14px;
        padding: 20px 0;
    }

    .article-list-thumb {
        width: 100%;
    }

    .article-title {
        font-size: 22px;
    }

    .article-prenext {
        flex-direction: column;
        gap: 12px;
    }

    .prenext-next {
        text-align: left;
    }

    .related-item {
        flex-direction: column;
    }

    .related-thumb {
        width: 100%;
    }

    .pagebar .pagelist,
    .zzpages .pagelist {
        gap: 6px;
    }

    .pagebar .pagelist a,
    .zzpages .pagelist a {
        padding: 6px 10px;
        font-size: 13px;
    }

    .home-articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .faq-list {
        grid-template-columns: 1fr;
    }

    .sidebar-item-title {
        -webkit-line-clamp: 2;
    }
}

@media (max-width: 480px) {
    .home-articles-grid {
        grid-template-columns: 1fr;
    }

    .home-article-title {
        height: auto;
    }

    .page-banner-title {
        font-size: 18px;
    }

    .breadcrumb {
        font-size: 12px;
    }
}



