:root {
    color-scheme: dark;
    --bg: #090a0a;
    --bg-soft: #111210;
    --surface: rgba(243, 240, 233, 0.045);
    --surface-strong: rgba(243, 240, 233, 0.078);
    --line: rgba(243, 240, 233, 0.14);
    --line-soft: rgba(243, 240, 233, 0.08);
    --text: #f3f0e9;
    --text-muted: #b9b5ad;
    --text-soft: #8b8a8d;
    --signal: #b8f36a;
    --primary: #b8f36a;
    --primary-strong: #9fe747;
    --amber: #d7d2c8;
    --violet: #8b8a8d;
    --blue: #b8f36a;
    --pink: #b8f36a;
    --radius: 8px;
    --content: 1320px;
    --shadow: 0 18px 60px rgba(0, 0, 0, 0.34);
    --body-bg: linear-gradient(115deg, rgba(9, 10, 10, 0.99) 0%, rgba(15, 17, 16, 0.97) 54%, rgba(9, 10, 10, 0.99) 100%);
    --grid-line-a: rgba(243, 240, 233, 0.028);
    --grid-line-b: rgba(243, 240, 233, 0.018);
    --grid-mask: linear-gradient(to bottom, rgba(0, 0, 0, 0.52), transparent 72%);
    --nav-bg: rgba(9, 10, 10, 0.76);
    --control-bg: rgba(243, 240, 233, 0.05);
    --canvas-opacity: 0.24;
    --media-bg: #111210;
    --image-filter: saturate(0.84) contrast(1.02);
    --image-hover-filter: saturate(0.92) contrast(1.04);
    --image-overlay: linear-gradient(to bottom, rgba(243, 240, 233, 0.04), rgba(9, 10, 10, 0.12));
    --article-text: #d3cec5;
}

html[data-theme="light"] {
    color-scheme: light;
    --bg: #f3f0e9;
    --bg-soft: #e9e4da;
    --surface: rgba(9, 10, 10, 0.045);
    --surface-strong: rgba(9, 10, 10, 0.075);
    --line: rgba(9, 10, 10, 0.16);
    --line-soft: rgba(9, 10, 10, 0.09);
    --text: #090a0a;
    --text-muted: #5d625d;
    --text-soft: #8b8a8d;
    --signal: #b8f36a;
    --primary: #5f9f19;
    --primary-strong: #477c11;
    --amber: #716d64;
    --violet: #8b8a8d;
    --blue: #5f9f19;
    --pink: #5f9f19;
    --shadow: 0 18px 55px rgba(32, 28, 22, 0.13);
    --body-bg: linear-gradient(115deg, rgba(243, 240, 233, 0.99) 0%, rgba(233, 228, 218, 0.96) 52%, rgba(248, 245, 239, 0.99) 100%);
    --grid-line-a: rgba(9, 10, 10, 0.055);
    --grid-line-b: rgba(9, 10, 10, 0.04);
    --grid-mask: linear-gradient(to bottom, rgba(0, 0, 0, 0.42), transparent 76%);
    --nav-bg: rgba(243, 240, 233, 0.78);
    --control-bg: rgba(9, 10, 10, 0.045);
    --canvas-opacity: 0.12;
    --media-bg: #e7e1d6;
    --image-filter: saturate(0.9) contrast(1.01);
    --image-hover-filter: saturate(0.98) contrast(1.02);
    --image-overlay: linear-gradient(to bottom, rgba(243, 240, 233, 0.08), rgba(243, 240, 233, 0.1));
    --article-text: #3c3d38;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    background: var(--body-bg);
    color: var(--text);
    font-family: 'Space Grotesk', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.55;
    letter-spacing: 0;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    content: '';
    background-image:
        linear-gradient(var(--grid-line-a) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line-b) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: var(--grid-mask);
}

img {
    max-width: 100%;
}

a {
    color: inherit;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    border: 0;
}

#ambient-canvas {
    position: fixed;
    inset: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: var(--canvas-opacity);
}

.main-nav {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 999;
    display: flex;
    justify-content: center;
    padding: 18px 32px;
    background: var(--nav-bg);
    border-bottom: 1px solid var(--line-soft);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
}

