/* ============================================================
   初识云网络 · 服务器一键运维工具箱
   大厂参考风格：白底 + 腾讯蓝 + 极简卡片
   ============================================================ */

:root {
    --brand:      #2494F2;
    --brand-dark: #1A5FBF;
    --brand-soft: #E8F2FE;
    --bg:         #ffffff;
    --bg-page:    #F5F7FA;
    --text:       #1F2937;
    --text-soft:  #4B5563;
    --text-muted: #9CA3AF;
    --border:     #E5E7EB;
    --shadow-sm:   0 1px 3px rgba(0,0,0,0.07);
    --shadow-md:   0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg:   0 8px 28px rgba(36,148,242,0.12);
    --radius:      10px;
    --radius-lg:   14px;
}

* { box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-page);
    color: var(--text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

/* =================== 顶部导航栏 =================== */
.navbar-brand-bar {
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 0;
    box-shadow: var(--shadow-sm);
}

.brand-area { min-height: 60px; align-items: center; }

.logo-box {
    height: 40px;
    width: auto;
    max-width: 140px;
    border-radius: 6px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    border: none;
    box-shadow: none;
}
.logo-box .logo-img {
    height: 40px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    background: transparent;
}
.logo-box.no-logo::before {
    content: "云";
    color: var(--brand);
    font-weight: 700;
    font-size: 20px;
    font-family: system-ui;
}

.brand-name {
    color: var(--brand);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1.2;
}
.brand-sub {
    color: var(--text-muted);
    font-size: 0.72rem;
    letter-spacing: 0.8px;
    margin-top: 2px;
}

/* =================== Hero 腾讯蓝区 =================== */
.hero-enterprise {
    background: linear-gradient(135deg, #0055CC 0%, #2494F2 50%, #3B8EEF 100%);
    position: relative;
    padding: 60px 0 70px;
    overflow: hidden;
}
.hero-enterprise::before {
    content: "";
    position: absolute;
    top: -150px; right: -150px;
    width: 500px; height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    pointer-events: none;
}
.hero-enterprise::after {
    content: "";
    position: absolute;
    bottom: -150px; left: -150px;
    width: 500px; height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content { position: relative; text-align: center; color: #fff; }

.hero-label {
    display: inline-flex;
    align-items: center;
    color: rgba(255,255,255,0.9);
    font-size: 0.82rem;
    letter-spacing: 1px;
    padding: 5px 16px;
    border-radius: 999px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
}
.tag-dot {
    display: inline-block;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #fff;
    margin-right: 8px;
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.5; transform: scale(1.3); }
}

.hero-title {
    font-size: 2.3rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-top: 16px;
    color: #fff;
}
.hero-desc {
    font-size: 1rem;
    color: rgba(255,255,255,0.82);
    letter-spacing: 0.5px;
}

/* =================== 脚本命令卡片 =================== */
.cmd-card {
    max-width: 880px;
    margin: 0 auto;
    text-align: center;
    background: rgba(255,255,255,0.13);
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: var(--radius-lg);
    padding: 20px 24px 22px;
    backdrop-filter: blur(10px);
}

.cmd-card__label {
    color: rgba(255,255,255,0.9);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.8px;
    text-align: left;
}

/* 命令文本区：一行显示 */
.cmd-text {
    background: rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    padding: 14px 18px;
    font-family: "JetBrains Mono", "SF Mono", Consolas, Menlo, monospace;
    font-size: 0.85rem;
    color: #E8F0FE;
    text-align: center;
    white-space: nowrap;
    overflow-x: auto;
    line-height: 1.6;
    margin: 10px 0 14px;
}
.cmd-text::-webkit-scrollbar { height: 3px; }
.cmd-text::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.25); border-radius: 2px; }
.cmd-text code {
    color: #E8F0FE;
    background: transparent;
    padding: 0;
    font-size: inherit;
}

/* 复制按钮 */
.copy-btn {
    background: #fff;
    color: #0055CC;
    border: none;
    padding: 6px 14px;
    font-size: 0.82rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    cursor: pointer;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.copy-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.2);
}
.copy-btn:active { transform: translateY(0); }

/* 块级复制按钮 */
.copy-btn-block {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 30px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 8px;
    background: #fff;
    color: #0055CC;
    border: none;
}
.copy-btn-block:hover {
    background: #F0F7FF;
    transform: translateY(-2px);
    box-shadow: 0 4px 18px rgba(0,0,0,0.2);
}

