/* ==================== 全局样式重置 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.7;
    font-size: 15px;
}

a {
    color: #1a73e8;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
}

ul {
    list-style: none;
}

/* ==================== 容器 ==================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-narrow {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================== 顶部栏 ==================== */
.top-bar {
    background: #2c2c2c;
    color: #aaa;
    font-size: 13px;
    padding: 8px 0;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-links a {
    color: #aaa;
    text-decoration: none;
    margin-left: 15px;
    font-size: 13px;
}

.top-links a:hover {
    color: #fff;
    text-decoration: none;
}

/* ==================== 头部导航 ==================== */
.header {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 26px;
    font-weight: bold;
    color: #1a73e8;
    text-decoration: none;
    display: inline-block;
}

.logo span {
    color: #e74c3c;
}

.nav {
    display: flex;
    gap: 28px;
}

.nav a {
    color: #333;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s;
    position: relative;
}

.nav a:hover {
    color: #1a73e8;
    text-decoration: none;
}

.nav a::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #1a73e8;
    transition: width 0.2s;
}

.nav a:hover::after {
    width: 100%;
}

/* 移动端菜单按钮 */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 26px;
    cursor: pointer;
    color: #333;
    padding: 4px 10px;
}

/* ==================== 英雄区域 ==================== */
.hero {
    background: linear-gradient(135deg, #1a237e 0%, #283593 50%, #1565c0 100%);
    color: #fff;
    padding: 55px 0;
    text-align: center;
}

.hero h1 {
    font-size: 38px;
    margin-bottom: 12px;
    letter-spacing: 2px;
    font-weight: 700;
}

.hero h1 .highlight {
    color: #ffeb3b;
}

.hero .subtitle {
    font-size: 17px;
    opacity: 0.9;
    margin-bottom: 25px;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 35px;
}

.stat-item {
    text-align: center;
}

.stat-num {
    font-size: 34px;
    font-weight: bold;
    color: #ffeb3b;
}

.stat-label {
    font-size: 13px;
    opacity: 0.85;
    margin-top: 4px;
}

/* 页面内Hero（小版） */
.page-hero {
    background: linear-gradient(135deg, #1a237e, #283593);
    color: #fff;
    padding: 40px 0;
    text-align: center;
}

.page-hero h1 {
    font-size: 30px;
    margin-bottom: 8px;
}

.page-hero p {
    font-size: 15px;
    opacity: 0.85;
}

/* 面包屑 */
.breadcrumb {
    background: #f9f9f9;
    padding: 12px 0;
    font-size: 13px;
    color: #666;
    border-bottom: 1px solid #eee;
}

.breadcrumb a {
    color: #666;
}

.breadcrumb a:hover {
    color: #1a73e8;
}

.breadcrumb span {
    margin: 0 6px;
    color: #999;
}

/* ==================== 按钮 ==================== */
.btn {
    display: inline-block;
    padding: 13px 35px;
    font-size: 15px;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.25s;
    font-weight: 500;
    text-align: center;
    line-height: 1.5;
}

.btn-primary {
    background: #ff9800;
    color: #fff !important;
}

.btn-primary:hover {
    background: #f57c00;
    text-decoration: none;
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    text-decoration: none;
}

.btn-blue {
    background: #1a73e8;
    color: #fff !important;
}

.btn-blue:hover {
    background: #1557b0;
    text-decoration: none;
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    border: 2px solid #1a73e8;
    color: #1a73e8 !important;
}

.btn-outline:hover {
    background: #1a73e8;
    color: #fff !important;
    text-decoration: none;
}

.btn-sm {
    padding: 8px 22px;
    font-size: 13px;
}

.btn-lg {
    padding: 16px 45px;
    font-size: 17px;
}

.btn-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==================== 产品卡片 ==================== */
.products {
    padding: 65px 0;
    background: #fff;
}

.section-title {
    text-align: center;
    font-size: 30px;
    margin-bottom: 8px;
    color: #222;
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    color: #666;
    font-size: 15px;
    margin-bottom: 45px;
}

.product-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.product-card {
    border: 1px solid #ddd;
    background: #fafafa;
    padding: 32px 22px;
    position: relative;
    transition: box-shadow 0.25s, transform 0.25s;
}

.product-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}

.product-card.featured {
    border: 2px solid #1a73e8;
    background: #f8fbff;
}

.product-badge {
    position: absolute;
    top: -11px;
    left: 22px;
    background: #e74c3c;
    color: #fff;
    padding: 3px 14px;
    font-size: 12px;
    font-weight: bold;
}

.product-icon {
    width: 54px;
    height: 54px;
    line-height: 54px;
    text-align: center;
    font-size: 27px;
    margin-bottom: 18px;
    display: inline-block;
}

.icon-host { background: #e3f2fd; color: #1976d2; }
.icon-server { background: #fce4ec; color: #c62828; }
.icon-domain { background: #e8f5e9; color: #2e7d32; }

.product-card h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: #222;
}

.product-card .price {
    font-size: 14px;
    color: #e74c3c;
    font-weight: bold;
    margin-bottom: 18px;
}

.product-features {
    list-style: none;
    margin-bottom: 22px;
}

.product-features li {
    padding: 7px 0;
    font-size: 13px;
    color: #555;
    border-bottom: 1px dashed #eee;
    display: flex;
    align-items: center;
}

.product-features li:last-child {
    border-bottom: none;
}

.product-features li::before {
    content: "✓";
    color: #4caf50;
    margin-right: 9px;
    font-weight: bold;
    flex-shrink: 0;
}

.product-card .btn {
    width: 100%;
    display: block;
    padding: 11px;
    font-size: 14px;
}

/* ==================== 特点网格 ==================== */
.features {
    padding: 65px 0;
    background: #f9f9f9;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.feature-item {
    text-align: center;
    padding: 28px 18px;
    background: #fff;
    border: 1px solid #eee;
    transition: box-shadow 0.25s, transform 0.25s;
}

.feature-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-3px);
}

.feature-icon {
    font-size: 38px;
    margin-bottom: 14px;
}

.feature-item h4 {
    font-size: 16px;
    margin-bottom: 8px;
    color: #222;
}

.feature-item p {
    font-size: 13px;
    color: #777;
    line-height: 1.6;
}

/* ==================== 开通流程步骤 ==================== */
.process {
    padding: 65px 0;
    background: #fff;
}

.steps {
    display: flex;
    justify-content: space-between;
    max-width: 850px;
    margin: 0 auto;
    position: relative;
}

.steps::before {
    content: "";
    position: absolute;
    top: 34px;
    left: 75px;
    right: 75px;
    height: 2px;
    background: #ddd;
    z-index: 0;
}

.step {
    text-align: center;
    position: relative;
    z-index: 1;
    flex: 1;
}

.step-num {
    width: 66px;
    height: 66px;
    line-height: 66px;
    background: #1a73e8;
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    margin: 0 auto 14px;
}

.step h4 {
    font-size: 15px;
    margin-bottom: 6px;
    color: #222;
}

.step p {
    font-size: 12px;
    color: #666;
    line-height: 1.6;
}

/* ==================== 对比表格 ==================== */
.compare {
    padding: 65px 0;
    background: #f9f9f9;
}

.table-wrapper {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    font-size: 14px;
}

th, td {
    padding: 13px 16px;
    text-align: center;
    border: 1px solid #e0e0e0;
}

th {
    background: #37474f;
    color: #fff;
    font-weight: 600;
    font-size: 13px;
}

tr:nth-child(even) {
    background: #fafafa;
}

td:first-child {
    text-align: left;
    font-weight: 500;
    background: #f5f5f5;
}

.tag-free {
    background: #e74c3c;
    color: #fff;
    padding: 3px 10px;
    font-size: 12px;
}

/* ==================== FAQ手风琴 ==================== */
.faq-section {
    padding: 65px 0;
    background: #fff;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid #e0e0e0;
    margin-bottom: 10px;
    background: #fafafa;
    overflow: hidden;
}

.faq-q {
    padding: 17px 20px;
    font-weight: 600;
    font-size: 14px;
    color: #222;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    transition: background 0.2s;
}

.faq-q:hover {
    background: #f0f0f0;
}

.faq-q::after {
    content: "+";
    font-size: 20px;
    color: #1a73e8;
    flex-shrink: 0;
    margin-left: 15px;
    transition: transform 0.3s;
}

.faq-item.active .faq-q::after {
    content: "−";
}

.faq-a {
    padding: 0 20px 17px;
    font-size: 13px;
    color: #666;
    line-height: 1.85;
    display: none;
}

.faq-item.active .faq-a {
    display: block;
}

/* ==================== 帮助中心分类 ==================== */
.help-center {
    padding: 65px 0;
    background: #f9f9f9;
}

.help-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.help-category {
    background: #fff;
    border: 1px solid #ddd;
    padding: 24px;
}

.help-category h4 {
    font-size: 16px;
    margin-bottom: 14px;
    color: #222;
    padding-bottom: 10px;
    border-bottom: 2px solid #1a73e8;
}

.help-category ul {
    list-style: none;
}

.help-category li {
    padding: 6px 0;
}

.help-category a {
    color: #555;
    text-decoration: none;
    font-size: 13px;
    display: flex;
    align-items: center;
}

.help-category a::before {
    content: "›";
    color: #1a73e8;
    margin-right: 8px;
    font-weight: bold;
}

.help-category a:hover {
    color: #1a73e8;
    text-decoration: none;
}

/* ==================== CTA区域 ==================== */
.cta-section {
    background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 50%, #388e3c 100%);
    padding: 55px 0;
    text-align: center;
    color: #fff;
}

.cta-section h2 {
    font-size: 30px;
    margin-bottom: 12px;
}

.cta-section p {
    font-size: 15px;
    opacity: 0.9;
    margin-bottom: 25px;
    line-height: 1.6;
}

/* ==================== 页脚 ==================== */
.footer {
    background: #222;
    color: #aaa;
    padding: 45px 0 18px;
    font-size: 14px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 35px;
    margin-bottom: 35px;
}

.footer-brand .logo {
    color: #fff;
    font-size: 22px;
    margin-bottom: 10px;
}

.footer-brand p {
    font-size: 13px;
    line-height: 1.8;
    color: #888;
}

.footer-col h5 {
    color: #fff;
    font-size: 15px;
    margin-bottom: 16px;
    font-weight: 600;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 9px;
}

.footer-col a {
    color: #888;
    text-decoration: none;
    font-size: 13px;
}

.footer-col a:hover {
    color: #fff;
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 18px;
    text-align: center;
    font-size: 12px;
    color: #666;
    line-height: 1.8;
}

/* 浮动按钮 */
.float-btn {
    position: fixed;
    right: 20px;
    bottom: 75px;
    background: #ff9800;
    color: #fff;
    padding: 12px 22px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(255,152,0,0.4);
    z-index: 99;
    transition: background 0.25s, transform 0.25s;
}

.float-btn:hover {
    background: #f57c00;
    transform: translateY(-2px);
    text-decoration: none;
}

/* 返回顶部 */
.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 130px;
    width: 42px;
    height: 42px;
    line-height: 42px;
    text-align: center;
    background: #37474f;
    color: #fff;
    font-size: 20px;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #1a73e8;
}

