/* ============================================
   企業百寶袋 - enterprise_hub 风格
   ============================================ */

:root {
    --blue: #01A4EA;
    --blue-dark: #0178AC;
    --blue-hover: #0188C2;
    --blue-light: #E5F6FD;
    --red: #E70012;
    --red-hover: #C9000F;
    --red-dark: #900000;
    --yellow: #F1C40F;
    --yellow-dark: #D4AC0D;
    --yellow-ring: #B9950B;
    --bg: #F4F9F9;
    --slate-50: #f8fafc;
    --slate-200: #e2e8f0;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --orange: #E68A00;
    --orange-bg: #FFF9E6;
    --red-bg: #FDE5E7;
    --font: -apple-system, BlinkMacSystemFont, 'PingFang TC', 'Microsoft JhengHei', 'Segoe UI', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--slate-800);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: var(--blue-light);
    color: var(--blue);
}

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

/* ========== Header ========== */
.site-header {
    background: var(--blue);
    position: relative;
    padding: 48px 24px 64px;
    box-shadow: 0 4px 20px rgba(1, 164, 234, 0.35);
}

/* 红色领圈 */
.collar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 32px;
    background: var(--red);
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
    z-index: 10;
    display: flex;
    justify-content: center;
}

/* 黄色铃铛 */
.bell {
    position: absolute;
    bottom: -24px;
    width: 64px;
    height: 64px;
    background: var(--yellow);
    border-radius: 50%;
    border: 2px solid var(--yellow-dark);
    box-shadow: 0 4px 10px rgba(0,0,0,.2);
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px;
}

.bell-ring {
    width: 40px;
    height: 2px;
    border-top: 2px solid var(--yellow-ring);
    border-radius: 50%;
    margin-bottom: 6px;
    opacity: .8;
}

.bell-dot {
    width: 12px;
    height: 12px;
    background: var(--yellow-ring);
    border-radius: 50%;
    margin-bottom: 4px;
}

.bell-tail {
    width: 2px;
    height: 16px;
    background: var(--yellow-ring);
    border-radius: 2px;
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
    margin-top: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.header-title {
    text-align: center;
    margin-bottom: 32px;
}

.header-title h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    color: #fff;
    letter-spacing: 0.12em;
    margin-bottom: 12px;
    text-shadow: 0 3px 0 var(--blue-dark), 0 6px 10px rgba(0,0,0,.2);
}

.header-title p {
    color: #fff;
    font-weight: 700;
    font-size: 1.125rem;
    opacity: .92;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,.15));
}

.sparkle {
    color: var(--yellow);
    flex-shrink: 0;
}

/* 四次元口袋 */
.pocket {
    width: 100%;
    max-width: 768px;
    background: #fff;
    border-radius: 0 0 120px 120px;
    box-shadow:
        inset 0 -12px 24px rgba(0,0,0,.06),
        0 10px 25px rgba(1, 164, 234, .3);
    border-top: 8px solid var(--slate-50);
    padding: 32px 32px 48px;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.pocket-opening {
    position: absolute;
    top: 0;
    width: 85%;
    height: 24px;
    background: var(--slate-50);
    border-radius: 0 0 50% 50%;
    opacity: .6;
}

.search-wrap {
    width: 100%;
    position: relative;
    z-index: 10;
    margin-top: 16px;
}

.search-wrap .search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--blue);
    pointer-events: none;
}

.search-wrap input {
    width: 100%;
    padding: 16px 24px 16px 56px;
    background: var(--slate-50);
    border: 2px solid var(--slate-200);
    border-radius: 999px;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--slate-700);
    font-family: var(--font);
    outline: none;
    box-shadow: inset 0 2px 4px rgba(0,0,0,.04);
    transition: all .2s;
}

.search-wrap input::placeholder {
    color: var(--slate-400);
    font-weight: 600;
}

.search-wrap input:hover {
    background: #fff;
}

.search-wrap input:focus {
    background: #fff;
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(1, 164, 234, .2);
}

.admin-btn {
    margin-top: 32px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--red);
    color: #fff;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1.125rem;
    box-shadow: 0 4px 0 var(--red-dark);
    transition: all .15s;
}

.admin-btn:hover {
    background: var(--red-hover);
    transform: translateY(2px);
    box-shadow: 0 2px 0 var(--red-dark);
}

