/* ============================================================
   行恒简安 · 企业科技风主页（浅色主题）
   大厂风范：浅色基底、蓝色强调、毛玻璃卡片、流畅动效
   ============================================================ */

:root {
    --bg-0: #eaf1fb;
    --bg-1: #f5f9ff;
    --bg-2: #e6edf8;
    --bg-3: #dbe5f3;
    --panel: rgba(244, 249, 255, 0.62);
    --panel-strong: rgba(248, 251, 255, 0.9);
    --border: rgba(148, 163, 184, 0.22);
    --border-strong: rgba(66, 144, 245, 0.35);
    --text: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --primary: #4290f5;
    --primary-light: #5aa0ff;
    --primary-dark: #2563eb;
    --accent: #06b6d4;
    --success: #22c55e;
    --danger: #ef4444;
    --warning: #f59e0b;
    --shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 8px 40px rgba(15, 23, 42, 0.08);
    --shadow-glow: 0 0 40px rgba(66, 144, 245, 0.14);
    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 28px;
    --header-h: 76px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(ellipse at 6% -8%, rgba(66, 144, 245, 0.22) 0%, transparent 45%),
        radial-gradient(ellipse at 94% 2%, rgba(6, 182, 212, 0.16) 0%, transparent 42%),
        radial-gradient(ellipse at 50% 118%, rgba(66, 144, 245, 0.14) 0%, transparent 52%),
        linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 55%, var(--bg-2) 100%);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
}

#tech-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
}

/* ===== Header ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-h);
    background: linear-gradient(180deg, rgba(238, 244, 253, 0.85) 0%, rgba(231, 239, 251, 0.62) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.site-header::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--accent), transparent);
    opacity: 0.65;
}

.header-inner {
    max-width: 1320px;
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.brand-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(66, 144, 245, 0.25));
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.brand-name {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--text);
}

.brand-slogan {
    font-size: 11px;
    color: var(--text-secondary);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-nav a {
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.25s ease;
}

.header-nav a:hover {
    color: var(--primary-dark);
    background: rgba(66, 144, 245, 0.08);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.clock {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1px;
    padding: 5px 14px;
    border-radius: 12px;
    background: var(--panel);
    border: 1px solid var(--border);
    font-variant-numeric: tabular-nums;
    color: var(--text-secondary);
    line-height: 1.25;
}

.clock-time {
    font-family: "SF Mono", Monaco, monospace;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: 0.5px;
}

.clock-date {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: var(--text-muted);
}

.clock-lunar {
    color: var(--primary-dark);
    opacity: 0.9;
}

/* ===== Buttons ===== */
.btn-primary,
.btn-secondary,
.btn-ghost,
.btn-ghost-sm,
.btn-mini {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-weight: 600;
    border-radius: 999px;
    transition: all 0.25s ease;
}