.nav-container {
    display: flex;
    width: 100%;
    max-width: 1500px;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.nav-brand {
    display: grid;
    gap: 2px;
    min-width: 150px;
    color: var(--text);
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
}

.brand-text {
    position: relative;
    display: inline-flex;
    width: fit-content;
    color: var(--text);
    font-size: 1.45rem;
    letter-spacing: 0;
}

.brand-text::after {
    position: absolute;
    bottom: -7px;
    left: 0;
    width: 22px;
    height: 4px;
    background: var(--signal);
    border-radius: 999px;
    content: '';
}

.brand-tagline {
    margin-top: 9px;
    color: var(--text-soft);
    font-size: 0.64rem;
    font-weight: 500;
    line-height: 1;
    text-transform: uppercase;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 34px;
}

.nav-controls {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 46px;
    list-style: none;
}

.nav-link {
    position: relative;
    display: inline-flex;
    min-height: 32px;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.94rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.nav-link::after {
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.22s ease;
    content: '';
}

.nav-link:hover,
.nav-link.active {
    color: var(--text);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

.language-switcher {
    position: relative;
    display: inline-flex;
    flex-shrink: 0;
    gap: 2px;
    padding: 3px;
    background: var(--control-bg);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
}

.lang-btn {
    min-width: 42px;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 6px;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.lang-btn:hover,
.lang-btn.active {
    background: rgba(184, 243, 106, 0.12);
    color: var(--primary);
}

.theme-toggle {
    position: relative;
    display: inline-flex;
    width: 62px;
    min-height: 38px;
    align-items: center;
    justify-content: space-between;
    padding: 3px;
    background: var(--control-bg);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    color: var(--text-muted);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.theme-toggle::before {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    background: rgba(184, 243, 106, 0.14);
    transition: transform 0.22s ease;
    content: '';
}

.theme-toggle i {
    position: relative;
    z-index: 1;
    display: inline-flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    font-size: 0.86rem;
    transition: color 0.2s ease;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
    border-color: rgba(184, 243, 106, 0.38);
    color: var(--text);
    outline: 0;
}

html[data-theme="dark"] .theme-toggle .fa-moon,
html[data-theme="light"] .theme-toggle .fa-sun {
    color: var(--primary);
}

html[data-theme="light"] .theme-toggle::before {
    transform: translateX(24px);
}

.home-page,
.blog-container,
.tools-container,
.article-container {
    position: relative;
    width: min(100%, var(--content));
    margin: 0 auto;
    padding: 96px 32px 48px;
}

.hero-section {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(420px, 0.9fr);
    gap: 54px;
    align-items: stretch;
    min-height: 568px;
    padding: 22px 0 22px;
    border-bottom: 1px solid var(--line-soft);
}

.hero-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    padding: 18px 0;
}

.status-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-bottom: 26px;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
}

.status-line span:nth-child(2) {
    color: var(--primary);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 18px rgba(184, 243, 106, 0.5);
}

.status-divider {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--text-soft);
}

.name {
    position: relative;
    margin-bottom: 28px;
    color: var(--text);
    font-size: 8.4rem;
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: 0;
}

.name::after {
    display: block;
    width: 58px;
    height: 9px;
    margin-top: 18px;
    background: var(--signal);
    border-radius: 999px;
    content: '';
}

.title {
    margin-bottom: 20px;
    color: var(--text);
    font-size: 2.45rem;
    font-weight: 500;
    line-height: 1.14;
}

.title-accent {
    color: var(--signal);
    font-weight: 700;
}

html[data-theme="light"] .title-accent {
    color: var(--primary);
}

.description {
    max-width: 700px;
    color: var(--text-muted);
    font-size: 1.02rem;
    font-weight: 400;
    line-height: 1.82;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 18px 30px;
    margin-top: 34px;
    margin-bottom: 32px;
}

.skill-item {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 0 0 22px;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.93rem;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
}

.skill-item::before {
    position: absolute;
    top: 50%;
    left: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary);
    transform: translateY(-50%);
    content: '';
}

.skill-item:nth-child(2)::before {
    background: var(--text-soft);
}

.skill-item:nth-child(3)::before {
    background: var(--text-soft);
}

.skill-item:nth-child(4)::before {
    background: var(--text-soft);
}

.skill-item:hover {
    color: var(--text);
    transform: translateY(-1px);
}

.skill-item:hover::before {
    background: var(--signal);
}

.contact {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    max-width: 720px;
}

.wechat-section {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.wechat-trigger {
    display: inline-flex;
    min-height: 58px;
    min-width: 212px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 0 18px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--text);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.wechat-trigger i:first-child {
    color: var(--primary);
    font-size: 1.25rem;
}

.wechat-trigger i:last-child {
    color: var(--text-muted);
    font-size: 0.88rem;
    transition: transform 0.2s ease, color 0.2s ease;
}

.wechat-trigger:hover,
.wechat-trigger:focus-visible {
    background: var(--surface-strong);
    border-color: rgba(184, 243, 106, 0.42);
    outline: 0;
    transform: translateY(-2px);
}

.wechat-qr-popup {
    position: absolute;
    bottom: calc(100% + 12px);
    left: 0;
    z-index: 20;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.wechat-section:hover .wechat-qr-popup,
.wechat-section:focus-within .wechat-qr-popup {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.wechat-section:hover .wechat-trigger .fa-arrow-right,
.wechat-section:focus-within .wechat-trigger .fa-arrow-right {
    transform: translateX(3px);
}

.qr-container {
    display: grid;
    width: 136px;
    gap: 8px;
    justify-items: center;
    padding: 10px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: var(--radius);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
}

.qr-code {
    display: block;
    width: 112px;
    height: 112px;
    object-fit: cover;
    border-radius: 4px;
}

.qr-text {
    max-width: 112px;
    color: #1a1a1a;
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
}

.social-links {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 7px;
    background: var(--surface);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 42px;
    padding: 0 12px;
    border-radius: 6px;
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.social-link i {
    display: inline-flex;
    width: 24px;
    justify-content: center;
    font-size: 1.12rem;
}

.social-link:nth-child(1) i {
    color: var(--primary);
}

.social-link:nth-child(2) i {
    color: var(--primary);
}

.social-link:nth-child(3) i {
    color: var(--primary);
}

.social-link:hover {
    background: var(--surface-strong);
    color: var(--text);
    transform: translateY(-1px);
}

.hero-visual {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 84px;
    align-items: stretch;
    min-width: 0;
}

.profile-image {
    position: relative;
    min-height: 100%;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 2px;
    box-shadow: var(--shadow);
}

.profile-image::before {
    position: absolute;
    right: 22px;
    bottom: 22px;
    z-index: 2;
    width: 70px;
    height: 4px;
    background: var(--signal);
    border-radius: 999px;
    content: '';
}

.profile-image img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 560px;
    object-fit: cover;
    object-position: 52% center;
    filter: var(--image-filter);
    transition: transform 0.5s ease, filter 0.5s ease;
}

.profile-image:hover img {
    filter: var(--image-hover-filter);
    transform: scale(1.018);
}

.image-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: var(--image-overlay);
}

.portrait-meta {
    display: grid;
    align-content: space-between;
    justify-items: start;
    padding: 58px 0 58px 26px;
    color: var(--text-soft);
    font-size: 0.9rem;
}

.portrait-meta span:nth-child(3) {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

.service-strip {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto minmax(172px, auto);
    gap: 28px;
    align-items: center;
    padding: 28px 0;
    border-bottom: 1px solid var(--line-soft);
}

.service-mark {
    display: inline-flex;
    width: 72px;
    height: 72px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--primary);
    font-size: 1.7rem;
}

.service-mark i {
    filter: drop-shadow(0 0 12px rgba(184, 243, 106, 0.2));
}

.service-copy {
    display: grid;
    gap: 8px;
}

.service-copy h2 {
    max-width: 520px;
    color: var(--text);
    font-size: 1.35rem;
    font-weight: 650;
    line-height: 1.32;
}

.service-copy p {
    max-width: 620px;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.65;
}

.service-price {
    display: inline-flex;
    min-width: 132px;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
}

.price-value {
    color: var(--primary);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.price-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.service-action,
.tool-link {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 0 22px;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 0.94rem;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.service-action:hover,
.tool-link:hover {
    background: rgba(184, 243, 106, 0.1);
    border-color: rgba(184, 243, 106, 0.42);
    color: var(--primary);
    transform: translateY(-2px);
}

.booking-modal[hidden] {
    display: none;
}

.booking-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    place-items: center;
    padding: 22px;
}

.booking-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.58);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

html[data-theme="light"] .booking-backdrop {
    background: rgba(21, 23, 22, 0.24);
}

.booking-dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 680px);
    max-height: min(86vh, 780px);
    overflow: auto;
    padding: 30px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.booking-dialog:focus {
    outline: 0;
}

.booking-close {
    position: absolute;
    top: 18px;
    right: 18px;
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    background: var(--control-bg);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    color: var(--text-muted);
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.booking-close:hover,
.booking-close:focus-visible {
    background: var(--surface-strong);
    border-color: rgba(184, 243, 106, 0.38);
    color: var(--text);
    outline: 0;
}

.booking-header {
    display: grid;
    gap: 10px;
    margin-bottom: 24px;
    padding-right: 42px;
}

.booking-eyebrow {
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.booking-header h2 {
    max-width: 520px;
    color: var(--text);
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1.25;
}

.booking-header p {
    max-width: 560px;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.65;
}

.booking-form {
    display: grid;
    gap: 16px;
}

.booking-date-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.booking-field {
    display: grid;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.86rem;
    font-weight: 650;
}

.booking-field input,
.booking-field textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--text);
    caret-color: var(--primary);
    color-scheme: inherit;
    resize: vertical;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.booking-field textarea {
    min-height: 112px;
}

.booking-field input:focus,
.booking-field textarea:focus {
    background: var(--surface-strong);
    border-color: rgba(184, 243, 106, 0.46);
    box-shadow: 0 0 0 3px rgba(184, 243, 106, 0.1);
    outline: 0;
}

html[data-theme="dark"] .booking-field input[type="date"]::-webkit-calendar-picker-indicator,
html[data-theme="dark"] .booking-field input[type="time"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    opacity: 0.72;
}

.booking-recipient {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    padding: 12px 14px;
    background: var(--surface);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    color: var(--text-muted);
    font-size: 0.86rem;
}

.booking-recipient strong {
    color: var(--primary);
    font-weight: 700;
}

.booking-status {
    min-height: 22px;
    color: var(--primary);
    font-size: 0.86rem;
    font-weight: 650;
}

.booking-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 4px;
}

.booking-secondary,
.booking-primary {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 18px;
    border-radius: var(--radius);
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.booking-secondary {
    background: transparent;
    border: 1px solid var(--line);
    color: var(--text-muted);
}

.booking-primary {
    background: var(--primary);
    border: 1px solid var(--primary);
    color: var(--bg);
}

.booking-secondary:hover,
.booking-secondary:focus-visible,
.booking-primary:hover,
.booking-primary:focus-visible {
    outline: 0;
    transform: translateY(-1px);
}

.booking-secondary:hover,
.booking-secondary:focus-visible {
    background: var(--surface-strong);
    border-color: rgba(184, 243, 106, 0.36);
    color: var(--text);
}

.booking-primary:hover,
.booking-primary:focus-visible {
    background: var(--primary-strong);
    border-color: var(--primary-strong);
}

body.modal-open {
    overflow: hidden;
}

.home-preview-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
    gap: 36px;
    padding: 28px 0 24px;
    border-bottom: 1px solid var(--line-soft);
}

.preview-panel {
    min-width: 0;
}

.preview-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.preview-heading h2 {
    color: var(--text);
    font-size: 1.08rem;
    font-weight: 650;
}

.preview-heading a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-size: 0.86rem;
    font-weight: 600;
    text-decoration: none;
}

.featured-article {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 24px;
    align-items: center;
    color: inherit;
    text-decoration: none;
}

.featured-article img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius);
    filter: var(--image-filter);
}

