/* =====================================================================
   Enterprise「翠藤企业门户」— 薄荷绿 × 紫罗兰 设计系统
   参考风格：kaiyun-webglobal（自然清新、藤蔓卡片、大圆角、胶囊导航）
   ===================================================================== */
:root {
    --mint: #ecfdf5;
    --mint-2: #d1fae5;
    --leaf: #a7f3d0;
    --deep: var(--primary, #065f46);
    --deep-2: #064e3b;
    --violet: #a855f7;
    --violet-soft: #f3e8ff;
    --ink: #1f3b2f;
    --muted: #4b6b5c;
    --line: #d9efe4;
    --card: #ffffff;
    --shadow: 0 10px 30px rgba(6, 95, 70, .08);
    --shadow-hover: 0 16px 40px rgba(6, 95, 70, .14);
    --radius: 20px;
    --radius-lg: 26px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.ey-body {
    font-family: "Segoe UI", "Helvetica Neue", Arial, "Microsoft YaHei", "PingFang SC", sans-serif;
    color: var(--ink);
    background: #f6fbf8;
    line-height: 1.7;
    font-size: 16px;
}

a { color: var(--deep); text-decoration: none; }
img { max-width: 100%; display: block; }

.ey-container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.ey-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--muted);
    padding: 48px 20px;
    background: var(--mint);
    border-radius: var(--radius);
}