.btn-primary {
    padding: 12px 28px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    box-shadow: 0 4px 18px rgba(66, 144, 245, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 26px rgba(66, 144, 245, 0.45);
}

.btn-secondary {
    padding: 12px 28px;
    background: var(--bg-1);
    color: var(--text);
    border: 1px solid var(--border-strong);
}

.btn-secondary:hover {
    background: rgba(66, 144, 245, 0.06);
    border-color: var(--primary);
}

.btn-ghost {
    padding: 10px 22px;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    color: var(--text);
    border-color: var(--border-strong);
    background: rgba(15, 23, 42, 0.03);
}

.btn-ghost-sm {
    padding: 7px 16px;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    font-size: 13px;
}

.btn-ghost-sm:hover {
    color: var(--primary-dark);
    border-color: var(--border-strong);
}

.btn-mini {
    padding: 6px 12px;
    font-size: 12px;
    background: rgba(66, 144, 245, 0.10);
    color: var(--primary-dark);
    border: 1px solid var(--border);
    border-radius: 6px;
}

.btn-mini:hover {
    background: rgba(66, 144, 245, 0.18);
}

/* ===== Main / Sections ===== */
main {
    position: relative;
    z-index: 1;
    padding-top: var(--header-h);
}

section {
    max-width: 1320px;
    margin: 0 auto;
    padding: 90px 24px;
}

.section-header {
    text-align: center;
    margin-bottom: 52px;
}

.section-tag {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 999px;
    background: rgba(66, 144, 245, 0.08);
    border: 1px solid var(--border);
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 14px;
}

.section-header h2 {
    position: relative;
    display: inline-block;
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--text) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header h2::after {
    content: '';
    display: block;
    width: 56px;
    height: 4px;
    margin: 14px auto 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.section-header p {
    color: var(--text-secondary);
    font-size: 16px;
    max-width: 560px;
    margin: 0 auto;
}

/* ===== Hero ===== */
.hero {
    position: relative;
    min-height: calc(100vh - var(--header-h));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    padding-top: 60px;
    padding-bottom: 60px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 4%;
    transform: translateY(-50%);
    width: 540px;
    height: 540px;
    background: radial-gradient(circle, rgba(66, 144, 245, 0.20) 0%, rgba(6, 182, 212, 0.12) 42%, transparent 70%);
    filter: blur(50px);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.hero > * {
    position: relative;
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0%;
    transform: translateY(-50%);
    width: 440px;
    height: 440px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.16) 0%, transparent 70%);
    filter: blur(50px);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    flex: 1;
    max-width: 660px;
}

.hero-products {
    width: 100%;
}

.hero-products-head {
    text-align: left;
    margin-bottom: 28px;
}

.hero-products-head .section-tag {
    margin-bottom: 12px;
}

.hero-products-title {
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--text) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-products-sub {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
    max-width: 480px;
}

.hero-visual {
    flex: 0 0 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.orbit {
    position: relative;
    width: 360px;
    height: 360px;
}

.orbit-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid var(--border);
}

.ring-1 { width: 100%; height: 100%; animation: spin 20s linear infinite; }
.ring-2 { width: 75%; height: 75%; border-color: var(--border-strong); animation: spin-reverse 15s linear infinite; }
.ring-3 { width: 50%; height: 50%; border-style: dashed; animation: spin 10s linear infinite; }

.orbit-ring::before {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 12px var(--primary);
}

.ring-1::before { top: -4px; left: 50%; transform: translateX(-50%); }
.ring-2::before { bottom: -4px; left: 50%; transform: translateX(-50%); background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.ring-3::before { top: 50%; right: -4px; transform: translateY(-50%); background: var(--primary-light); }

.orbit-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background:
        linear-gradient(var(--panel-strong), var(--panel-strong)) padding-box,
        linear-gradient(135deg, var(--primary), var(--accent)) border-box;
    border: 1px solid transparent;
    box-shadow: var(--shadow-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.orbit-core img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(66, 144, 245, 0.25));
}

@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes spin-reverse { to { transform: translate(-50%, -50%) rotate(-360deg); } }

/* ===== Products ===== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.product-grid--compact {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.product-grid--compact .product-card {
    padding: 22px;
}

.product-grid--compact .product-icon {
    width: 46px;
    height: 46px;
    font-size: 22px;
    margin-bottom: 14px;
}

.product-grid--compact .product-card h3 {
    font-size: 17px;
    margin-bottom: 6px;
}

.product-grid--compact .product-card p {
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card {
    position: relative;
    padding: 32px;
    border-radius: var(--radius-md);
    background: var(--panel);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(66, 144, 245, 0.08) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-md), var(--shadow-glow);
}

.product-card:hover::before {
    opacity: 1;
}

.product-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.product-icon {
    width: 54px;
    height: 54px;
    border-radius: var(--radius-sm);
    background: rgba(66, 144, 245, 0.10);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.product-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.product-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 22px;
    position: relative;
    z-index: 1;
}

.product-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-dark);
    position: relative;
    z-index: 1;
}

.product-link::after {
    content: '→';
    transition: transform 0.2s ease;
}

.product-card:hover .product-link::after {
    transform: translateX(4px);
}

/* ===== Search ===== */
.search-section {
    padding-top: 40px;
    padding-bottom: 40px;
}

.search-box {
    display: flex;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 8px;
    border-radius: 999px;
    background: var(--panel);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: all 0.25s ease;
}

.search-box:focus-within {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-glow);
}