.featured-article h3 {
    max-width: 460px;
    margin: 8px 0;
    color: var(--text);
    font-size: 1.18rem;
    font-weight: 650;
    line-height: 1.42;
}

.featured-article p {
    max-width: 440px;
    color: var(--text-muted);
    font-size: 0.94rem;
}

.tool-shortlist {
    display: grid;
    gap: 12px;
}

.tool-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 16px 18px;
    background: var(--surface);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    color: inherit;
    text-decoration: none;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.tool-row:hover {
    background: var(--surface-strong);
    border-color: rgba(184, 243, 106, 0.32);
    transform: translateY(-2px);
}

.tool-row i {
    width: 34px;
    color: var(--primary);
    font-size: 1.8rem;
    text-align: center;
}

.tool-row span {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.tool-row strong {
    color: var(--text);
    font-size: 0.98rem;
    font-weight: 650;
}

.tool-row small,
.tool-row em {
    color: var(--text-muted);
    font-size: 0.82rem;
    font-style: normal;
}

.blog-container,
.tools-container,
.article-container {
    min-height: 100vh;
}

.blog-header,
.tools-header {
    max-width: 760px;
    margin: 40px auto 34px;
    text-align: center;
}

.blog-title,
.tools-title {
    margin-bottom: 14px;
    color: var(--text);
    font-size: 3.35rem;
    font-weight: 700;
    line-height: 1.04;
}

.blog-subtitle,
.tools-subtitle {
    color: var(--text-muted);
    font-size: 1.08rem;
    line-height: 1.7;
}

.category-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 34px;
}

