:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-soft: #eaf2ff;
    --green: #10b981;
    --bg: #f6f8fc;
    --surface: #ffffff;
    --surface-soft: #f8fbff;
    --text: #102033;
    --muted: #64748b;
    --line: #dde7f3;
    --shadow: 0 16px 42px rgba(15, 23, 42, 0.07);
    --shadow-strong: 0 24px 58px rgba(37, 99, 235, 0.15);
    --radius: 16px;
    --speed: 0.18s ease;
}

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

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    background:
        radial-gradient(circle at 12% -8%, rgba(37, 99, 235, 0.11), transparent 30%),
        radial-gradient(circle at 88% 0%, rgba(16, 185, 129, 0.09), transparent 26%),
        linear-gradient(180deg, #fbfdff 0%, var(--bg) 46%, #f8fafc 100%);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(221, 231, 243, 0.9);
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(18px);
}

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

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.brand-logo {
    height: 26px;
    width: auto;
    max-width: 140px;
    border-radius: 7px;
    flex-shrink: 0;
}

.brand-name {
    color: var(--text);
    font-size: 21px;
    font-weight: 800;
    line-height: 26px;
    letter-spacing: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header-search {
    flex-shrink: 0;
}

.search-form {
    width: 320px;
    height: 44px;
    display: flex;
    align-items: center;
    border: 1px solid rgba(203, 213, 225, 0.9);
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
    transition: border-color var(--speed), box-shadow var(--speed);
}

.search-form:focus-within {
    border-color: rgba(37, 99, 235, 0.55);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.10), 0 10px 24px rgba(15, 23, 42, 0.08);
}

.search-input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 0 14px 0 18px;
    color: var(--text);
    font-size: 14px;
}

.search-input::placeholder {
    color: #94a3b8;
}

.search-btn {
    width: 36px;
    height: 36px;
    margin-right: 4px;
    border: 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--primary);
    cursor: pointer;
    transition: background var(--speed), transform var(--speed);
}

.search-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.hero-section {
    padding: 42px 24px 22px;
}

.hero-inner {
    max-width: 1160px;
    margin: 0 auto;
    min-height: 190px;
    border: 1px solid rgba(221, 231, 243, 0.92);
    border-radius: 26px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(248, 251, 255, 0.80)),
        radial-gradient(circle at 86% 22%, rgba(37, 99, 235, 0.13), transparent 28%);
    box-shadow: var(--shadow);
    padding: 38px 42px;
    display: flex;
    align-items: center;
}

.hero-copy {
    max-width: 720px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    margin-bottom: 14px;
    padding: 6px 12px;
    border: 1px solid rgba(37, 99, 235, 0.16);
    border-radius: 999px;
    color: var(--primary);
    background: rgba(234, 242, 255, 0.78);
    font-size: 13px;
    font-weight: 750;
}

.hero-copy h1 {
    margin-bottom: 12px;
    color: var(--text);
    font-size: 42px;
    font-weight: 850;
    line-height: 1.08;
    letter-spacing: 0;
}

.hero-copy p {
    max-width: 620px;
    color: var(--muted);
    font-size: 16px;
}

.footer-apply-btn {
    padding: 6px 14px;
    border: 1px solid rgba(37, 99, 235, 0.22);
    border-radius: 999px;
    color: var(--primary);
    background: rgba(234, 242, 255, 0.72);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: color var(--speed), background var(--speed), border-color var(--speed), transform var(--speed);
}

.footer-apply-btn:hover {
    color: #fff;
    border-color: var(--primary);
    background: var(--primary);
    transform: translateY(-1px);
}

.category-nav {
    margin-bottom: 22px;
}

.category-list {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 2px 2px 4px;
    scrollbar-width: none;
}

.category-list::-webkit-scrollbar {
    display: none;
}

.category-item {
    flex-shrink: 0;
    padding: 9px 16px;
    border: 1px solid rgba(221, 231, 243, 0.98);
    border-radius: 999px;
    color: var(--muted);
    background: #fff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.035);
    font-size: 14px;
    font-weight: 650;
    text-decoration: none;
    transition: color var(--speed), background var(--speed), border-color var(--speed), box-shadow var(--speed), transform var(--speed);
}

.category-item:hover {
    color: var(--primary);
    border-color: rgba(37, 99, 235, 0.28);
    transform: translateY(-1px);
}

.category-item.active {
    color: #fff;
    border-color: #12233a;
    background: #12233a;
    box-shadow: 0 14px 30px rgba(18, 35, 58, 0.18);
}

.main-content {
    flex: 1;
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px 52px;
}

.content-panel {
    border: 1px solid rgba(221, 231, 243, 0.9);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: var(--shadow);
    padding: 24px;
}

.panel-head {
    margin-bottom: 18px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
}

.panel-kicker {
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 750;
}

.panel-head h2 {
    color: var(--text);
    font-size: 26px;
    line-height: 1.2;
    letter-spacing: 0;
}

.panel-meta {
    flex-shrink: 0;
    padding: 6px 11px;
    border-radius: 999px;
    color: var(--muted);
    background: var(--surface-soft);
    font-size: 12px;
    font-weight: 700;
}

