/*
Theme Name: IP Consulting Services Guide
Theme URI: https://ipconsultingservices.guru
Description: A minimalist bento-grid magazine theme for IP protection, patent filing tools, trademark monitoring and corporate legal software.
Author: IP Consulting Services Guide
Style ID: a00302
Version: 1.0.0
Text Domain: ip-consulting-servic
License: GNU General Public License v2 or later
*/

:root {
    --bg: #f8f6f7;
    --bg-alt: #efebed;
    --bg-deep: #e5e0e3;
    --text: #261d22;
    --text-muted: #7b6b74;
    --accent: #a82e73;
    --border: #e4dde1;
    --radius-lg: 22px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --font-head: "Helvetica Neue", Helvetica, Arial, sans-serif;
    --font-body: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body.a00302 {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

.a00302 a { color: var(--accent); text-decoration: none; }
.a00302 a:hover { text-decoration: underline; }
.a00302 img { max-width: 100%; height: auto; display: block; }
.a00302 h1, .a00302 h2, .a00302 h3, .a00302 h4 {
    font-family: var(--font-head);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: var(--text);
}

.a00302 .a00302-wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ===== Header 杂志型 ===== */
.a00302 .a00302-header { padding: 28px 0 0; }
.a00302 .a00302-header-top { text-align: center; margin-bottom: 18px; }
.a00302 .a00302-logo {
    font-family: var(--font-head);
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
    display: block;
    line-height: 1.1;
}
.a00302 .a00302-logo:hover { text-decoration: none; }
.a00302 .a00302-tagline { color: var(--text-muted); font-size: 14px; margin-top: 4px; }
.a00302 .a00302-date { color: var(--text-muted); font-size: 13px; margin-top: 6px; text-transform: uppercase; letter-spacing: 0.06em; }

.a00302 .a00302-navbar {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg);
}
.a00302 .a00302-navbar-inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.a00302 .a00302-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.a00302 .a00302-menu li { margin: 0; }
.a00302 .a00302-menu a {
    display: inline-block;
    padding: 14px 14px;
    color: var(--text);
    font-size: 15px;
    font-weight: 500;
}
.a00302 .a00302-menu a:hover { color: var(--accent); text-decoration: none; }
.a00302 .a00302-search { position: relative; }
.a00302 .a00302-search input[type="search"] {
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 14px;
    font-family: var(--font-body);
    color: var(--text);
    width: 180px;
    outline: none;
}
.a00302 .a00302-search input[type="search"]:focus { border-color: var(--accent); }
.a00302 .a00302-search button {
    position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
    background: none; border: none; cursor: pointer; color: var(--text-muted); padding: 0;
}

/* ===== 主内容 ===== */
.a00302 .a00302-main { padding: 40px 0 64px; }

/* ===== 文章卡片（样式 B：无阴影纯扁平，图片大圆角） ===== */
.a00302 .a00302-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.a00302 .a00302-card-media { display: block; overflow: hidden; }
.a00302 .a00302-card-media img {
    width: 100%;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    transition: transform .4s ease;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}
.a00302 .a00302-card:hover .a00302-card-media img { transform: scale(1.04); }
.a00302 .a00302-card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.a00302 .a00302-card-meta { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); }
.a00302 .a00302-badge {
    background: var(--bg-deep);
    color: var(--accent);
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 999px;
}
.a00302 .a00302-dot { opacity: .5; }
.a00302 .a00302-card-title { font-size: 21px; margin: 0; line-height: 1.3; }
.a00302 .a00302-card-title a { color: var(--text); }
.a00302 .a00302-card-title a:hover { color: var(--accent); text-decoration: none; }
.a00302 .a00302-card-excerpt { color: var(--text-muted); font-size: 15px; margin: 0; }
.a00302 .a00302-card-foot { margin-top: auto; }
.a00302 .a00302-readtime { font-size: 13px; color: var(--text-muted); }

/* ===== 元数据（作者头像 + 名字 + 日期 + 阅读时长） ===== */
.a00302 .a00302-meta { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--text-muted); flex-wrap: wrap; }
.a00302 .a00302-meta-avatar {
    width: 30px; height: 30px;
    border-radius: 50%;
    object-fit: cover;
}
.a00302 .a00302-meta-author { color: var(--text); font-weight: 600; }
.a00302 .a00302-meta-sep { opacity: .5; }