.category-btn {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 16px;
    background: transparent;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.category-btn:hover,
.category-btn.active {
    background: rgba(184, 243, 106, 0.09);
    border-color: rgba(184, 243, 106, 0.36);
    color: var(--primary);
    transform: translateY(-1px);
}

.articles-grid,
.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin-bottom: 48px;
}

.article-card-link {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.article-card,
.tool-card {
    display: flex;
    height: 100%;
    min-width: 0;
    overflow: hidden;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    transition: background 0.22s ease, border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.article-card:hover,
.tool-card:hover {
    background: var(--surface-strong);
    border-color: rgba(184, 243, 106, 0.34);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
    transform: translateY(-4px);
}

.article-image,
.tool-image {
    width: 100%;
    overflow: hidden;
    background: var(--media-bg);
}

.article-image {
    height: 218px;
}

.tool-image {
    height: 176px;
}

.article-image img,
.tool-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: var(--image-filter);
    transition: transform 0.4s ease, filter 0.4s ease;
}

.article-card:hover img,
.tool-card:hover img {
    filter: var(--image-hover-filter);
    transform: scale(1.035);
}

.article-content,
.tool-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 20px;
}

.article-meta,
.tool-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 14px;
}

.article-date,
.tool-pricing {
    color: var(--text-soft);
    font-size: 0.82rem;
}