/* ==================== 文章/内容页面样式 ==================== */
.content-page {
    padding: 45px 0 60px;
    background: #fff;
}

.content-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 35px;
}

.main-article {
    min-width: 0;
}

.article-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #eee;
}

.article-header h1 {
    font-size: 26px;
    color: #222;
    margin-bottom: 12px;
    line-height: 1.4;
}

.article-meta {
    font-size: 13px;
    color: #999;
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.article-body {
    font-size: 15px;
    line-height: 1.9;
    color: #444;
}

.article-body h2 {
    font-size: 22px;
    color: #222;
    margin: 35px 0 15px;
    padding-left: 14px;
    border-left: 4px solid #1a73e8;
}

.article-body h3 {
    font-size: 18px;
    color: #333;
    margin: 25px 0 12px;
}

.article-body p {
    margin-bottom: 16px;
    text-indent: 2em;
}

.article-body ul,
.article-body ol {
    margin: 15px 0 15px 2em;
}

.article-body ul {
    list-style: disc;
}

.article-body ol {
    list-style: decimal;
}

.article-body li {
    margin-bottom: 8px;
    line-height: 1.75;
}

.article-body strong {
    color: #222;
}

.article-body code {
    background: #f5f5f5;
    padding: 2px 6px;
    font-family: Consolas, monospace;
    font-size: 13px;
    color: #e74c3c;
}

.article-body pre {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 18px;
    overflow-x: auto;
    font-size: 13px;
    line-height: 1.6;
    margin: 18px 0;
}

.article-body pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

.article-body blockquote {
    border-left: 4px solid #1a73e8;
    padding: 12px 20px;
    margin: 20px 0;
    background: #f8fbff;
    color: #555;
    font-size: 14px;
}

.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 18px 0;
    font-size: 14px;
}