.search-engine-select select {
    appearance: none;
    padding: 12px 34px 12px 18px;
    border: none;
    border-radius: 999px;
    background: var(--bg-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    outline: none;
}

.search-box input {
    flex: 1;
    padding: 12px 18px;
    border: none;
    background: transparent;
    color: var(--text);
    font-size: 16px;
    outline: none;
}

.search-box input::placeholder {
    color: var(--text-muted);
}

.search-box button {
    border-radius: 999px;
}

/* ===== Navigation Center ===== */
.nav-center {
    padding-top: 60px;
}

.nav-layout {
    display: flex;
    gap: 28px;
    align-items: flex-start;
}

.nav-sidebar {
    position: sticky;
    top: calc(var(--header-h) + 24px);
    flex: 0 0 220px;
    padding: 18px;
    border-radius: var(--radius-md);
    background: var(--panel);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.nav-sidebar h3 {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 14px;
    padding-left: 12px;
}

.side-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    background: transparent;
    text-align: left;
}

.side-menu-item:hover {
    background: rgba(66, 144, 245, 0.08);
    color: var(--text);
}

.side-menu-item.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    box-shadow: 0 4px 16px rgba(66, 144, 245, 0.30);
}

.nav-content {
    flex: 1;
    min-width: 0;
}

.group-block {
    scroll-margin-top: calc(var(--header-h) + 24px);
}

.group-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 22px;
    color: var(--text);
}

.group-title .title-accent {
    width: 4px;
    height: 22px;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--primary) 0%, var(--accent) 100%);
}

.grp-count {
    margin-left: auto;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    background: var(--bg-2);
    padding: 2px 10px;
    border-radius: 999px;
}

.link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.link-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: var(--radius-sm);
    background: var(--panel);
    border: 1px solid var(--border);
    color: var(--text);
    transition: all 0.25s ease;
    position: relative;
}

.link-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-md), var(--shadow-glow);
}

.link-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(66, 144, 245, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.link-info {
    min-width: 0;
}

.link-name {
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.link-url {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-actions {
    display: flex;
    gap: 6px;
    margin-left: auto;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.link-card:hover .admin-actions {
    opacity: 1;
}

.admin-actions button {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-actions button:hover {
    background: rgba(66, 144, 245, 0.12);
    color: var(--primary-dark);
}

/* 编辑态：分组标题与产品卡的按钮始终可见（不依赖 hover） */
.group-title .admin-actions {
    opacity: 1;
}

.product-card .admin-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    opacity: 1;
}

.new-product-wrap {
    grid-column: 1 / -1;
    margin-top: 4px;
}

.product-grid .new-group-wrap {
    grid-column: 1 / -1;
    margin-top: 4px;
}

.new-group-wrap {
    margin-top: 28px;
}

.new-group-btn {
    width: 100%;
    padding: 14px;
    border-radius: var(--radius-sm);
    border: 1px dashed var(--border-strong);
    background: rgba(66, 144, 245, 0.04);
    color: var(--primary-dark);
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.new-group-btn:hover {
    background: rgba(66, 144, 245, 0.10);
    border-style: solid;
}

/* ===== Contact ===== */
.contact-section {
    padding-top: 40px;
    padding-bottom: 60px;
}

.contact-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 36px 42px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(66, 144, 245, 0.08) 0%, rgba(6, 182, 212, 0.04) 100%);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.contact-text h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 6px;
}

.contact-text p {
    color: var(--text-secondary);
}

/* ===== Footer ===== */
.site-footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--border-strong);
    background: linear-gradient(135deg, rgba(66, 144, 245, 0.10) 0%, rgba(6, 182, 212, 0.06) 100%);
    backdrop-filter: blur(12px);
}

.footer-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 48px 24px 28px;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 28px;
}

.footer-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    opacity: 0.9;
}

.footer-name {
    font-size: 18px;
    font-weight: 700;
}