.friend-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.friend-card {
    position: relative;
    min-height: 202px;
    padding: 20px;
    border: 1px solid rgba(221, 231, 243, 0.96);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    color: inherit;
    text-decoration: none;
    background: #fff;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.055);
    overflow: hidden;
    opacity: 0;
    animation: cardFadeIn 0.45s ease forwards;
    transition: transform var(--speed), box-shadow var(--speed), border-color var(--speed), background var(--speed);
}

.friend-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, rgba(37, 99, 235, 0.08), transparent 42%);
    opacity: 0;
    transition: opacity var(--speed);
    pointer-events: none;
}

.friend-card:hover {
    transform: translateY(-4px);
    border-color: rgba(37, 99, 235, 0.34);
    box-shadow: var(--shadow-strong);
    background: #fff;
}

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

@keyframes cardFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.card-logo-wrap {
    width: 58px;
    height: 58px;
    margin-bottom: 17px;
    flex-shrink: 0;
}

.card-logo,
.card-logo-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 15px;
    box-shadow: 0 5px 16px rgba(15, 23, 42, 0.10);
}

.card-logo {
    object-fit: cover;
    transition: transform var(--speed);
}

.friend-card:hover .card-logo {
    transform: scale(1.05);
}

.card-logo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: linear-gradient(135deg, var(--primary-soft), #ecfdf5);
    font-size: 23px;
    font-weight: 800;
}

.card-body {
    width: 100%;
    text-align: left;
}