.article-body th,
.article-body td {
    padding: 10px 14px;
    border: 1px solid #ddd;
    text-align: left;
}

.article-body th {
    background: #37474f;
    color: #fff;
}

.article-body img {
    display: block;
    margin: 20px auto;
    max-width: 100%;
    border: 1px solid #eee;
}

/* 提示框 */
.tip-box {
    padding: 16px 20px;
    margin: 20px 0;
    font-size: 14px;
    line-height: 1.7;
}

.tip-info {
    background: #e3f2fd;
    border-left: 4px solid #1976d2;
    color: #1565c0;
}

.tip-warn {
    background: #fff3e0;
    border-left: 4px solid #ff9800;
    color: #e65100;
}

.tip-success {
    background: #e8f5e9;
    border-left: 4px solid #4caf50;
    color: #2e7d32;
}

.tip-box strong {
    display: block;
    margin-bottom: 4px;
}

/* 文章底部标签 */
.article-tags {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.tag {
    display: inline-block;
    background: #f0f0f0;
    color: #666;
    padding: 4px 12px;
    font-size: 12px;
}

/* 侧边栏 */
.sidebar {
    position: sticky;
    top: 70px;
    align-self: start;
}

.sidebar-widget {
    background: #fafafa;
    border: 1px solid #eee;
    padding: 20px;
    margin-bottom: 20px;
}

.widget-title {
    font-size: 16px;
    color: #222;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #1a73e8;
    font-weight: 600;
}

.widget-list {
    list-style: none;
}

.widget-list li {
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
    font-size: 13px;
}

.widget-list li:last-child {
    border-bottom: none;
}

.widget-list a {
    color: #555;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
}

.widget-list a:hover {
    color: #1a73e8;
}

/* 目录导航 */
.toc {
    background: #fafafa;
    border: 1px solid #eee;
    padding: 20px;
    margin-bottom: 20px;
}

.toc-title {
    font-size: 16px;
    color: #222;
    margin-bottom: 12px;
    font-weight: 600;
}

.toc ol {
    list-style: decimal;
    padding-left: 20px;
    margin: 0;
}

.toc li {
    padding: 5px 0;
    font-size: 13px;
}

.toc a {
    color: #555;
}

.toc a:hover {
    color: #1a73e8;
}

/* ==================== 场景卡片 ==================== */
.scene-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin: 30px 0;
}