/* ========== Main ========== */
.main-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 24px 48px;
}

.tool-section {
    margin-bottom: 40px;
    animation: fadeIn .4s ease;
}

.tool-section.hidden-section {
    display: none;
}

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

.section-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding-left: 12px;
    border-left: 6px solid var(--blue);
}

.section-head[data-type="tool"] { border-left-color: var(--orange); }
.section-head[data-type="url"]  { border-left-color: var(--red); }

.section-icon {
    padding: 7px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

.section-icon.theme-system { background: var(--blue-light); color: var(--blue); }
.section-icon.theme-tool   { background: var(--orange-bg); color: var(--orange); }
.section-icon.theme-url    { background: var(--red-bg); color: var(--red); }

.section-head h2 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--slate-800);
    letter-spacing: .02em;
}

.section-icon svg {
    width: 18px;
    height: 18px;
}

.section-count {
    margin-left: 4px;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--slate-200);
    color: var(--slate-600);
    font-size: .875rem;
    font-weight: 700;
    box-shadow: inset 0 1px 2px rgba(0,0,0,.06);
}

@media (max-width: 768px) {
    .pocket { border-radius: 0 0 80px 80px; padding: 24px 20px 40px; }
}

@media (max-width: 480px) {
    .site-header { padding: 40px 16px 48px; }
    .main-content { padding: 28px 16px 36px; }
}

/* ========== Tool List Panel ========== */
.tool-panel {
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--slate-200);
    box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
    overflow: hidden;
}

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

@media (min-width: 1100px) {
    .tool-list { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
    .tool-list { grid-template-columns: 1fr; }
}

.tool-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-bottom: 1px solid #f1f5f9;
    border-right: 1px solid #f1f5f9;
    transition: background .15s ease;
    min-height: 62px;
}

.tool-item.hidden { display: none; }

.tool-item:hover {
    background: linear-gradient(90deg, var(--blue-light) 0%, #fff 100%);
}

.tool-panel.theme-tool .tool-item:hover {
    background: linear-gradient(90deg, var(--orange-bg) 0%, #fff 100%);
}

.tool-panel.theme-url .tool-item:hover {
    background: linear-gradient(90deg, var(--red-bg) 0%, #fff 100%);
}

.tool-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tool-icon svg {
    width: 18px;
    height: 18px;
    stroke-width: 2;
}

.tool-icon.theme-system { background: var(--blue-light); color: var(--blue); }
.tool-icon.theme-tool   { background: var(--orange-bg); color: var(--orange); }
.tool-icon.theme-url    { background: var(--red-bg); color: var(--red); }

.tool-item-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.tool-name {
    font-size: .9rem;
    font-weight: 700;
    color: var(--slate-800);
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tool-item:hover .tool-name {
    color: var(--blue);
}

.tool-desc {
    font-size: .75rem;
    font-weight: 500;
    color: var(--slate-500);
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tool-item-arrow {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--slate-400);
    background: transparent;
    transition: all .15s;
}

.tool-item-arrow svg {
    width: 14px;
    height: 14px;
}

.tool-item:hover .tool-item-arrow {
    background: var(--blue-light);
    color: var(--blue);
}

/* ========== Empty State ========== */
.empty-state {
    text-align: center;
    padding: 96px 24px;
    background: #fff;
    border-radius: 40px;
    border: 2px dashed var(--slate-200);
}

.empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: var(--slate-50);
    color: var(--slate-400);
    margin-bottom: 24px;
    box-shadow: inset 0 2px 8px rgba(0,0,0,.06);
}

.empty-icon svg {
    width: 40px;
    height: 40px;
}

.empty-state h3 {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--slate-700);
    margin-bottom: 12px;
}

.empty-state p {
    color: var(--slate-500);
    font-weight: 500;
    font-size: 1.125rem;
}

.empty-state a {
    color: var(--blue);
    font-weight: 700;
}

.empty-state a:hover {
    text-decoration: underline;
}

/* ========== Footer ========== */
.site-footer {
    text-align: center;
    padding: 24px;
    color: var(--slate-400);
    font-size: .875rem;
    font-weight: 500;
}

.site-footer a {
    color: var(--blue);
    font-weight: 600;
}

.site-footer a:hover {
    text-decoration: underline;
}