.card-name {
    margin-bottom: 8px;
    color: var(--text);
    font-size: 17px;
    font-weight: 780;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card-desc {
    min-height: 43px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-tag {
    position: absolute;
    top: 18px;
    right: 18px;
    padding: 3px 9px;
    border: 1px solid rgba(37, 99, 235, 0.12);
    border-radius: 999px;
    color: var(--primary);
    background: rgba(234, 242, 255, 0.96);
    font-size: 11px;
    font-weight: 650;
}

.empty-state {
    padding: 72px 22px;
    border: 1px solid rgba(221, 231, 243, 0.95);
    border-radius: 18px;
    background: #fff;
    text-align: center;
}

.empty-illustration { margin-bottom: 22px; }
.empty-text { margin-bottom: 6px; color: var(--text); font-size: 20px; font-weight: 760; }
.empty-hint { margin-bottom: 18px; color: var(--muted); font-size: 14px; }
.empty-action { display: inline-flex; padding: 8px 20px; border-radius: 999px; color: #fff; background: var(--primary); text-decoration: none; font-size: 14px; }

.site-footer {
    margin-top: auto;
    padding: 26px 24px;
    border-top: 1px solid rgba(221, 231, 243, 0.9);
    background: rgba(255, 255, 255, 0.76);
}

.footer-inner {
    max-width: 1160px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.footer-main { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 16px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.footer-links a,
.footer-beian a { color: var(--muted); text-decoration: none; font-size: 13px; transition: color var(--speed); }
.footer-links a:hover,
.footer-beian a:hover { color: var(--primary); }
.footer-text { color: var(--muted); font-size: 13px; }

.search-modal,
.apply-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 70px 18px 24px;
}

.apply-modal { z-index: 210; padding-top: 54px; }
.search-modal.show,
.apply-modal.show { display: flex; }

.search-modal-overlay,
.apply-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.48);
    backdrop-filter: blur(6px);
}

.search-modal-content,
.apply-modal-content {
    position: relative;
    z-index: 1;
    width: 660px;
    max-width: 100%;
    max-height: 84vh;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(221, 231, 243, 0.96);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 32px 80px rgba(15, 23, 42, 0.30);
    overflow: hidden;
}

.apply-modal-content { width: 700px; overflow: auto; }

.search-modal-header,
.apply-modal-header {
    padding: 20px 24px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    border-bottom: 1px solid var(--line);
}

.search-modal-header h3,
.apply-modal-header h3 { color: var(--text); font-size: 18px; }
.apply-modal-header p { margin-top: 4px; color: var(--muted); font-size: 13px; }

.search-modal-close,
.apply-modal-close {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    background: transparent;
    font-size: 25px;
    cursor: pointer;
}

.search-modal-close:hover,
.apply-modal-close:hover { color: var(--text); background: var(--surface-soft); }
.search-modal-body { padding: 14px; overflow-y: auto; }
.search-modal-loading,
.search-modal-empty { padding: 40px; color: var(--muted); text-align: center; font-size: 14px; }

.search-result-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border: 1px solid transparent;
    border-radius: 14px;
    color: inherit;
    text-decoration: none;
    transition: background var(--speed), border-color var(--speed);
}

.search-result-item:hover { border-color: var(--line); background: var(--surface-soft); }
.search-result-logo,
.search-result-logo-placeholder { width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0; }
.search-result-logo { object-fit: cover; }
.search-result-logo-placeholder { display: flex; align-items: center; justify-content: center; color: var(--primary); background: var(--primary-soft); font-weight: 800; }
.search-result-info { min-width: 0; flex: 1; }
.search-result-name { margin-bottom: 2px; color: var(--text); font-size: 15px; font-weight: 700; }
.search-result-desc { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-result-tag { padding: 3px 8px; border-radius: 999px; color: var(--primary); background: var(--primary-soft); font-size: 11px; }

.apply-form { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 16px; }
.apply-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.apply-form label { display: flex; flex-direction: column; gap: 7px; color: var(--text); font-size: 13px; font-weight: 700; }
.apply-form input,
.apply-form select,
.apply-form textarea { width: 100%; border: 1px solid var(--line); border-radius: 12px; outline: none; padding: 11px 13px; color: var(--text); background: #fff; font: inherit; font-weight: 500; transition: border-color var(--speed), box-shadow var(--speed); }
.apply-form textarea { resize: vertical; }
.apply-form input:focus,
.apply-form select:focus,
.apply-form textarea:focus { border-color: rgba(37, 99, 235, 0.55); box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.10); }
.apply-form-tip { min-height: 20px; color: var(--muted); font-size: 12px; }
.apply-form-tip.success { color: #047857; }
.apply-form-tip.error { color: #b91c1c; }
.apply-actions { display: flex; justify-content: flex-end; gap: 10px; }
.apply-cancel,
.apply-submit { border: 0; border-radius: 999px; padding: 10px 18px; font-size: 14px; font-weight: 760; cursor: pointer; }
.apply-cancel { color: var(--text); background: #eef3f9; }
.apply-submit { color: #fff; background: var(--primary); }
.apply-submit:disabled { cursor: not-allowed; opacity: 0.65; }

@media (max-width: 1199px) {
    .friend-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
    .header-inner { height: auto; min-height: 66px; padding: 12px 16px; flex-wrap: wrap; gap: 12px; }
    .brand-logo { height: 21px; }
    .brand-name { font-size: 18px; line-height: 21px; }
    .header-search,
    .search-form { width: 100%; }
    .hero-section { padding: 24px 16px 16px; }
    .hero-inner { min-height: 0; padding: 26px 22px; border-radius: 22px; }
    .hero-copy h1 { font-size: 31px; }
    .hero-copy p { font-size: 14px; }
    .hero-badge { margin-bottom: 12px; }
    .footer-apply-btn { width: auto; }
    .category-nav { margin-bottom: 18px; }
    .category-list { gap: 8px; padding-bottom: 4px; }
    .category-item { padding: 8px 14px; font-size: 13px; }
    .main-content { padding: 0 16px 34px; }
    .content-panel { padding: 18px; border-radius: 20px; }
    .panel-head { align-items: flex-start; margin-bottom: 16px; }
    .panel-head h2 { font-size: 23px; }
    .panel-meta { margin-top: 2px; }
    .friend-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .friend-card { min-height: 178px; padding: 16px; }
    .card-logo-wrap { width: 52px; height: 52px; margin-bottom: 14px; }
    .card-name { font-size: 14px; }
    .card-desc { min-height: 39px; font-size: 12px; }
    .card-tag { top: 12px; right: 12px; }
    .search-modal,
    .apply-modal { padding-top: 28px; }
    .search-result-tag { display: none; }
    .apply-modal-header,
    .apply-form { padding-left: 18px; padding-right: 18px; }
    .apply-grid { grid-template-columns: 1fr; }
    .apply-actions { flex-direction: column-reverse; }
    .apply-cancel,
    .apply-submit { width: 100%; }
}

@media (max-width: 430px) {
    .friend-grid { grid-template-columns: 1fr; }
    .friend-card { min-height: 0; }
}

:root {
    --primary: #246bfe;
    --primary-dark: #1554d1;
    --primary-soft: #eef4ff;
    --green: #0f9f6e;
    --bg: #f3f6fb;
    --surface: #ffffff;
    --surface-soft: #f7f9fd;
    --text: #142033;
    --muted: #6a7485;
    --line: #dce4ef;
    --shadow: 0 18px 44px rgba(25, 36, 58, 0.08);
    --shadow-strong: 0 20px 46px rgba(36, 107, 254, 0.13);
    --radius: 14px;
}

body {
    background:
        linear-gradient(90deg, rgba(36, 107, 254, 0.04) 1px, transparent 1px),
        linear-gradient(180deg, #fbfcff 0%, #f4f7fb 42%, #f8fafc 100%);
    background-size: 48px 48px, auto;
}

.site-header {
    border-bottom: 1px solid #e2e8f0;
    background: rgba(251, 252, 255, 0.94);
}

.header-inner {
    height: 64px;
}

.brand-logo {
    height: 24px;
    border-radius: 6px;
}

.brand-name {
    font-size: 19px;
    font-weight: 850;
}

.search-form {
    width: 340px;
    height: 40px;
    border-radius: 12px;
    background: #f8fafc;
    box-shadow: none;
}

.search-btn {
    width: 32px;
    height: 32px;
    border-radius: 10px;
}

.hero-section {
    padding: 34px 24px 18px;
}

.hero-inner {
    position: relative;
    min-height: 164px;
    border-radius: 18px;
    background:
        linear-gradient(135deg, #10223d 0%, #18375f 62%, #246bfe 100%);
    box-shadow: 0 20px 48px rgba(16, 34, 61, 0.18);
    overflow: hidden;
}

.hero-inner::after {
    content: "";
    position: absolute;
    right: 42px;
    top: 28px;
    width: 180px;
    height: 112px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 16px;
    background:
        linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.6;
}

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

.hero-badge {
    border-color: rgba(255, 255, 255, 0.18);
    color: #dbeafe;
    background: rgba(255, 255, 255, 0.08);
    letter-spacing: 0.04em;
}

.hero-copy h1 {
    color: #fff;
    font-size: 38px;
}

.hero-copy p {
    color: rgba(255, 255, 255, 0.72);
}

.hero-stat {
    position: relative;
    z-index: 1;
    margin-left: auto;
    min-width: 128px;
    padding: 18px 20px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 16px;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    text-align: right;
}

.hero-stat span {
    display: block;
    font-size: 34px;
    font-weight: 850;
    line-height: 1;
}

.hero-stat small {
    color: rgba(255, 255, 255, 0.68);
    font-size: 12px;
    font-weight: 700;
}

.main-content {
    max-width: 1160px;
    padding: 0 24px 54px;
}

.workspace-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.category-rail {
    position: sticky;
    top: 84px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 12px 30px rgba(25, 36, 58, 0.06);
    padding: 14px;
}

.rail-title {
    padding: 4px 8px 12px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.category-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow: visible;
    padding: 0;
}

.category-item {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 11px;
    border: 1px solid transparent;
    border-radius: 12px;
    color: #39475c;
    background: transparent;
    box-shadow: none;
}

.category-item span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.category-item em {
    min-width: 28px;
    border-radius: 999px;
    color: #7b8798;
    background: #eef2f7;
    font-style: normal;
    font-size: 12px;
    line-height: 22px;
    text-align: center;
}

.category-item:hover {
    color: var(--primary);
    border-color: #d8e4f6;
    background: #f7faff;
    transform: none;
}

.category-item.active {
    color: #fff;
    border-color: var(--primary);
    background: var(--primary);
    box-shadow: 0 12px 24px rgba(36, 107, 254, 0.22);
}

.category-item.active em {
    color: var(--primary);
    background: #fff;
}

.content-panel {
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 12px 30px rgba(25, 36, 58, 0.06);
    padding: 22px;
}

.panel-head {
    align-items: center;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.panel-kicker {
    color: #8a95a7;
}

.panel-head h2 {
    font-size: 24px;
}

.panel-meta {
    background: #eef2f7;
}

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

.friend-card {
    min-height: 118px;
    padding: 16px;
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    border-radius: 14px;
    background: #fff;
    box-shadow: none;
}

.friend-card::before {
    display: none;
}

.friend-card:hover {
    border-color: #c9d8ef;
    background: #fbfdff;
    box-shadow: 0 14px 30px rgba(25, 36, 58, 0.08);
    transform: translateY(-2px);
}

.card-logo-wrap {
    width: 52px;
    height: 52px;
    margin: 0;
}

.card-logo,
.card-logo-placeholder {
    border-radius: 12px;
    box-shadow: none;
}

.card-logo-placeholder {
    color: #1f5be5;
    background: #eef4ff;
    font-size: 18px;
}

.card-body {
    min-width: 0;
}

.card-name {
    margin-bottom: 5px;
    font-size: 16px;
}

.card-desc {
    min-height: 0;
    font-size: 13px;
    line-height: 1.55;
}

.card-tag {
    position: static;
    justify-self: end;
    align-self: start;
    max-width: 96px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    border-color: #d8e4f6;
    color: #4f5f75;
    background: #f5f8fc;
}

.card-open {
    grid-column: 3;
    justify-self: end;
    align-self: end;
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
}

.empty-state {
    margin-top: 14px;
    border-style: dashed;
}

.site-footer {
    background: rgba(251, 252, 255, 0.92);
}

.footer-apply-btn {
    border-radius: 10px;
    background: #fff;
}

.search-modal-content,
.apply-modal-content {
    border-radius: 18px;
}

.apply-form input,
.apply-form select,
.apply-form textarea {
    border-radius: 10px;
    background: #fbfdff;
}

.apply-cancel,
.apply-submit {
    border-radius: 10px;
}

@media (max-width: 960px) {
    .workspace-layout {
        grid-template-columns: 1fr;
    }

    .category-rail {
        position: static;
        padding: 12px;
    }

    .rail-title {
        padding-bottom: 10px;
    }

    .category-list {
        flex-direction: row;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .category-list::-webkit-scrollbar {
        display: none;
    }

    .category-item {
        width: auto;
        flex-shrink: 0;
        min-width: 128px;
    }
}

/* Remove hero summary card and keep the hero content full width. */
.design-home .hero-inner {
    position: relative;
    grid-template-columns: 1fr;
}

.design-home .hero-copy {
    max-width: 760px;
}

/* Designer refresh */
:root {
    --primary: #3157ff;
    --primary-dark: #243fc0;
    --primary-soft: #edf1ff;
    --green: #0f9f7a;
    --bg: #f7f5f0;
    --surface: #fffdfa;
    --surface-soft: #f4f0e8;
    --text: #1f2933;
    --muted: #73706b;
    --line: #e5dfd4;
    --shadow: 0 22px 60px rgba(54, 47, 38, 0.10);
    --shadow-strong: 0 26px 70px rgba(49, 87, 255, 0.14);
    --radius: 18px;
}

body {
    color: var(--text);
    background:
        radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.9), transparent 26%),
        linear-gradient(135deg, #fbfaf7 0%, #f1ede4 52%, #f8f7f2 100%);
}

.site-header {
    border-bottom: 1px solid rgba(229, 223, 212, 0.88);
    background: rgba(255, 253, 250, 0.82);
}

.header-inner {
    max-width: 1180px;
    height: 76px;
}

.site-brand {
    gap: 12px;
}

.brand-logo {
    height: 28px;
    border-radius: 9px;
}

.brand-name {
    color: #1d252e;
    font-size: 20px;
    font-weight: 820;
}

.search-form {
    width: 330px;
    height: 46px;
    border-color: rgba(31, 41, 51, 0.10);
    border-radius: 999px;
    background: rgba(255, 253, 250, 0.92);
    box-shadow: 0 12px 28px rgba(54, 47, 38, 0.06);
}

.search-input {
    font-size: 14px;
}

.search-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #1f2933;
}

.search-btn:hover {
    background: var(--primary);
}

.design-home {
    max-width: 1180px;
    padding: 0 24px 58px;
}

.design-home .hero-section {
    padding: 42px 0 26px;
}

.design-home .hero-inner {
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 26px;
    align-items: stretch;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
    overflow: visible;
}

.design-home .hero-inner::after {
    display: none;
}

.design-home .hero-copy {
    min-height: 320px;
    border: 1px solid rgba(229, 223, 212, 0.92);
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background:
        linear-gradient(135deg, rgba(255, 253, 250, 0.94), rgba(248, 244, 236, 0.86)),
        radial-gradient(circle at 78% 18%, rgba(49, 87, 255, 0.12), transparent 28%);
    box-shadow: var(--shadow);
    padding: 42px;
}

.design-home .hero-badge {
    width: max-content;
    border-color: rgba(49, 87, 255, 0.14);
    color: var(--primary);
    background: #f3f0ff;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.design-home .hero-copy h1 {
    max-width: 640px;
    margin-bottom: 14px;
    color: #1d252e;
    font-size: 54px;
    line-height: 1;
    font-weight: 880;
}

.design-home .hero-copy p {
    max-width: 560px;
    color: #615e59;
    font-size: 17px;
    line-height: 1.8;
}

.hero-category-card {
    min-height: 320px;
    border: 1px solid rgba(229, 223, 212, 0.95);
    border-radius: 30px;
    background: rgba(255, 253, 250, 0.84);
    box-shadow: var(--shadow);
    padding: 24px;
}

.hero-card-head {
    margin-bottom: 18px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}

.hero-card-head span {
    color: #1d252e;
    font-size: 18px;
    font-weight: 820;
}

.hero-card-head strong {
    color: var(--muted);
    font-size: 12px;
    font-weight: 760;
}

.design-home .category-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
    padding: 0;
    overflow: visible;
}

.design-home .category-item {
    min-width: 0;
    width: 100%;
    padding: 12px 13px;
    border: 1px solid rgba(229, 223, 212, 0.82);
    border-radius: 16px;
    color: #3e4650;
    background: rgba(255, 255, 255, 0.58);
    box-shadow: none;
}

.design-home .category-item:hover {
    color: var(--primary);
    border-color: rgba(49, 87, 255, 0.20);
    background: #fff;
}

.design-home .category-item.active {
    border-color: #1f2933;
    color: #fff;
    background: #1f2933;
    box-shadow: 0 16px 34px rgba(31, 41, 51, 0.18);
}

.design-home .category-item em {
    background: rgba(31, 41, 51, 0.08);
}

.design-home .category-item.active em {
    color: #1f2933;
    background: #fff;
}

.design-home .content-panel {
    border: 1px solid rgba(229, 223, 212, 0.95);
    border-radius: 30px;
    background: rgba(255, 253, 250, 0.78);
    box-shadow: var(--shadow);
    padding: 28px;
}

.design-home .panel-head {
    margin-bottom: 24px;
    padding-bottom: 0;
    border-bottom: 0;
}

.design-home .panel-kicker {
    color: var(--primary);
    font-size: 12px;
    letter-spacing: 0.08em;
}

.design-home .panel-head h2 {
    font-size: 31px;
    line-height: 1.1;
}

.design-home .panel-meta {
    color: #615e59;
    background: #f4f0e8;
}

.design-home .friend-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.design-home .friend-card {
    min-height: 232px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    border: 1px solid rgba(229, 223, 212, 0.9);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.70);
    box-shadow: none;
}

.design-home .friend-card:nth-child(6n + 1),
.design-home .friend-card:nth-child(6n + 5) {
    background: #f6f1ff;
}

.design-home .friend-card:nth-child(6n + 3) {
    background: #eef7f3;
}

.design-home .friend-card:hover {
    border-color: rgba(31, 41, 51, 0.18);
    background: #fff;
    box-shadow: 0 20px 46px rgba(54, 47, 38, 0.12);
    transform: translateY(-3px);
}

.design-home .card-logo-wrap {
    width: 56px;
    height: 56px;
    margin-bottom: 28px;
}

.design-home .card-logo,
.design-home .card-logo-placeholder {
    border-radius: 18px;
    box-shadow: 0 10px 20px rgba(31, 41, 51, 0.08);
}

.design-home .card-body {
    width: 100%;
}

.design-home .card-name {
    margin-bottom: 10px;
    font-size: 18px;
    line-height: 1.25;
}

.design-home .card-desc {
    color: #66635e;
    font-size: 13px;
    line-height: 1.75;
    -webkit-line-clamp: 3;
}

.design-home .card-tag {
    position: static;
    max-width: 100%;
    margin-top: auto;
    border-color: rgba(31, 41, 51, 0.08);
    color: #615e59;
    background: rgba(255, 255, 255, 0.66);
}

.design-home .card-open {
    grid-column: auto;
    margin-top: 10px;
    color: #1f2933;
    font-size: 12px;
}

.design-home .empty-state {
    margin-top: 0;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.62);
}

.site-footer {
    border-top-color: rgba(229, 223, 212, 0.9);
    background: rgba(255, 253, 250, 0.74);
}

.footer-apply-btn {
    border-color: rgba(31, 41, 51, 0.12);
    color: #1f2933;
    background: #fffdfa;
}

.footer-apply-btn:hover {
    border-color: #1f2933;
    background: #1f2933;
}

@media (max-width: 1080px) {
    .design-home .hero-inner {
        grid-template-columns: minmax(0, 1fr) 320px;
    }

    .design-home .hero-copy h1 {
        font-size: 46px;
    }

    .design-home .friend-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .header-inner {
        height: auto;
        padding: 14px 18px;
        flex-wrap: wrap;
    }

    .header-search,
    .search-form {
        width: 100%;
    }

    .design-home {
        padding: 0 18px 42px;
    }

    .design-home .hero-section {
        padding: 24px 0 18px;
    }

    .design-home .hero-inner {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .design-home .hero-copy,
    .hero-category-card,
    .design-home .content-panel {
        border-radius: 24px;
    }

    .design-home .hero-copy {
        min-height: 250px;
        padding: 30px;
    }

    .design-home .hero-copy h1 {
        font-size: 38px;
    }

    .hero-category-card {
        min-height: 0;
        padding: 18px;
    }

    .design-home .category-list {
        display: flex;
        flex-direction: row;
        gap: 10px;
        overflow-x: auto;
        padding-bottom: 2px;
        scrollbar-width: none;
    }

    .design-home .category-list::-webkit-scrollbar {
        display: none;
    }

    .design-home .category-item {
        width: auto;
        min-width: 138px;
        flex-shrink: 0;
    }
}

@media (max-width: 560px) {
    .brand-name {
        font-size: 18px;
    }

    .design-home {
        padding: 0 14px 34px;
    }

    .design-home .hero-copy {
        min-height: 218px;
        padding: 24px;
    }

    .design-home .hero-copy h1 {
        font-size: 32px;
    }

    .design-home .hero-copy p {
        font-size: 14px;
        line-height: 1.7;
    }

    .hero-card-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .design-home .content-panel {
        padding: 18px;
    }

    .design-home .panel-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
        margin-bottom: 18px;
    }

    .design-home .panel-head h2 {
        font-size: 26px;
    }

    .design-home .friend-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .design-home .friend-card {
        min-height: 198px;
        padding: 18px;
        border-radius: 20px;
    }

    .design-home .card-logo-wrap {
        width: 52px;
        height: 52px;
        margin-bottom: 22px;
    }

    .search-modal,
    .apply-modal {
        padding: 18px 12px;
        align-items: flex-start;
    }

    .search-modal-content,
    .apply-modal-content {
        border-radius: 18px;
        max-height: calc(100vh - 36px);
    }
}

/* Reference layout restore */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-soft: #eff6ff;
    --bg: #f6f9fe;
    --surface: #ffffff;
    --surface-soft: #f8fbff;
    --text: #102033;
    --muted: #64748b;
    --line: #dbe7f4;
    --shadow: 0 18px 46px rgba(37, 99, 235, 0.08);
    --shadow-strong: 0 22px 54px rgba(37, 99, 235, 0.14);
}

body {
    background:
        linear-gradient(180deg, #fbfdff 0%, #f4f8ff 38%, #f8fafc 100%);
}

.site-header {
    border-bottom: 1px solid rgba(219, 231, 244, 0.92);
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(18px);
}

.header-inner {
    max-width: 1120px;
    height: 74px;
    padding: 0 24px;
}

.brand-logo {
    height: 26px;
    border-radius: 8px;
}

.brand-name {
    color: var(--text);
    font-size: 21px;
    font-weight: 820;
}

.search-form {
    width: 320px;
    height: 44px;
    border: 1px solid rgba(203, 213, 225, 0.88);
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
}

.search-btn {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: var(--primary);
}

.search-btn:hover {
    background: var(--primary-dark);
}

.design-home {
    max-width: 1120px;
    padding: 0 24px 56px;
}

.design-home .hero-section {
    padding: 34px 0 18px;
}

.design-home .hero-inner {
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 24px;
    align-items: stretch;
    border: 1px solid rgba(219, 231, 244, 0.95);
    border-radius: 22px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(239, 246, 255, 0.92));
    box-shadow: var(--shadow);
    padding: 28px 32px;
    overflow: hidden;
}

.design-home .hero-inner::after {
    content: "";
    position: absolute;
    top: -55%;
    left: -45%;
    width: 30%;
    height: 210%;
    display: block;
    background: linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.10) 22%, rgba(255, 255, 255, 0.95) 50%, rgba(37, 99, 235, 0.16) 66%, transparent 100%);
    filter: blur(0.2px);
    transform: skewX(-18deg);
    animation: heroLightSweep 3.2s ease-in-out infinite;
    pointer-events: none;
}

.design-home .hero-inner::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at var(--hero-glow-x, 18%) 50%, rgba(37, 99, 235, 0.16), transparent 34%);
    animation: heroSoftGlow 3.2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes heroLightSweep {
    0% { left: -45%; opacity: 0; }
    12% { opacity: 1; }
    55% { left: 118%; opacity: 0.85; }
    70%, 100% { left: 118%; opacity: 0; }
}

@keyframes heroSoftGlow {
    0% { --hero-glow-x: 10%; opacity: 0.35; }
    45% { --hero-glow-x: 82%; opacity: 0.75; }
    100% { --hero-glow-x: 82%; opacity: 0; }
}

.design-home .hero-copy {
    position: relative;
    z-index: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
}

.design-home .hero-badge {
    width: max-content;
    margin-bottom: 10px;
    border: 0;
    color: var(--primary);
    background: transparent;
    padding: 0;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0.12em;
}

.design-home .hero-copy h1 {
    max-width: 640px;
    margin-bottom: 10px;
    color: var(--text);
    font-size: 42px;
    line-height: 1.05;
    font-weight: 880;
}

.design-home .hero-copy p {
    max-width: 560px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.65;
}

.hero-category-card {
    min-height: 0;
    align-self: center;
    border: 1px solid rgba(219, 231, 244, 0.98);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: none;
    padding: 24px;
}

.hero-category-card span {
    display: block;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.hero-category-card strong {
    display: block;
    margin-bottom: 8px;
    color: var(--text);
    font-size: 24px;
    line-height: 1.2;
}

.hero-category-card p {
    color: var(--muted);
    font-size: 13px;
}

.design-home .category-nav {
    margin: 0 0 22px;
}

.design-home .category-list {
    display: flex;
    flex-direction: row;
    gap: 6px;
    overflow-x: auto;
    padding: 2px 2px 8px;
    scrollbar-width: none;
}

.design-home .category-list::-webkit-scrollbar {
    display: none;
}

.design-home .category-item {
    width: auto;
    min-width: 0;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 5px 10px;
    border: 1px solid rgba(219, 231, 244, 0.98);
    border-radius: 999px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
    font-size: 12px;
    font-weight: 720;
}

.design-home .category-item em {
    min-width: 18px;
    border-radius: 999px;
    color: #7c8aa0;
    background: var(--primary-soft);
    font-style: normal;
    font-size: 10px;
    line-height: 17px;
    text-align: center;
}

.design-home .category-item:hover {
    color: var(--primary);
    border-color: rgba(37, 99, 235, 0.24);
    background: #fff;
    transform: translateY(-1px);
}

.design-home .category-item.active {
    border-color: var(--primary);
    color: #fff;
    background: var(--primary);
    box-shadow: 0 14px 34px rgba(37, 99, 235, 0.22);
}

.design-home .category-item.active em {
    color: var(--primary);
    background: #fff;
}

.design-home .content-panel {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
}

.design-home .panel-head {
    margin-bottom: 18px;
    padding-bottom: 0;
    border-bottom: 0;
    align-items: flex-end;
}

.design-home .panel-kicker {
    color: var(--primary);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0.12em;
}

.design-home .panel-head h2 {
    color: var(--text);
    font-size: 28px;
    line-height: 1.2;
}

.design-home .panel-meta {
    color: var(--muted);
    background: var(--primary-soft);
}

.design-home .friend-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.design-home .friend-card {
    position: relative;
    min-height: 150px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border: 1px solid rgba(219, 231, 244, 0.96);
    border-radius: 14px;
    color: inherit;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.design-home .friend-card::before {
    content: "";
    position: absolute;
    top: -45%;
    left: -78%;
    width: 46%;
    height: 190%;
    display: block;
    background: linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.10) 22%, rgba(255, 255, 255, 0.82) 48%, rgba(37, 99, 235, 0.12) 65%, transparent 100%);
    transform: skewX(-18deg);
    animation: cardLightSweep 4.6s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

.design-home .friend-card:nth-child(2n)::before {
    animation-delay: 0.9s;
}

.design-home .friend-card:nth-child(3n)::before {
    animation-delay: 1.6s;
}

.design-home .friend-card:nth-child(5n)::before {
    animation-delay: 2.3s;
}

.design-home .friend-card > * {
    position: relative;
    z-index: 1;
}

@keyframes cardLightSweep {
    0% { left: -78%; opacity: 0; }
    14% { opacity: 0.86; }
    38% { left: 126%; opacity: 0; }
    100% { left: 126%; opacity: 0; }
}

.design-home .friend-card:hover {
    border-color: rgba(37, 99, 235, 0.28);
    background: #fff;
    box-shadow: var(--shadow-strong);
    transform: translateY(-4px);
}

.design-home .friend-card:nth-child(n) {
    background: rgba(255, 255, 255, 0.96);
}

.design-home .card-logo-wrap {
    width: 38px;
    height: 38px;
    margin: 22px 0 10px;
}

.design-home .card-logo,
.design-home .card-logo-placeholder {
    border-radius: 12px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.10);
}

.design-home .card-logo-placeholder {
    color: var(--primary);
    background: linear-gradient(135deg, #eff6ff, #f8fbff);
    font-size: 15px;
}

.design-home .card-body {
    width: 100%;
}

.design-home .card-name {
    margin-bottom: 4px;
    color: var(--text);
    font-size: 14px;
    line-height: 1.25;
}

.design-home .card-desc {
    min-height: 34px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.5;
    -webkit-line-clamp: 2;
}

.design-home .card-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    max-width: calc(100% - 20px);
    padding: 2px 8px;
    font-size: 10px;
    margin: 0;
    border-color: rgba(37, 99, 235, 0.12);
    color: var(--primary);
    background: var(--primary-soft);
}

.design-home .card-open {
    margin-top: auto;
    color: var(--primary);
    font-size: 11px;
    font-weight: 850;
}

.design-home .empty-state {
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.84);
}