.article-tag,
.tool-tag {
    display: inline-flex;
    min-height: 25px;
    align-items: center;
    padding: 0 10px;
    border: 1px solid rgba(184, 243, 106, 0.34);
    border-radius: var(--radius);
    color: var(--primary);
    font-size: 0.76rem;
    font-weight: 650;
}

.article-title,
.tool-title {
    margin-bottom: 10px;
    color: var(--text);
    font-size: 1.17rem;
    font-weight: 650;
    line-height: 1.42;
}

.article-excerpt,
.tool-description {
    color: var(--text-muted);
    font-size: 0.93rem;
    line-height: 1.65;
}

.tool-description {
    flex: 1;
    margin-bottom: 18px;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    color: var(--primary);
    font-size: 0.92rem;
    font-weight: 650;
}

.tool-actions {
    display: flex;
    margin-top: auto;
}

.tool-link {
    width: 100%;
    min-height: 46px;
}

.tool-card[data-category="research"] .tool-tag,
.category-btn[data-category="research"].active {
    border-color: rgba(245, 200, 76, 0.42);
    color: var(--amber);
}

.tool-card[data-category="strategy"] .tool-tag,
.category-btn[data-category="strategy"].active {
    border-color: rgba(154, 124, 255, 0.42);
    color: var(--violet);
}