.cmd-hint {
    color: rgba(255,255,255,0.65);
}
.cmd-hint i { color: rgba(255,255,255,0.75); }

/* =================== 环境支持标签 =================== */
.env-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}
.env-tag {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.9);
    padding: 5px 14px;
    border-radius: 6px;
    font-size: 0.82rem;
    transition: all 0.2s ease;
}
.env-tag:hover {
    background: rgba(255,255,255,0.2);
}

/* =================== 区块标题 =================== */
.section-heading {
    padding: 10px 0 6px;
}
.eyebrow {
    color: var(--brand);
    font-size: 0.72rem;
    letter-spacing: 2.5px;
    font-weight: 600;
    text-transform: uppercase;
}
.section-title {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 0.5px;
}
.section-sub {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* =================== 分类卡片 =================== */
.category-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 26px 22px;
    height: 100%;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}
.category-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--brand);
}
.category-card:hover .cat-icon {
    transform: scale(1.05);
}

.cat-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.25rem;
    margin-bottom: 14px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease;
}
.cat-icon-blue   { background: linear-gradient(135deg, #2494F2 0%, #3B8EEF 100%); }
.cat-icon-green  { background: linear-gradient(135deg, #10B981 0%, #34D399 100%); }
.cat-icon-orange { background: linear-gradient(135deg, #F59E0B 0%, #FBBF24 100%); }
.cat-icon-purple { background: linear-gradient(135deg, #8B5CF6 0%, #A78BFA 100%); }

.cat-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text);
}
.cat-desc {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 16px;
}

.cat-list {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid var(--border);
    padding-top: 14px;
}
.cat-list li {
    font-size: 0.85rem;
    color: var(--text-soft);
    padding: 4px 0;
    display: flex;
    align-items: center;
}
.cat-list li i {
    font-size: 0.65rem;
    margin-right: 10px;
    color: var(--brand);
    opacity: 0.7;
}

.text-primary-soft { color: var(--brand) !important; }

/* =================== 特性介绍 =================== */
.feature-item {
    display: flex;
    align-items: flex-start;
    background: var(--bg);
    padding: 20px 22px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    height: 100%;
}
.feature-item h5 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
}
.fi-icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    background: var(--brand-soft);
    color: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    margin-right: 14px;
    flex-shrink: 0;
}

/* =================== 使用步骤 =================== */
.step-card {
    position: relative;
    background: var(--bg);
    padding: 26px 22px 20px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    height: 100%;
    transition: all 0.2s ease;
}
.step-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--brand);
}
.step-num {
    position: absolute;
    top: -14px;
    left: 22px;
    background: linear-gradient(135deg, #0055CC 0%, #2494F2 100%);
    color: #fff;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1px;
    box-shadow: 0 3px 10px rgba(36,148,242,0.25);
}
.step-card h5 {
    font-size: 0.98rem;
    font-weight: 600;
    margin-top: 8px;
    color: var(--text);
}

/* =================== 页脚 =================== */
.footer-enterprise {
    background: #fff;
    color: var(--text-muted);
    padding: 28px 0;
    border-top: 1px solid var(--border);
    margin-top: 40px;
}
.footer-logo {
    width: 40px; height: 40px;
    border-radius: 8px;
    background: linear-gradient(135deg, #0055CC 0%, #2494F2 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}
.footer-enterprise .fw-semibold { color: var(--text); font-size: 0.92rem; }
.footer-sub { font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; }

/* =================== 响应式 =================== */
@media (max-width: 992px) {
    .hero-enterprise { padding: 50px 0 60px; }
    .hero-title { font-size: 2rem; }
}
@media (max-width: 768px) {
    .hero-enterprise { padding: 40px 0 50px; }
    .hero-title { font-size: 1.65rem; }
    .hero-desc  { font-size: 0.95rem; }
    .cmd-card   { padding: 16px; }
    .cmd-text   { font-size: 0.78rem; }
    .copy-btn-block { font-size: 0.85rem; padding: 9px 20px; }
    .section-title { font-size: 1.4rem; }
}
@media (max-width: 576px) {
    .hero-title { font-size: 1.4rem; }
    .brand-sub { display: none; }
    .brand-name { font-size: 0.9rem; }
    .logo-box { height: 32px; max-width: 110px; }
    .logo-box .logo-img { height: 32px; max-width: 110px; }
    .cmd-text { font-size: 0.72rem; }
}