@media (max-width: 900px) {
    .design-home .hero-inner {
        grid-template-columns: 1fr;
        padding: 26px 28px;
    }

    .hero-category-card {
        align-self: stretch;
    }

    .design-home .hero-copy h1 {
        font-size: 36px;
    }

    .design-home .friend-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1120px) and (min-width: 901px) {
    .design-home .friend-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.site-footer .footer-main {
    gap: 10px;
}

.site-footer .footer-links {
    gap: 10px;
}

.site-footer .footer-links a,
.site-footer .footer-apply-btn {
    position: relative;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 14px;
    border: 1px solid rgba(37, 99, 235, 0.16);
    border-radius: 999px;
    color: var(--primary);
    background: rgba(239, 246, 255, 0.78);
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    box-shadow: none;
    overflow: hidden;
    transition: color var(--speed), background var(--speed), border-color var(--speed), transform var(--speed);
}

.site-footer .footer-apply-btn {
    background: rgba(239, 246, 255, 0.78);
}

.site-footer .footer-links a::before,
.site-footer .footer-apply-btn::before {
    content: "";
    position: absolute;
    top: -40%;
    left: -70%;
    width: 48%;
    height: 180%;
    background: linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.18) 28%, rgba(255, 255, 255, 0.78) 50%, rgba(255, 255, 255, 0.18) 72%, transparent 100%);
    transform: skewX(-18deg);
    animation: footerLightSweep 3.8s ease-in-out infinite;
    pointer-events: none;
}