.tool-card[data-category="typography"] .tool-tag,
.category-btn[data-category="typography"].active,
.tool-card[data-category="collaboration"] .tool-tag,
.category-btn[data-category="collaboration"].active {
    border-color: rgba(78, 141, 255, 0.42);
    color: var(--blue);
}

.tool-card[data-category="prototyping"] .tool-tag,
.category-btn[data-category="prototyping"].active {
    border-color: rgba(154, 124, 255, 0.42);
    color: var(--violet);
}

.tool-card[data-category="productivity"] .tool-tag,
.category-btn[data-category="productivity"].active {
    border-color: rgba(245, 200, 76, 0.42);
    color: var(--amber);
}

.tool-card[data-category="ai"] .tool-tag,
.category-btn[data-category="ai"].active {
    border-color: rgba(234, 76, 137, 0.42);
    color: var(--pink);
}

.article-container {
    max-width: 900px;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 30px 0 28px;
    color: var(--text-muted);
    font-size: 0.94rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.back-btn:hover {
    color: var(--primary);
    transform: translateX(-3px);
}

.article-detail-header {
    margin-bottom: 30px;
}

.article-detail-title {
    margin: 20px 0 22px;
    color: var(--text);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.14;
}

.article-author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info {
    display: grid;
    gap: 2px;
}

.author-name {
    color: var(--text);
    font-weight: 650;
}

.read-time {
    color: var(--text-soft);
    font-size: 0.88rem;
}

.article-detail-image {
    overflow: hidden;
    margin-bottom: 34px;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
}

.article-detail-image img {
    display: block;
    width: 100%;
}

.article-body {
    color: var(--article-text);
    font-size: 1.06rem;
    line-height: 1.84;
}

.article-body p {
    margin-bottom: 1.45rem;
}

.article-body h2 {
    margin: 2.55rem 0 1rem;
    color: var(--text);
    font-size: 1.55rem;
    font-weight: 700;
    line-height: 1.3;
}

.article-body blockquote {
    margin: 2rem 0;
    padding: 22px 24px;
    background: var(--surface);
    border-left: 3px solid var(--primary);
    color: var(--text-muted);
    font-style: italic;
}

.article-body ul {
    margin: 1.45rem 0;
    padding-left: 1.4rem;
}

.article-body li {
    margin-bottom: 0.72rem;
}

.article-footer,
.related-articles {
    margin-top: 42px;
    padding-top: 28px;
    border-top: 1px solid var(--line-soft);
}

.share-section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.share-label {
    color: var(--text-muted);
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.share-btn {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.share-btn:hover {
    border-color: rgba(184, 243, 106, 0.36);
    color: var(--primary);
    transform: translateY(-2px);
}

.related-articles h3 {
    margin-bottom: 20px;
    color: var(--text);
    font-size: 1.35rem;
    font-weight: 700;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.related-card {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 16px;
    height: 100%;
    padding: 12px;
    background: var(--surface);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.related-card:hover {
    background: var(--surface-strong);
    border-color: rgba(184, 243, 106, 0.32);
    transform: translateY(-2px);
}

.related-card img {
    width: 112px;
    height: 112px;
    object-fit: cover;
    border-radius: 6px;
}

.related-content {
    display: grid;
    align-content: center;
    gap: 7px;
}

.related-tag,
.related-link {
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 650;
}

.related-card h4 {
    color: var(--text);
    font-size: 0.98rem;
    font-weight: 650;
    line-height: 1.4;
}

.footer {
    padding: 34px 0 8px;
    color: var(--text-soft);
    font-size: 0.86rem;
    text-align: center;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1180px) {
    .hero-section {
        grid-template-columns: minmax(0, 1fr);
        gap: 34px;
        min-height: 0;
    }

    .hero-visual {
        grid-template-columns: minmax(0, 1fr);
    }

    .portrait-meta {
        display: none;
    }

    .profile-image img {
        min-height: 520px;
        object-position: center 38%;
    }

    .articles-grid,
    .tools-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .main-nav {
        padding: 12px 18px;
    }

    .nav-container {
        align-items: flex-start;
        gap: 14px;
    }

    .nav-right {
        flex-direction: column-reverse;
        align-items: flex-end;
        gap: 10px;
    }

    .nav-menu {
        gap: 20px;
    }

    .home-page,
    .blog-container,
    .tools-container,
    .article-container {
        padding: 116px 18px 34px;
    }

    .name {
        font-size: 5rem;
    }

    .title {
        font-size: 1.8rem;
    }

    .description {
        font-size: 0.98rem;
    }

    .contact {
        align-items: stretch;
        max-width: none;
    }

    .wechat-section {
        align-items: stretch;
        width: 100%;
    }

    .wechat-trigger {
        min-width: 0;
        width: 100%;
        flex: 1;
    }

    .social-links {
        width: 100%;
        justify-content: space-between;
        gap: 10px;
    }

    .social-link {
        flex: 1;
        justify-content: center;
        padding: 12px 10px;
        border: 1px solid var(--line-soft);
        border-radius: var(--radius);
    }

    .social-link:hover {
        transform: translateY(-1px);
    }

    .profile-image img {
        min-height: 430px;
    }

    .service-strip {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 18px;
    }

    .service-price,
    .service-action {
        grid-column: 1 / -1;
    }

    .service-action {
        width: 100%;
    }

    .booking-dialog {
        padding: 24px;
    }

    .booking-date-grid {
        grid-template-columns: 1fr;
    }

    .home-preview-grid,
    .featured-article {
        grid-template-columns: 1fr;
    }

    .featured-article img {
        aspect-ratio: 16 / 9;
    }

    .blog-title,
    .tools-title {
        font-size: 2.3rem;
    }

    .articles-grid,
    .tools-grid,
    .related-grid {
        grid-template-columns: 1fr;
    }

    .article-detail-title {
        font-size: 2.15rem;
    }
}

@media (max-width: 560px) {
    .nav-brand {
        font-size: 1.2rem;
    }

    .brand-tagline {
        display: none;
    }

    .nav-menu {
        gap: 14px;
    }

    .nav-link {
        font-size: 0.86rem;
    }

    .lang-btn {
        min-width: 36px;
    }

    .hero-section {
        padding-top: 22px;
    }

    .name {
        font-size: 3.6rem;
    }

    .title {
        font-size: 1.35rem;
    }

    .status-line {
        gap: 10px;
        font-size: 0.86rem;
    }

    .skills {
        gap: 10px 18px;
    }

    .wechat-section {
        display: inline-flex;
    }

    .wechat-qr-popup {
        right: 0;
    }

    .qr-container {
        width: 136px;
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .qr-text {
        max-width: 112px;
        align-self: center;
        text-align: center;
    }

    .social-links {
        display: grid;
        grid-template-columns: 1fr;
    }

    .profile-image img {
        min-height: 360px;
    }

    .service-strip {
        grid-template-columns: 1fr;
    }

    .service-mark {
        width: 58px;
        height: 58px;
    }

    .booking-modal {
        padding: 12px;
    }

    .booking-dialog {
        max-height: 90vh;
        padding: 20px;
    }

    .booking-header {
        padding-right: 36px;
    }

    .booking-header h2 {
        font-size: 1.35rem;
    }

    .booking-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .booking-secondary,
    .booking-primary {
        width: 100%;
    }

    .preview-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .tool-row {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .tool-row em {
        grid-column: 2;
    }

    .category-filter {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .category-btn {
        flex: 0 0 auto;
    }

    .article-content,
    .tool-content {
        padding: 18px;
    }

    .article-image,
    .tool-image {
        height: 190px;
    }

    .article-body {
        font-size: 1rem;
    }

    .related-card {
        grid-template-columns: 1fr;
    }

    .related-card img {
        width: 100%;
        height: 170px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.001ms !important;
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
    }
}
