/* mirror_flow:p6_ai_generated */
/* themes/default/style.css */
/* 梅县日高模切机有限公司 - 主样式表 */

:root {
    --primary: #1a3c6e;
    --primary-light: #2a5298;
    --primary-dark: #0f2447;
    --accent: #d4880f;
    --accent-light: #f0a930;
    --text-dark: #222;
    --text-body: #555;
    --text-light: #888;
    --bg-white: #fff;
    --bg-light: #f5f6f8;
    --bg-gray: #e9eaef;
    --border: #d9dbe0;
    --border-light: #eceef2;
    --shadow-sm: 0 1px 3px rgba(0,0,0,.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,.08);
    --shadow-lg: 0 8px 28px rgba(0,0,0,.1);
    --radius-sm: 4px;
    --radius: 6px;
    --radius-lg: 10px;
    --font-base: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    --transition: 0.2s ease;
    --max-width: 1200px;
    --header-height: 72px;
}

/* Reset */
*,
*::before,
*::after {
    padding: 0;
    margin: 0;
    outline: 0;
    box-sizing: border-box;
    text-decoration: none;
    list-style: none;
}

html {
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-base);
    color: var(--text-body);
    background: var(--bg-white);
    line-height: 1.7;
    min-width: 320px;
}

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

a {
    color: var(--primary);
    transition: color var(--transition);
}

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

h1, h2, h3, h4, h5, h6 {
    color: var(--text-dark);
    font-weight: 600;
    line-height: 1.3;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }

input, textarea, select, button {
    font-family: var(--font-base);
    border: none;
    background: none;
}

button {
    cursor: pointer;
}

/* Container */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-height);
    display: flex;
    align-items: center;
    box-shadow: var(--shadow-sm);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo img {
    height: 44px;
    width: auto;
}

.logo .site-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-dark);
    line-height: 1.2;
}

.logo .site-name small {
    display: block;
    font-size: .7rem;
    font-weight: 400;
    color: var(--text-light);
    letter-spacing: 1px;
}

/* Navigation */
.nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav a {
    display: block;
    padding: 8px 18px;
    color: var(--text-dark);
    font-size: .95rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    white-space: nowrap;
}

.nav a:hover,
.nav a.active {
    background: var(--primary);
    color: #fff;
}

/* Hamburguer Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 28px;
    cursor: pointer;
    padding: 4px 0;
}

.menu-toggle span {
    display: block;
    height: 2px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: all var(--transition);
}

/* Breadcrumb */
.breadcrumb {
    background: var(--bg-light);
    padding: 14px 0;
    font-size: .85rem;
    color: var(--text-light);
    border-bottom: 1px solid var(--border-light);
}

.breadcrumb .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}

.breadcrumb a {
    color: var(--text-light);
}

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

.breadcrumb .sep {
    color: #ccc;
    margin: 0 2px;
}

/* Main Layout */
.main {
    padding: 40px 0 60px;
}

.main .container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
}

.content-area {
    min-width: 0;
}

.sidebar {
    min-width: 0;
}

/* Page Title */
.page-title {
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 22px;
    background: var(--accent);
    border-radius: 2px;
    flex-shrink: 0;
}

/* Article List */
.article-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

.article-item {
    display: flex;
    gap: 20px;
    padding: 18px 0;
    border-bottom: 1px solid var(--border-light);
    transition: background var(--transition);
}

.article-item:hover {
    background: var(--bg-light);
    margin: 0 -12px;
    padding-left: 12px;
    padding-right: 12px;
    border-radius: var(--radius-sm);
}

.article-item .thumb {
    width: 180px;
    height: 130px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-gray);
}

.article-item .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.article-item:hover .thumb img {
    transform: scale(1.05);
}

.article-item .info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.article-item .title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

.article-item .title a {
    color: inherit;
}

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

.article-item .desc {
    font-size: .85rem;
    color: var(--text-light);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 10px;
}

.article-item .meta {
    font-size: .78rem;
    color: #aaa;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.article-item .meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Tags Cloud */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.tag-cloud a {
    display: inline-block;
    padding: 6px 16px;
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    font-size: .85rem;
    color: var(--text-body);
    transition: all var(--transition);
}