.site-footer .footer-links a:nth-child(2n)::before {
    animation-delay: 0.8s;
}

.site-footer .footer-links a:nth-child(3n)::before,
.site-footer .footer-apply-btn::before {
    animation-delay: 1.5s;
}

@keyframes footerLightSweep {
    0% { left: -70%; opacity: 0; }
    18% { opacity: 0.9; }
    42% { left: 122%; opacity: 0; }
    100% { left: 122%; opacity: 0; }
}

.site-footer .footer-links a:hover,
.site-footer .footer-apply-btn:hover {
    color: #fff;
    border-color: var(--primary);
    background: var(--primary);
    transform: translateY(-1px);
}

.site-footer .footer-apply-btn:hover {
    background: var(--primary);
}

.apply-modal-content {
    background: #fff;
}

.apply-form input,
.apply-form select,
.apply-form textarea {
    background: rgba(255, 255, 255, 0.88);
}

@media (max-width: 767px) {
    .header-inner {
        height: auto;
        min-height: 66px;
        padding: 12px 16px;
        flex-wrap: wrap;
        gap: 12px;
    }

    .header-search,
    .search-form {
        width: 100%;
    }

    .design-home {
        padding: 0 16px 38px;
    }

    .design-home .hero-section {
        padding: 20px 0 16px;
    }

    .design-home .hero-inner {
        border-radius: 18px;
        padding: 22px 20px;
    }

    .design-home .hero-copy h1 {
        font-size: 30px;
    }

    .design-home .hero-copy p {
        font-size: 14px;
    }

    .hero-category-card {
        border-radius: 18px;
        padding: 18px;
    }

    .hero-category-card strong {
        font-size: 20px;
    }

    .design-home .category-nav {
        margin-bottom: 18px;
    }

    .design-home .category-item {
        padding: 5px 10px;
        font-size: 12px;
    }

    .design-home .panel-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .design-home .panel-head h2 {
        font-size: 24px;
    }

    .design-home .friend-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .design-home .friend-card {
        min-height: 150px;
        padding: 14px;
        border-radius: 16px;
    }
}

@media (max-width: 767px) {
    .header-inner {
        height: auto;
        padding: 12px 16px;
    }

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

    .hero-inner {
        padding: 26px 22px;
        display: block;
    }

    .hero-inner::after {
        right: -24px;
        top: 36px;
    }

    .hero-copy h1 {
        font-size: 30px;
    }

    .hero-stat {
        width: max-content;
        margin: 20px 0 0;
        text-align: left;
    }

    .main-content {
        padding: 0 16px 36px;
    }

    .content-panel {
        padding: 16px;
    }

    .panel-head {
        align-items: flex-start;
    }

    .friend-grid {
        grid-template-columns: 1fr;
    }

    .friend-card {
        min-height: 108px;
        grid-template-columns: 48px minmax(0, 1fr);
        gap: 12px;
    }

    .card-logo-wrap {
        width: 48px;
        height: 48px;
    }

    .card-tag,
    .card-open {
        grid-column: 2;
        justify-self: start;
    }

    .card-tag {
        margin-top: 4px;
        align-self: auto;
    }

    .card-open {
        display: none;
    }
}
