/* 智行未来 - 企业门户公共样式 */
*, *::before, *::after { box-sizing: border-box; }
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    color: #1d2129;
    background: #f7f8fa;
}
a { color: #165dff; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* 顶部导航 */
.site-header {
    background: #fff;
    border-bottom: 1px solid #e5e6eb;
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.logo {
    font-size: 20px;
    font-weight: 700;
    color: #165dff;
    text-decoration: none;
}
.logo:hover { text-decoration: none; }
.nav-toggle { display: none; }
.nav-toggle-label {
    display: none;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    padding: 8px;
}
.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 8px;
}
.main-nav a {
    display: block;
    padding: 8px 14px;
    color: #4e5969;
    border-radius: 6px;
    font-size: 15px;
    text-decoration: none;
    transition: background .2s, color .2s;
}
.main-nav a:hover,
.main-nav a.active {
    background: #e8f3ff;
    color: #165dff;
    text-decoration: none;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, #165dff 0%, #0e42c2 100%);
    color: #fff;
    padding: 72px 0;
    text-align: center;
}
.hero h1 { margin: 0 0 16px; font-size: clamp(28px, 5vw, 42px); font-weight: 700; }
.hero p { margin: 0 auto 28px; max-width: 640px; font-size: 17px; opacity: .92; }
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: transform .15s, box-shadow .15s;
}
.btn-primary { background: #fff; color: #165dff; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,.15); text-decoration: none; }
.btn-outline { border: 2px solid #fff; color: #fff; margin-left: 12px; }
.btn-outline:hover { background: rgba(255,255,255,.15); text-decoration: none; }

/* 区块 */
.section { padding: 56px 0; }
.section-alt { background: #fff; }
.section-title {
    text-align: center;
    margin: 0 0 12px;
    font-size: 28px;
    font-weight: 700;
}
.section-desc {
    text-align: center;
    color: #86909c;
    margin: 0 auto 40px;
    max-width: 560px;
}

/* 卡片网格 */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.card {
    background: #fff;
    border: 1px solid #e5e6eb;
    border-radius: 12px;
    padding: 28px;
    transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: 0 8px 24px rgba(22,93,255,.08); transform: translateY(-2px); }
.card-icon {
    width: 48px;
    height: 48px;
    background: #e8f3ff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 16px;
}
.card h3 { margin: 0 0 10px; font-size: 18px; }
.card p { margin: 0; color: #4e5969; font-size: 14px; }

/* 页面标题区 */
.page-header {
    background: #fff;
    border-bottom: 1px solid #e5e6eb;
    padding: 40px 0;
}
.page-header h1 { margin: 0; font-size: 32px; }
.page-header p { margin: 8px 0 0; color: #86909c; }

/* 内容区 */
.content-block { padding: 48px 0; }
.content-block p { margin: 0 0 16px; color: #4e5969; }
.content-block h2 { margin: 32px 0 16px; font-size: 22px; }
.content-block ul { padding-left: 20px; color: #4e5969; }
.content-block li { margin: 8px 0; }

/* 新闻列表 */
.news-list { list-style: none; padding: 0; margin: 0; }
.news-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #e5e6eb;
    gap: 16px;
}
.news-item:first-child { padding-top: 0; }
.news-item a { font-size: 16px; font-weight: 500; color: #1d2129; }
.news-item a:hover { color: #165dff; }
.news-date { color: #86909c; font-size: 14px; white-space: nowrap; }

/* 联系表单 */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
.contact-info h3 { margin: 0 0 16px; }
.contact-info p { margin: 0 0 12px; color: #4e5969; }
.contact-form label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 500; }
.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e5e6eb;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 16px;
    font-family: inherit;
}
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form button {
    background: #165dff;
    color: #fff;
    border: none;
    padding: 12px 32px;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
}
.contact-form button:hover { background: #0e42c2; }

/* 案例条 */
.case-bar {
    background: #fff;
    border: 1px solid #e5e6eb;
    border-radius: 12px;
    padding: 24px 28px;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.case-bar h3 { margin: 0 0 4px; font-size: 17px; }
.case-bar p { margin: 0; color: #86909c; font-size: 14px; }
.case-tag {
    background: #e8f3ff;
    color: #165dff;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 13px;
}

/* 页脚 */
.site-footer {
    background: #1d2129;
    color: #c9cdd4;
    padding: 48px 0 24px;
    margin-top: 48px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 32px;
}
.footer-grid h4 { color: #fff; margin: 0 0 16px; font-size: 15px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin: 8px 0; }
.footer-grid a { color: #c9cdd4; font-size: 14px; }
.footer-grid a:hover { color: #fff; }
.footer-bottom {
    border-top: 1px solid #4e5969;
    padding-top: 20px;
    text-align: center;
    font-size: 13px;
    color: #86909c;
}

/* 移动端 */
@media (max-width: 768px) {
    .nav-toggle-label { display: block; }
    .main-nav {
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid #e5e6eb;
        display: none;
    }
    .nav-toggle:checked ~ .main-nav { display: block; }
    .main-nav ul { flex-direction: column; padding: 12px 20px; }
    .main-nav a { padding: 12px 14px; }
    .grid-3, .grid-2, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
    .hero { padding: 48px 0; }
    .btn-outline { margin-left: 0; margin-top: 12px; display: inline-block; }
    .news-item { flex-direction: column; align-items: flex-start; }
    .case-bar { flex-direction: column; align-items: flex-start; }
}