.scene-card {
    border: 1px solid #ddd;
    background: #fff;
    padding: 28px 22px;
    text-align: center;
    transition: all 0.25s;
}

.scene-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}

.scene-card .scene-icon {
    font-size: 44px;
    margin-bottom: 14px;
}

.scene-card h3 {
    font-size: 17px;
    margin-bottom: 10px;
    color: #222;
}

.scene-card p {
    font-size: 13px;
    color: #666;
    line-height: 1.7;
}

/* ==================== 教程步骤 ==================== */
.tutorial-steps {
    counter-reset: step-counter;
    margin: 25px 0;
}

.tutorial-step {
    position: relative;
    padding: 22px 22px 22px 72px;
    margin-bottom: 18px;
    background: #fafafa;
    border: 1px solid #eee;
    counter-increment: step-counter;
}

.tutorial-step::before {
    content: counter(step-counter);
    position: absolute;
    left: 18px;
    top: 22px;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background: #1a73e8;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
}

.tutorial-step h3 {
    font-size: 17px;
    margin-bottom: 8px;
    color: #222;
}

.tutorial-step p {
    font-size: 14px;
    color: #666;
    line-height: 1.75;
    text-indent: 0;
}

/* ==================== 时间线 ==================== */
.timeline {
    position: relative;
    padding-left: 35px;
    margin: 25px 0;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 12px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #ddd;
}

.timeline-item {
    position: relative;
    margin-bottom: 25px;
    padding: 16px 20px;
    background: #fafafa;
    border: 1px solid #eee;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -29px;
    top: 22px;
    width: 12px;
    height: 12px;
    background: #1a73e8;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px #1a73e8;
}

.timeline-date {
    font-size: 12px;
    color: #1a73e8;
    font-weight: 600;
    margin-bottom: 6px;
}

.timeline-item h4 {
    font-size: 16px;
    color: #222;
    margin-bottom: 6px;
}

.timeline-item p {
    font-size: 13px;
    color: #666;
    text-indent: 0;
    line-height: 1.7;
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 992px) {
    .product-cards { grid-template-columns: repeat(2, 1fr); }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .nav { display: none; }
    .hero-stats { gap: 30px; }
    .steps { flex-wrap: wrap; justify-content: center; gap: 20px; }
    .steps::before { display: none; }
    .content-layout { grid-template-columns: 1fr; }
    .sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .scene-grid { grid-template-columns: repeat(2, 1fr); }
    .help-grid { grid-template-columns: repeat(2, 1fr); }
    .menu-toggle { display: block; }
}

@media (max-width: 576px) {
    .product-cards { grid-template-columns: 1fr; }
    .feature-grid { grid-template-columns: 1fr; }
    .help-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 26px; }
    .page-hero h1 { font-size: 24px; }
    .hero-stats { flex-direction: column; gap: 15px; }
    .btn-group { flex-direction: column; align-items: center; }
    th, td { padding: 10px 8px; font-size: 12px; }
    .section-title { font-size: 24px; }
    .article-header h1 { font-size: 21px; }
    .scene-grid { grid-template-columns: 1fr; }
    .tutorial-step { padding-left: 58px; }
    .tutorial-step::before { left: 10px; width: 36px; height: 36px; line-height: 36px; font-size: 16px; }
    .sidebar { grid-template-columns: 1fr; }
}