.tag-cloud a:hover,
.tag-cloud a.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.tag-cloud a.active {
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(26,60,110,.25);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 36px;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 8px;
    border-radius: var(--radius-sm);
    font-size: .9rem;
    color: var(--text-body);
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    transition: all var(--transition);
}

.pagination a:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.pagination .current {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    font-weight: 600;
}

.pagination .disabled {
    color: #ccc;
    pointer-events: none;
}

/* Sidebar Widgets */
.sidebar .widget {
    margin-bottom: 28px;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    overflow: hidden;
}

.sidebar .widget-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    padding: 14px 18px;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar .widget-title::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 16px;
    background: var(--primary);
    border-radius: 2px;
    flex-shrink: 0;
}

.sidebar .widget-body {
    padding: 14px 18px;
}

.sidebar .widget-body ul li {
    padding: 9px 0;
    border-bottom: 1px dashed var(--border-light);
}

.sidebar .widget-body ul li:last-child {
    border-bottom: none;
}

.sidebar .widget-body ul li a {
    color: var(--text-body);
    font-size: .9rem;
    display: block;
    transition: all var(--transition);
    padding: 2px 0;
}

.sidebar .widget-body ul li a:hover {
    color: var(--primary);
    padding-left: 6px;
}

/* Contact Widget */
.sidebar .contact-info p {
    font-size: .88rem;
    color: var(--text-body);
    padding: 5px 0;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.sidebar .contact-info p .icon {
    color: var(--primary);
    flex-shrink: 0;
}

/* Footer */
.footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,.7);
    padding: 50px 0 0;
    margin-top: 20px;
}

.footer .container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 30px;
}

.footer h4 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 16px;
    font-weight: 600;
}

.footer p,
.footer li {
    font-size: .85rem;
    line-height: 2;
}

.footer a {
    color: rgba(255,255,255,.6);
}

.footer a:hover {
    color: var(--accent-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    margin-top: 36px;
    padding: 16px 0;
    text-align: center;
    font-size: .8rem;
    color: rgba(255,255,255,.45);
}

/* Back to Top */
.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 40px;
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: all var(--transition);
    opacity: 0;
    visibility: hidden;
    z-index: 90;
    border: none;
}

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

.back-to-top:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 1024px) {
    .main .container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .sidebar {
        order: -1;
    }

    .sidebar .widget-body ul {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .sidebar .widget-body ul li {
        padding: 0;
        border: none;
    }

    .sidebar .widget-body ul li a {
        display: inline-block;
        padding: 6px 14px;
        background: var(--bg-light);
        border-radius: 20px;
        font-size: .82rem;
    }

    .footer .container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }

    .menu-toggle {
        display: flex;
    }

    .nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--bg-white);
        flex-direction: column;
        padding: 12px 0;
        border-bottom: 2px solid var(--border);
        box-shadow: var(--shadow-lg);
        transform: translateY(-120%);
        transition: transform .3s ease;
        z-index: 99;
        gap: 2px;
    }

    .nav.open {
        transform: translateY(0);
    }

    .nav a {
        padding: 12px 24px;
        border-radius: 0;
        text-align: center;
    }

    .article-item {
        flex-direction: column;
        gap: 12px;
    }

    .article-item .thumb {
        width: 100%;
        height: 180px;
    }

    .article-item:hover {
        margin: 0 -8px;
        padding-left: 8px;
        padding-right: 8px;
    }

    .page-title {
        font-size: 1.25rem;
    }

    .tag-cloud {
        gap: 6px;
    }

    .tag-cloud a {
        padding: 5px 12px;
        font-size: .8rem;
    }

    .footer .container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .breadcrumb {
        font-size: .78rem;
        padding: 10px 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 14px;
    }

    .article-item .thumb {
        height: 140px;
    }

    .article-item .title {
        font-size: .95rem;
    }

    .pagination a,
    .pagination span {
        min-width: 32px;
        height: 32px;
        font-size: .8rem;
    }

    .back-to-top {
        right: 14px;
        bottom: 24px;
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
}