/* ============ 顶部导航 ============ */
.ey-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.ey-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 68px;
    flex-wrap: wrap;
    padding-top: 8px;
    padding-bottom: 8px;
}
.ey-logo { display: inline-flex; align-items: center; gap: 10px; }
.ey-logo-img { height: 44px; width: auto; border-radius: 10px; }
.ey-logo-badge {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--deep), #0b8f6a);
    color: #fff;
    font-size: 20px;
    flex: none;
}
.ey-logo-text {
    font-size: 19px;
    font-weight: 800;
    color: var(--deep-2);
    display: inline-flex;
    flex-direction: column;
    line-height: 1.25;
}
.ey-logo-text em {
    font-style: normal;
    font-size: 12px;
    font-weight: 500;
    color: var(--violet);
    letter-spacing: .12em;
}
.ey-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.ey-nav-link {
    padding: 8px 14px;
    border-radius: 999px;
    color: var(--ink);
    font-size: 15px;
    transition: background .2s, color .2s;
}
.ey-nav-link:hover { background: var(--mint-2); color: var(--deep-2); }
.ey-nav-link.is-active { background: var(--deep); color: #fff; }
.ey-nav-member { display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; }
.ey-member-name { color: var(--violet); font-size: 14px; padding: 0 4px; }
.ey-member-form { display: inline; }
.ey-member-form button {
    border: 1px solid var(--line);
    background: #fff;
    color: var(--muted);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 13px;
    cursor: pointer;
}
.ey-nav-cta {
    padding: 8px 18px;
    border-radius: 999px;
    background: var(--violet);
    color: #fff;
    font-size: 14px;
    transition: filter .2s;
}
.ey-nav-cta:hover { filter: brightness(1.08); }

/* ============ Hero 大屏 ============ */
.ey-hero {
    padding: 72px 0 56px;
    background:
        radial-gradient(720px 300px at 88% -40px, rgba(168, 85, 247, .16), transparent 60%),
        radial-gradient(900px 380px at 8% 110%, rgba(167, 243, 208, .55), transparent 60%),
        linear-gradient(180deg, var(--mint) 0%, #f6fbf8 100%);
}
.ey-hero-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 999px;
    background: var(--violet-soft);
    color: #7e22ce;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 18px;
}
.ey-hero h1 {
    font-size: clamp(30px, 5vw, 46px);
    font-weight: 900;
    color: var(--deep-2);
    letter-spacing: .02em;
    max-width: 760px;
}
.ey-hero-sub { margin-top: 14px; max-width: 680px; color: var(--muted); font-size: 17px; }
.ey-hero-actions { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.ey-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 11px 26px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .15s, box-shadow .2s, background .2s;
}
.ey-btn.is-primary { background: var(--deep); color: #fff; box-shadow: var(--shadow); }
.ey-btn.is-primary:hover { background: var(--deep-2); transform: translateY(-1px); }
.ey-btn.is-ghost { background: #fff; color: var(--deep-2); border-color: var(--line); }
.ey-btn.is-ghost:hover { border-color: var(--violet); color: var(--violet); }
.ey-hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 40px;
    background: rgba(255, 255, 255, .8);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 22px 26px;
    box-shadow: var(--shadow);
}
.ey-hero-stats div { text-align: center; }
.ey-hero-stats b {
    display: block;
    font-size: 26px;
    font-weight: 900;
    color: var(--deep);
    font-variant-numeric: tabular-nums;
}
.ey-hero-stats span { font-size: 13px; color: var(--muted); }

/* ============ 快捷锚点条 ============ */
.ey-quickbar {
    background: var(--deep);
    position: sticky;
    top: 68px;
    z-index: 40;
}
.ey-quickbar-row { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.ey-quickbar a {
    color: #d7f5e7;
    font-size: 14px;
    padding: 6px 16px;
    border-radius: 999px;
    transition: background .2s, color .2s;
}
.ey-quickbar a:hover { background: rgba(255, 255, 255, .16); color: #fff; }

/* ============ 通用板块 ============ */
.ey-section { padding: 64px 0; }
.ey-section-alt { background: var(--mint); }
.ey-section-head { text-align: center; margin-bottom: 36px; }
.ey-section-head h2 { font-size: 26px; font-weight: 900; color: var(--deep-2); }
.ey-section-head p { color: var(--muted); margin-top: 8px; }

/* ============ 卡片 ============ */
.ey-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform .2s, box-shadow .25s, border-color .2s;
}
.ey-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }

.ey-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.ey-feature-card { display: flex; flex-direction: column; padding: 26px 24px; }
.ey-card-icon {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, var(--deep), #0b8f6a);
    margin-bottom: 14px;
}
.ey-feature-card:nth-child(2n) .ey-card-icon { background: linear-gradient(135deg, var(--violet), #7e22ce); }
.ey-feature-card h3 { font-size: 18px; color: var(--deep-2); }
.ey-feature-card p { color: var(--muted); font-size: 14px; margin-top: 8px; flex: 1; }
.ey-card-more { margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--violet); }

/* ============ 焦点内容 ============ */
.ey-featured {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 20px;
}
.ey-featured-main {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--card);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    transition: transform .2s, box-shadow .25s;
}
.ey-featured-main:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.ey-featured-main img { width: 100%; height: 300px; object-fit: cover; }
.ey-featured-info { padding: 22px 24px; }
.ey-featured-info h3 { font-size: 20px; color: var(--deep-2); margin-top: 10px; }
.ey-featured-info p { color: var(--muted); font-size: 14px; margin-top: 8px; }
.ey-featured-info time { display: block; color: #9db8ac; font-size: 13px; margin-top: 12px; }
.ey-featured-side { display: flex; flex-direction: column; gap: 14px; }
.ey-featured-item {
    display: flex;
    gap: 14px;
    align-items: center;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 12px;
    box-shadow: var(--shadow);
    transition: transform .2s, border-color .2s;
}
.ey-featured-item:hover { transform: translateX(3px); border-color: var(--leaf); }
.ey-featured-item img { width: 88px; height: 64px; object-fit: cover; border-radius: 10px; flex: none; }
.ey-featured-item h4 { font-size: 15px; color: var(--ink); line-height: 1.5; }
.ey-featured-item time { color: #9db8ac; font-size: 12px; }

/* ============ 新闻网格 ============ */
.ey-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.ey-news-card { overflow: hidden; display: flex; flex-direction: column; }
.ey-news-cover img { width: 100%; height: 172px; object-fit: cover; }
.ey-news-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.ey-news-date { font-size: 13px; color: #9db8ac; }
.ey-news-body h3 { margin-top: 6px; font-size: 17px; line-height: 1.55; }
.ey-news-body h3 a { color: var(--ink); }
.ey-news-body h3 a:hover { color: var(--deep); }
.ey-news-body p { color: var(--muted); font-size: 14px; margin-top: 8px; flex: 1; }
.ey-news-body .ey-chip { margin-top: 12px; align-self: flex-start; }

.ey-chip {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 999px;
    background: var(--violet-soft);
    color: #7e22ce;
    font-size: 12px;
    font-weight: 600;
}

/* ============ 页头横幅（栏目/文章/搜索/404） ============ */
.ey-page-hero {
    padding: 46px 0 40px;
    background:
        radial-gradient(620px 240px at 92% -60px, rgba(168, 85, 247, .14), transparent 60%),
        linear-gradient(180deg, var(--mint) 0%, #f6fbf8 100%);
    border-bottom: 1px solid var(--line);
}
.ey-page-hero h1 { font-size: clamp(24px, 4vw, 34px); font-weight: 900; color: var(--deep-2); }
.ey-page-hero p { color: var(--muted); margin-top: 8px; }
.ey-crumb { font-size: 13px; color: #9db8ac; margin-bottom: 12px; }
.ey-crumb a { color: var(--muted); }
.ey-crumb a:hover { color: var(--deep); }

/* ============ 列表页 ============ */
.ey-list { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.ey-list-inner {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 18px;
    padding: 16px;
    align-items: center;
}
.ey-list-item img,
.ey-list-item .ey-cover-fallback {
    width: 100%;
    height: 128px;
    object-fit: cover;
    border-radius: 14px;
}
.ey-list-info h3 { font-size: 17px; color: var(--ink); line-height: 1.55; }
.ey-list-inner:hover h3 { color: var(--deep); }
.ey-list-info p { color: var(--muted); font-size: 14px; margin-top: 6px; }
.ey-list-meta { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.ey-list-meta time { color: #9db8ac; font-size: 13px; }

.ey-cover-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--mint-2), var(--violet-soft));
    color: var(--deep);
    font-weight: 800;
    font-size: 22px;
    letter-spacing: .1em;
}
.ey-cover-sm { width: 88px; height: 64px; font-size: 15px; border-radius: 10px; }

/* ============ 文章页 ============ */
.ey-article-wrap { display: grid; grid-template-columns: 1fr 280px; gap: 20px; align-items: start; }
.ey-article { padding: 30px 34px; }
.ey-article-cover img { border-radius: 14px; margin-bottom: 20px; }
.ey-article-lead {
    background: var(--mint);
    border-left: 4px solid var(--leaf);
    padding: 14px 18px;
    border-radius: 12px;
    color: var(--muted);
    font-size: 15px;
    margin-bottom: 20px;
}
.ey-article-content { font-size: 16px; color: #24403a; word-break: break-word; }
.ey-article-content p { margin: 14px 0; }
.ey-article-content h1, .ey-article-content h2, .ey-article-content h3 { color: var(--deep-2); margin: 26px 0 12px; }
.ey-article-content img { border-radius: 12px; margin: 14px auto; }
.ey-article-content a { color: var(--violet); text-decoration: underline; }
.ey-article-content ul, .ey-article-content ol { padding-left: 24px; margin: 12px 0; }
.ey-article-content blockquote {
    border-left: 4px solid var(--leaf);
    background: var(--mint);
    padding: 12px 18px;
    border-radius: 12px;
    color: var(--muted);
    margin: 14px 0;
}
.ey-article-content table { border-collapse: collapse; width: 100%; margin: 14px 0; }
.ey-article-content th, .ey-article-content td { border: 1px solid var(--line); padding: 8px 12px; font-size: 14px; }
.ey-article-content th { background: var(--mint); }
.ey-article-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ey-neighbor {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px dashed var(--line);
    font-size: 14px;
}
.ey-neighbor a { color: var(--deep); }
.ey-neighbor a:hover { color: var(--violet); }
.ey-neighbor-right { margin-left: auto; text-align: right; }

.ey-related { padding: 22px 24px; }
.ey-related h3 { font-size: 16px; color: var(--deep-2); margin-bottom: 12px; }
.ey-related ul { list-style: none; }
.ey-related li { padding: 9px 0; border-bottom: 1px dashed var(--line); }
.ey-related li:last-child { border-bottom: none; }
.ey-related a { color: var(--ink); font-size: 14px; }
.ey-related a::before { content: "✦ "; color: var(--violet); font-size: 12px; }
.ey-related a:hover { color: var(--deep); }

/* ============ 搜索框 ============ */
.ey-search {
    display: flex;
    gap: 12px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 8px 8px 22px;
    margin-bottom: 26px;
    box-shadow: var(--shadow);
}
.ey-search input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 15px;
    color: var(--ink);
    background: transparent;
}

/* ============ FAQ ============ */
.ey-faq-wrap { max-width: 800px; }
.ey-faq-list { display: flex; flex-direction: column; gap: 14px; }
.ey-faq-item {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 16px 22px;
    box-shadow: var(--shadow);
}
.ey-faq-item summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--deep-2);
    list-style: none;
    position: relative;
    padding-right: 26px;
}
.ey-faq-item summary::-webkit-details-marker { display: none; }
.ey-faq-item summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 0;
    color: var(--violet);
    font-size: 20px;
    font-weight: 700;
    transition: transform .2s;
}
.ey-faq-item[open] summary::after { content: "−"; }
.ey-faq-item p { color: var(--muted); font-size: 15px; margin-top: 10px; }

/* ============ 认证页 ============ */
.ey-auth-wrap { display: flex; justify-content: center; padding: 64px 20px; }
.ey-auth-card { width: 100%; max-width: 420px; padding: 34px 32px; }
.ey-auth-card h2 { color: var(--deep-2); font-size: 22px; }
.ey-auth-sub { color: var(--muted); font-size: 14px; margin-top: 6px; }
.ey-auth-error {
    background: #fde8e8;
    color: #b91c1c;
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 14px;
    margin-top: 14px;
}
.ey-auth-field { margin-top: 16px; }
.ey-auth-field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.ey-auth-field input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 11px 14px;
    font-size: 15px;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}
.ey-auth-field input:focus { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(168, 85, 247, .15); }
.ey-auth-btn { width: 100%; justify-content: center; margin-top: 22px; }
.ey-auth-alt { margin-top: 18px; font-size: 14px; color: var(--muted); text-align: center; }
.ey-auth-alt a { color: var(--violet); font-weight: 600; }

/* ============ 404 ============ */
.ey-404-actions { display: flex; gap: 12px; justify-content: center; }

/* ============ 分页（paginate() 输出） ============ */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
    flex-wrap: wrap;
}
.pagination .page-btn {
    padding: 8px 16px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--line);
    color: var(--ink);
    font-size: 14px;
    transition: background .2s, color .2s;
}
.pagination a.page-btn:hover { background: var(--mint-2); color: var(--deep-2); }
.pagination .page-btn.is-current { background: var(--deep); border-color: var(--deep); color: #fff; }
.pagination .page-btn.is-disabled { opacity: .45; cursor: not-allowed; }
.pagination .page-ellipsis { color: var(--muted); padding: 8px 4px; }

/* ============ 页脚 ============ */
.ey-footer { background: var(--deep-2); color: #cfe9dd; margin-top: 40px; }
.ey-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 32px;
    padding: 48px 20px 36px;
}
.ey-footer-logo { font-size: 18px; font-weight: 800; color: #fff; display: flex; align-items: center; gap: 10px; }
.ey-footer .ey-logo-badge { width: 34px; height: 34px; font-size: 16px; }
.ey-footer-desc { font-size: 14px; color: #9cc6b4; margin-top: 12px; max-width: 420px; }
.ey-footer-contact { list-style: none; margin-top: 14px; font-size: 14px; color: #9cc6b4; }
.ey-footer-contact a { color: #cfe9dd; }
.ey-footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.ey-footer-links { display: flex; flex-direction: column; gap: 9px; }
.ey-footer-links a { color: #9cc6b4; font-size: 14px; transition: color .2s; }
.ey-footer-links a:hover { color: #fff; }
.ey-friend-links { border-top: 1px solid rgba(255, 255, 255, .12); padding: 16px 0; font-size: 13px; }
.ey-friend-links .ey-container { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ey-fl-label { color: #7fae9b; }
.ey-friend-links a { color: #bfe3d2; }
.ey-friend-links a:hover { color: #fff; }
.ey-friend-links em { color: #557f6d; font-style: normal; }
.ey-footer-bar {
    border-top: 1px solid rgba(255, 255, 255, .12);
    text-align: center;
    padding: 16px 20px;
    font-size: 13px;
    color: #7fae9b;
}
.ey-footer-bar a { color: #bfe3d2; }

/* ============ 回顶按钮 ============ */
.ey-totop {
    position: fixed;
    right: 22px;
    bottom: 26px;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: none;
    background: var(--violet);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .25s, transform .25s, visibility .25s;
    box-shadow: var(--shadow-hover);
    z-index: 60;
}
.ey-totop.is-show { opacity: 1; visibility: visible; transform: translateY(0); }

/* ============ 响应式 ============ */
@media (max-width: 900px) {
    .ey-grid-3, .ey-news-grid { grid-template-columns: repeat(2, 1fr); }
    .ey-featured { grid-template-columns: 1fr; }
    .ey-featured-main img { height: 220px; }
    .ey-article-wrap { grid-template-columns: 1fr; }
    .ey-footer-grid { grid-template-columns: 1fr 1fr; }
    .ey-hero-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .ey-grid-3, .ey-news-grid { grid-template-columns: 1fr; }
    .ey-list-inner { grid-template-columns: 1fr; }
    .ey-list-item img, .ey-list-item .ey-cover-fallback { height: 160px; }
    .ey-section { padding: 44px 0; }
    .ey-hero { padding: 48px 0 40px; }
    .ey-quickbar { position: static; }
    .ey-footer-grid { grid-template-columns: 1fr; }
    .ey-article { padding: 22px 18px; }
}
