/* ========== 站点首页 样式 ========== */
:root {
    --brand: #7c3aed;
    --brand-2: #a855f7;
    --brand-dark: #5b21b6;
    --text: #1f2937;
    --text-soft: #6b7280;
    --line: #eceef3;
    --bg: #f7f8fc;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}
[v-cloak] { display: none; }

/* 顶部导航 */
.navbar {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255,255,255,.9);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--line);
}
.navbar-inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 22px;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 17px;
    text-decoration: none;
    color: var(--text);
}
.navbar-brand .logo {
    width: 34px; height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
    box-shadow: 0 6px 14px -4px rgba(124, 58, 237, .5);
}
.navbar-right {
    display: flex;
    align-items: center;
    gap: 14px;
}
.user-chip {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 5px 12px 5px 5px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 30px;
    cursor: pointer;
    transition: all .2s ease;
    text-decoration: none;
    color: inherit;
}
.user-chip:hover {
    border-color: var(--brand);
    box-shadow: 0 4px 12px -4px rgba(124, 58, 237, .3);
}
.user-chip .uname { font-size: 14px; font-weight: 600; }
.logout-btn {
    padding: 8px 14px !important;
    font-size: 13px !important;
    color: var(--text-soft) !important;
    background: #fff !important;
    border: 1px solid var(--line) !important;
    border-radius: 10px !important;
    transition: all .2s ease !important;
}
.logout-btn:hover {
    color: #ef4444 !important;
    border-color: #fecaca !important;
    background: #fef2f2 !important;
}

/* 主容器 */
.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 28px 22px 60px;
}

/* Hero 横幅 */
.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
    border-radius: 22px;
    padding: 40px 36px;
    color: #fff;
    box-shadow: 0 20px 40px -16px rgba(124, 58, 237, .5);
    margin-bottom: 8px;
}
.hero::after {
    content: "";
    position: absolute;
    right: -40px; top: -60px;
    width: 200px; height: 200px;
    border-radius: 50%;
    background: rgba(255,255,255,.14);
}
.hero::before {
    content: "";
    position: absolute;
    right: 60px; bottom: -90px;
    width: 160px; height: 160px;
    border-radius: 50%;
    background: rgba(255,255,255,.1);
}
.hero-content { position: relative; z-index: 1; }
.hero h1 {
    margin: 0 0 10px;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: .5px;
}
.hero p {
    margin: 0;
    font-size: 14px;
    opacity: .92;
    line-height: 1.7;
}

/* 区块标题 */
.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 34px 0 16px;
}
.section-title h2 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}
.section-title h2 .bar {
    width: 4px; height: 16px;
    border-radius: 3px;
    background: linear-gradient(var(--brand), var(--brand-2));
}
.section-title .section-sub {
    font-size: 12.5px;
    color: var(--text-soft);
}

/* 网站卡片 */
.site-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.site-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 24px 22px;
    cursor: pointer;
    transition: all .22s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    position: relative;
    overflow: hidden;
}
.site-card::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .22s ease;
    background: linear-gradient(135deg, rgba(124, 58, 237, .03) 0%, transparent 100%);
    pointer-events: none;
}
.site-card:hover {
    transform: translateY(-3px);
    border-color: transparent;
    box-shadow: 0 16px 30px -14px rgba(124, 58, 237, .35);
}
.site-card:hover::before { opacity: 1; }
.site-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
    color: #fff;
}
.site-icon.c-ai { background: linear-gradient(135deg, #3b82f6, #60a5fa); }
.site-icon.c-web { background: linear-gradient(135deg, #10b981, #34d399); }
.site-body { flex: 1; min-width: 0; }
.site-name {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 6px;
}
.site-desc {
    font-size: 13px;
    color: var(--text-soft);
    line-height: 1.6;
    margin-bottom: 10px;
}
.site-arrow {
    color: #c7cbd6;
    font-size: 18px;
    align-self: center;
    transition: all .2s ease;
    flex-shrink: 0;
}
.site-card:hover .site-arrow { transform: translateX(4px); color: var(--brand); }

/* 业务服务卡片 */
.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.service-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 26px 24px;
    transition: all .22s ease;
    position: relative;
    overflow: hidden;
}
.service-card::after {
    content: "";
    position: absolute;
    top: 0; right: 0;
    width: 80px; height: 80px;
    border-radius: 50%;
    opacity: .06;
    transform: translate(30px, -30px);
}
.service-card:hover {
    transform: translateY(-3px);
    border-color: transparent;
    box-shadow: 0 16px 32px -14px rgba(0,0,0,.15);
}
.service-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px;
    color: #fff;
    margin-bottom: 16px;
}
.service-icon.s1 { background: linear-gradient(135deg, #8b5cf6, #a78bfa); }
.service-icon.s2 { background: linear-gradient(135deg, #f59e0b, #fbbf24); }
.service-icon.s3 { background: linear-gradient(135deg, #06b6d4, #22d3ee); }
.service-card::after { background: currentColor; }
.service-card:nth-child(1) { color: #8b5cf6; }
.service-card:nth-child(2) { color: #f59e0b; }
.service-card:nth-child(3) { color: #06b6d4; }
.service-name {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}
.service-desc {
    font-size: 13px;
    color: var(--text-soft);
    line-height: 1.7;
    margin-bottom: 14px;
    min-height: 62px;
}
.service-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* 联系卡片 */
.contact-card {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-radius: 16px;
    padding: 28px 30px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.contact-card .ct-text h3 {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 700;
}
.contact-card .ct-text p {
    margin: 0;
    font-size: 13px;
    opacity: .8;
    line-height: 1.6;
}
.contact-card .ct-btn {
    background: #fff;
    color: #1e293b;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s ease;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
.contact-card .ct-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -6px rgba(255,255,255,.3);
}

/* ========== 移动端适配 ========== */
@media (max-width: 768px) {
    .service-grid { grid-template-columns: 1fr; gap: 12px; }
    .service-desc { min-height: 0; }
    .site-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .navbar-inner { padding: 0 14px; height: 56px; }
    .navbar-brand { font-size: 15px; }
    .navbar-brand .logo { width: 30px; height: 30px; font-size: 14px; }
    .user-chip .uname { display: none; }
    .logout-btn { padding: 6px 10px !important; font-size: 12px !important; }
    .container { padding: 18px 14px 40px; }
    .hero { padding: 28px 22px; border-radius: 18px; }
    .hero h1 { font-size: 22px; }
    .hero p { font-size: 13px; }
    .site-card { padding: 20px 18px; }
    .site-icon { width: 46px; height: 46px; font-size: 20px; }
    .service-icon { width: 46px; height: 46px; font-size: 20px; margin-bottom: 12px; }
    .service-card { padding: 20px 18px; }
    .contact-card { padding: 22px 20px; }
    .section-title { margin: 26px 0 14px; }
    .section-title h2 { font-size: 15.5px; }
    .section-title .section-sub { display: none; }
}