/* ===== 归档/列表 ===== */
.a00302 .a00302-archive-title { font-size: 32px; margin: 0 0 8px; }
.a00302 .a00302-archive-desc { color: var(--text-muted); font-size: 16px; margin: 0 0 32px; }
.a00302 .a00302-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

/* ===== 单篇 ===== */
.a00302 .a00302-single { max-width: 760px; margin: 0 auto; }
.a00302 .a00302-single-hero { margin-bottom: 24px; }
.a00302 .a00302-single-hero img { border-radius: var(--radius-lg); width: 100%; }
.a00302 .a00302-single .a00302-meta { margin-bottom: 12px; }
.a00302 .a00302-single h1.a00302-single-title { font-size: 40px; margin: 0 0 20px; line-height: 1.2; }
.a00302 .a00302-single-content { font-size: 18px; line-height: 1.8; }
.a00302 .a00302-single-content p { margin: 0 0 1.4em; }
.a00302 .a00302-single-content h2 { font-size: 26px; margin: 1.8em 0 .7em; }
.a00302 .a00302-single-content h3 { font-size: 21px; margin: 1.6em 0 .6em; }
.a00302 .a00302-single-content ul, .a00302 .a00302-single-content ol { margin: 0 0 1.4em; padding-left: 1.4em; }
.a00302 .a00302-single-content li { margin: 0 0 .4em; }
.a00302 .a00302-single-content blockquote {
    border-left: 4px solid var(--accent);
    margin: 1.6em 0;
    padding: 4px 0 4px 20px;
    color: var(--text-muted);
    font-size: 20px;
}
.a00302 .a00302-tags { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 14px; color: var(--text-muted); }
.a00302 .a00302-tags a { color: var(--accent); margin-left: 8px; }

/* ===== 页面 ===== */
.a00302 .a00302-page { max-width: 760px; margin: 0 auto; }
.a00302 .a00302-page h1 { font-size: 36px; margin: 0 0 20px; }

/* ===== 404 ===== */
.a00302 .a00302-404 { text-align: center; padding: 80px 0; }
.a00302 .a00302-404 h1 { font-size: 64px; margin: 0 0 12px; }
.a00302 .a00302-404 p { color: var(--text-muted); margin: 0 0 24px; }

/* ===== Footer 4 列 ===== */
.a00302 .a00302-footer {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    padding: 48px 0 0;
}
.a00302 .a00302-footer-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px;
    padding-bottom: 40px;
}
.a00302 .a00302-footer h3 { font-size: 15px; margin: 0 0 16px; color: var(--text); }
.a00302 .a00302-footer ul { list-style: none; margin: 0; padding: 0; }
.a00302 .a00302-footer li { margin: 0 0 10px; }
.a00302 .a00302-footer a { color: var(--text-muted); font-size: 14px; }
.a00302 .a00302-footer a:hover { color: var(--accent); }
.a00302 .a00302-footer-about { color: var(--text-muted); font-size: 14px; line-height: 1.7; }
.a00302 .a00302-footer-bottom {
    border-top: 1px solid var(--border);
    padding: 18px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-muted);
    flex-wrap: wrap;
    gap: 8px;
}
.a00302 .a00302-footer-bottom a { color: var(--text-muted); }

/* ===== 分页 ===== */
.a00302 .a00302-pagination { margin-top: 48px; display: flex; gap: 10px; justify-content: center; }
.a00302 .a00302-pagination .page-numbers {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 40px; height: 40px; padding: 0 12px;
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    background: #fff; color: var(--text); font-size: 14px;
}
.a00302 .a00302-pagination .page-numbers.current { background: var(--accent); border-color: var(--accent); color: #fff; }
.a00302 .a00302-pagination .page-numbers:hover { text-decoration: none; border-color: var(--accent); color: var(--accent); }

/* ===== 响应式 ===== */
@media (max-width: 900px) {
    .a00302 .a00302-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    body.a00302 { font-size: 16px; }
    .a00302 .a00302-grid { grid-template-columns: 1fr; }
    .a00302 .a00302-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .a00302 .a00302-navbar-inner { flex-direction: column; align-items: stretch; padding: 0 16px; }
    .a00302 .a00302-menu { justify-content: center; }
    .a00302 .a00302-search input[type="search"] { width: 100%; }
    .a00302 .a00302-single h1.a00302-single-title { font-size: 30px; }
    .a00302 .a00302-logo { font-size: 24px; }
}