.footer-slogan {
    font-size: 12px;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 24px;
    margin-bottom: 28px;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--primary-dark);
}

.footer-copy {
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}

.footer-beian {
    margin-top: 10px;
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
}

.footer-beian a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-beian a:hover {
    color: var(--primary-dark);
}

.beian-sep {
    margin: 0 8px;
    opacity: 0.4;
}

/* ===== Floating Buttons ===== */
#dark-toggle,
#scroll-top {
    position: fixed;
    right: 28px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--panel);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 20px;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    transition: all 0.25s ease;
}

#dark-toggle {
    bottom: 90px;
}

#scroll-top {
    bottom: 28px;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

#scroll-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

#dark-toggle:hover,
#scroll-top:hover {
    background: rgba(66, 144, 245, 0.10);
    color: var(--primary-dark);
    transform: scale(1.08);
}

#edit-badge {
    position: fixed;
    top: calc(var(--header-h) + 12px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 998;
    padding: 8px 18px;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: #15803d;
    font-size: 13px;
    font-weight: 600;
    backdrop-filter: blur(8px);
}

/* ===== Modals ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    width: 100%;
    max-width: 440px;
    max-height: 90vh;
    overflow: auto;
    padding: 28px;
    border-radius: var(--radius-md);
    background: var(--panel-strong);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-glow);
}

.modal h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
}

.modal label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.modal input,
.modal select {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-1);
    color: var(--text);
    font-size: 14px;
    outline: none;
}

.modal input:focus,
.modal select:focus {
    border-color: var(--primary);
}

.modal .row {
    display: flex;
    gap: 12px;
    margin-top: 18px;
}

.modal .row button {
    flex: 1;
}

.modal .err {
    color: var(--danger);
    font-size: 13px;
    min-height: 20px;
}

.modal .hint {
    margin-top: 14px;
    padding: 12px;
    border-radius: var(--radius-sm);
    background: rgba(66, 144, 245, 0.06);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.6;
}

.chan-box {
    margin-bottom: 14px;
    padding: 12px;
    border-radius: var(--radius-sm);
    background: var(--bg-2);
    border: 1px solid var(--border);
}

.chan-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.chan-ok { color: var(--success); font-weight: 600; }
.chan-bad { color: var(--danger); font-weight: 600; }

.chan-log {
    font-size: 11px;
    color: var(--text-muted);
    background: var(--bg-1);
    padding: 8px;
    border-radius: 6px;
    max-height: 120px;
    overflow: auto;
    white-space: pre-wrap;
    word-break: break-all;
}

/* ===== Toast ===== */
.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    z-index: 3000;
    padding: 12px 24px;
    border-radius: 999px;
    background: var(--panel-strong);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast.err {
    border-color: rgba(239, 68, 68, 0.35);
    color: var(--danger);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        text-align: center;
        gap: 50px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-visual {
        flex: 0 0 auto;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .nav-layout {
        flex-direction: column;
    }

    .nav-sidebar {
        position: relative;
        top: auto;
        flex: 1 1 auto;
        display: flex;
        gap: 10px;
        overflow-x: auto;
        padding: 12px;
    }

    .nav-sidebar h3 {
        display: none;
    }

    .side-menu-item {
        white-space: nowrap;
        width: auto;
    }
}

@media (max-width: 768px) {
    :root {
        --header-h: 64px;
    }

    .header-nav {
        display: none;
    }

    .clock {
        display: none;
    }

    .brand-name {
        font-size: 16px;
    }

    .gradient-text {
        font-size: 42px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .orbit {
        width: 280px;
        height: 280px;
    }

    .orbit-core {
        width: 90px;
        height: 90px;
        padding: 16px;
    }

    .product-grid,
    .link-grid {
        grid-template-columns: 1fr;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .search-box {
        flex-direction: column;
        border-radius: var(--radius-md);
    }

    .search-engine-select,
    .search-box input,
    .search-box button {
        width: 100%;
    }

    .search-engine-select select {
        border-radius: var(--radius-sm);
    }

    .contact-card {
        flex-direction: column;
        text-align: center;
    }
}
