/* 站群低内存服务器优化套件 - 全局样式 灰白极简风 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2d3748;       /* 深灰主色 */
    --secondary: #4a5568;     /* 中灰次色 */
    --text-primary: #1a202c;  /* 标题文字 */
    --text-secondary: #718096;/* 正文文字 */
    --bg-light: #f7fafc;      /* 浅灰背景 */
    --bg-white: #ffffff;      /* 纯白背景 */
    --border: #e2e8f0;        /* 边框灰 */
    --accent: #2b6cb0;        /* 低饱和蓝点缀 */
    --success: #38a169;       /* 成功色（数据指标） */
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    background-color: var(--bg-white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* 导航栏 */
nav {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

.logo {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 36px;
    height: 36px;
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--secondary);
    font-size: 15px;
    font-weight: 400;
    transition: color 0.2s;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.nav-cta {
    background: var(--primary);
    color: white !important;
    padding: 8px 20px !important;
    border-radius: 4px;
    border-bottom: none !important;
}

.nav-cta:hover {
    background: var(--accent) !important;
}

/* 通用区块 */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 56px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* 首页Hero */
.hero {
    background: linear-gradient(180deg, var(--bg-light) 0%, var(--bg-white) 100%);
    padding: 100px 0;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-tag {
    display: inline-block;
    background: var(--bg-light);
    border: 1px solid var(--border);
    color: var(--accent);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 44px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.hero p {
    font-size: 17px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

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

.btn-secondary {
    background: var(--bg-white);
    color: var(--primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--primary);
}

.hero-visual {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

.terminal {
    background: #1a202c;
    border-radius: 6px;
    padding: 20px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 13px;
    color: #e2e8f0;
    line-height: 1.8;
}

.terminal-header {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot-red { background: #fc8181; }
.dot-yellow { background: #f6e05e; }
.dot-green { background: #68d391; }

.terminal-line .success { color: #68d391; }
.terminal-line .info { color: #63b3ed; }
.terminal-line .warn { color: #f6e05e; }

/* 核心优势 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 32px;
    transition: all 0.2s;
}

.feature-card:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 22px;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
}

/* 数据指标 */
.metrics {
    background: var(--bg-light);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}

.metric-item .number {
    font-size: 42px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.metric-item .label {
    color: var(--text-secondary);
    font-size: 15px;
}

/* 行业方案预览 */
.solutions-preview-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.solution-card {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 32px;
    display: flex;
    gap: 20px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}

.solution-card:hover {
    border-color: var(--accent);
    background: var(--bg-light);
}

.solution-icon {
    width: 56px;
    height: 56px;
    background: var(--bg-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.solution-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.solution-content p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
}

/* 客户logo */
.clients-section {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 48px 0;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 32px;
    align-items: center;
}

.client-logo {
    text-align: center;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 16px;
    opacity: 0.7;
}

/* 新闻预览 */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.news-card {
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}

.news-card:hover {
    border-color: var(--accent);
}

.news-image {
    height: 180px;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: var(--text-secondary);
}

.news-content {
    padding: 20px;
}

.news-date {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.news-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.5;
}

.news-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* CTA区块 */
.cta-section {
    background: var(--primary);
    color: white;
    text-align: center;
    padding: 80px 0;
}

.cta-section h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-section p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section .btn-primary {
    background: white;
    color: var(--primary);
}

.cta-section .btn-primary:hover {
    background: var(--bg-light);
}

/* 页脚 */
footer {
    background: var(--bg-light);
    border-top: 1px solid var(--border);
    padding: 60px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.footer-col p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 16px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-col ul li a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 13px;
}

/* 内页通用头部 */
.page-header {
    background: var(--bg-light);
    padding: 60px 0;
    border-bottom: 1px solid var(--border);
}

.page-header h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 16px;
    max-width: 700px;
}

/* 解决方案页 */
.solutions-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.solution-detail-card {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 36px;
}

.solution-detail-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.solution-detail-card p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.7;
}

.solution-detail-card ul {
    list-style: none;
}

.solution-detail-card ul li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    color: var(--text-secondary);
    font-size: 14px;
}

.solution-detail-card ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
}

/* 案例页 */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.case-card {
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.case-header {
    background: var(--bg-light);
    padding: 24px;
    border-bottom: 1px solid var(--border);
}

.case-header h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.case-tag {
    display: inline-block;
    background: var(--bg-white);
    border: 1px solid var(--border);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    color: var(--text-secondary);
    margin-right: 8px;
}

.case-body {
    padding: 24px;
}

.case-body p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.7;
}

.case-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.case-metric {
    text-align: center;
}

.case-metric .num {
    font-size: 24px;
    font-weight: 700;
    color: var(--success);
    margin-bottom: 4px;
}

.case-metric .txt {
    font-size: 12px;
    color: var(--text-secondary);
}

/* 行业规范页 */
.standards-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.standard-block h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}

.standard-item {
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 6px;
    margin-bottom: 16px;
}

.standard-item h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.standard-item p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* 新闻列表页 */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.news-list-item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 24px;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}

.news-list-item:hover {
    border-color: var(--accent);
    background: var(--bg-light);
}

.news-list-thumb {
    height: 140px;
    background: var(--bg-light);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: var(--text-secondary);
}

.news-list-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.news-list-content .date {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.news-list-content p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
}

/* 新闻详情页 */
.article-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 24px;
}

.article-header {
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.article-header h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.3;
}

.article-meta {
    color: var(--text-secondary);
    font-size: 14px;
}

.article-body {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-primary);
}

.article-body h2 {
    font-size: 24px;
    font-weight: 600;
    margin: 32px 0 16px;
}

.article-body h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 24px 0 12px;
}

.article-body p {
    margin-bottom: 16px;
}

.article-body ul, .article-body ol {
    margin: 16px 0;
    padding-left: 24px;
}

.article-body li {
    margin-bottom: 8px;
}

.article-body blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 20px;
    margin: 20px 0;
    color: var(--text-secondary);
    font-style: italic;
}

.article-body code {
    background: var(--bg-light);
    padding: 2px 6px;
    border-radius: 3px;
    font-family: Consolas, Monaco, monospace;
    font-size: 14px;
}

.article-back {
    display: inline-block;
    margin-top: 40px;
    color: var(--accent);
    text-decoration: none;
    font-size: 14px;
}

/* 联系页 */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 24px;
}

.contact-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    align-items: flex-start;
}

.contact-item-icon {
    width: 40px;
    height: 40px;
    background: var(--bg-light);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 18px;
}

.contact-item-content h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.contact-item-content p {
    color: var(--text-secondary);
    font-size: 14px;
}

.contact-form {
    background: var(--bg-light);
    padding: 32px;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    background: var(--bg-white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

/* 响应式 */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero-container,
    .features-grid,
    .metrics-grid,
    .solutions-preview-grid,
    .news-grid,
    .footer-grid,
    .solutions-list,
    .cases-grid,
    .standards-section,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .metrics-grid { gap: 24px; }
    .clients-grid { grid-template-columns: repeat(3, 1fr); }
    .news-list-item { grid-template-columns: 1fr; }
    .news-list-thumb { height: 120px; }
    .hero h1 { font-size: 32px; }
    section { padding: 48px 0; }
}