/* =========================================
   全局变量与基础重置 (Global Reset)
   ========================================= */
:root {
    --vantage-blue: #0078d4;
    --bg-main: #ffffff;
    --bg-hero: #f9fafb;
    --bg-page: #f8fafc; 
    --bg-mask: #ffffff; 
    --text-main: #111827;
    --text-sub: #4b5563;
    --border: #e5e7eb;
    --asys-blue: #4f46e5;
    --debian-red: #d70a53;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
ul { list-style: none; }
a { text-decoration: none; color: inherit; transition: color 0.3s; }
img { max-width: 100%; display: block; }

/* ★ 全站容器约束 ★ */
.container { width: 90%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* =========================================
   两大生态体系的基底样式
   ========================================= */
/* 1. ASYS 官网体系 */
.site-asys { font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif; background: #f8fafc; color: #1e293b; line-height: 1.6; }
.site-asys.page-debian { background: #fff; color: #333; font-size: 14px; }
.site-asys section { padding: 60px 0; }
.site-asys .section-title { text-align: center; margin-bottom: 40px; font-size: 2.2rem; color: #0f172a; }

/* 2. Vantage 浏览器体系 */
.site-vantage { font-family: -apple-system, "Segoe UI", Roboto, sans-serif; line-height: 1.6; background-color: var(--bg-main); color: var(--text-main); }
.site-vantage.page-vantage-home { background-color: var(--bg-page); overflow-x: hidden; }

/* =========================================
   公共导航栏与页脚 (Header & Footer)
   ========================================= */
/* --- ASYS 体系导航与页脚 --- */
.site-asys header { background: white; border-bottom: 1px solid #e2e8f0; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 10px rgba(0,0,0,0.05); width: 100%; }
.site-asys nav { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; width: 100%; }
.site-asys .debian-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.site-asys .debian-logo img { height: 40px; }
.site-asys .debian-logo h1 { font-size: 1.3rem; font-weight: 700; color: #0f172a; margin: 0; }
.site-asys .debian-nav-links { display: flex; gap: 25px; margin-left: auto; }
.site-asys .debian-nav-links a { color: #475569; font-weight: 600; font-size: 15px; position: relative; }
.site-asys .debian-nav-links a:hover, .site-asys .debian-nav-links a.active { color: var(--asys-blue); }
.site-asys .debian-nav-links a.active::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 100%; height: 2px; background-color: var(--asys-blue); }
/* Debian 特例红 */
.site-asys.page-debian .debian-nav-links a:hover, .site-asys.page-debian .debian-nav-links a.active { color: var(--debian-red); }
.site-asys.page-debian .debian-nav-links a.active::after { background-color: var(--debian-red); }
.site-asys footer { background: #f1f5f9; padding: 40px 0; text-align: center; border-top: 1px solid #e2e8f0; color: #64748b; margin-top: auto; }

/* --- Vantage 体系导航与页脚 --- */
.site-vantage nav { display: flex; justify-content: space-between; align-items: center; padding: 1rem 3%; position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--border); }
.site-vantage.page-vantage-home nav { background: rgba(248, 250, 252, 0.75); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); border-bottom: 1px solid rgba(226, 232, 240, 0.6); }
.site-vantage .nav-left { display: flex; align-items: center; gap: 2rem; }
.site-vantage .nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.3rem; text-decoration: none; color: var(--text-main); }
.site-vantage .nav-logo img { height: 28px; width: auto; display: block; }
.site-vantage .vantage-nav-links { display: flex; gap: 1.5rem; }
.site-vantage .vantage-nav-links a { text-decoration: none; color: var(--text-sub); font-size: 0.95rem; font-weight: 500; transition: color 0.2s ease; }
.site-vantage .vantage-nav-links a:hover, .site-vantage .vantage-nav-links a.active { color: var(--vantage-blue); }
.site-vantage .asys-main-link { display: flex; align-items: center; text-decoration: none; transition: opacity 0.2s; padding: 5px; }
.site-vantage .asys-main-link:hover { opacity: 0.7; }
.site-vantage .asys-main-link img { height: 38px; width: auto; display: block; }
.site-vantage footer { padding: 40px 20px; text-align: center; font-size: 0.85rem; color: #9ca3af; border-top: 1px solid var(--border); margin-top: 60px; }


/* =========================================
   各个页面的专属积木 (Page Specific Styles)
   ========================================= */

/* --- Vantage 首页 --- */
/* --- Vantage 首页 --- */
.hero { 
    position: relative; 
    padding: 12vh 20px 25vh; 
    text-align: center; 
    background-color: transparent; 
    z-index: 1; 
    overflow: visible; 
}
/* Vantage 专属：重要新闻/公告框 */
.announcement-box {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%); /* 柔和的浅蓝渐变背景 */
  border: 1px solid #bfdbfe;
  border-left: 4px solid var(--vantage-blue); /* 左侧加粗蓝线，增加正式感与视觉引导 */
  border-radius: 8px;
  padding: 16px 24px;
  margin: 30px auto 0;
  max-width: 800px;
  color: #1e3a8a; /* 深蓝色文字，保证阅读清晰度 */
  text-align: center;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.6;
  box-shadow: 0 4px 6px -1px rgba(0, 120, 212, 0.1); /* 淡淡的蓝色阴影，使其浮起 */
}
.announcement-box a {
  color: var(--vantage-blue);
  font-weight: 700;
  text-decoration: underline;
}
/* 可选：新闻前面的小标签（如 NEW、喜报） */
.announcement-box .news-badge {
  display: inline-block;
  background: var(--vantage-blue);
  color: #fff;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 4px;
  margin-right: 8px;
  font-weight: 600;
  letter-spacing: 0.5px;
  vertical-align: middle;
}
.news-banner {
  background: linear-gradient(90deg, rgba(201, 200, 255, 0.5) 30%, rgba(204, 235, 255, 0.5) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px); /* 兼容 Safari 浏览器 */
  color: #7f7f7f;
  text-align: center;
  padding: 10px 20px;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  position: relative;
  z-index: 101; /* 确保在导航栏之上或紧贴导航栏 */
}
.news-banner a {
  color: #fef08a; /* 亮黄色链接，在蓝底上极其醒目 */
  font-weight: 700;
  text-decoration: underline;
  margin-left: 8px;
}

/* --- 1111111111--- */
.hero-v-img { width: 150px; height: 150px; object-fit: contain; margin: 0 auto 30px auto; display: block; }
.hero h1 { font-size: 4rem; margin: 0; font-weight: 800; letter-spacing: -1px; }
.hero p { font-size: 1.3rem; color: var(--text-sub); margin: 1.5rem 0 3.5rem; font-weight: 500; letter-spacing: 2px; }
.btn-download { display: inline-block; padding: 15px 55px; border-radius: 10px; text-decoration: none; font-weight: 600; font-size: 1.15rem; background: var(--vantage-blue); color: #fff; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: 0 4px 15px -3px rgba(0, 120, 212, 0.3); }
.btn-download:hover { background: #006abc; transform: translateY(-3px); box-shadow: 0 8px 25px -5px rgba(0, 120, 212, 0.4); }
.content-mask { background-color: var(--bg-mask); position: relative; z-index: 10; border-top-left-radius: 40px; border-top-right-radius: 40px; box-shadow: 0 -15px 40px rgba(0, 0, 0, 0.04); padding-top: 20px; }
.site-vantage .section-title { text-align: center; margin-bottom: 4rem; }
.site-vantage .section-title h2 { font-size: 2.2rem; color: var(--text-main); margin-bottom: 15px; }
.site-vantage .section-title p { color: var(--text-sub); font-size: 1.1rem; max-width: 700px; margin: 0 auto; }
.page-vantage-home .container { max-width: 1050px; padding: 60px 20px 80px; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.f-card { padding: 45px 35px; text-align: center; border: 1px solid var(--border); border-radius: 20px; background: #ffffff; box-shadow: 0 4px 20px -5px rgba(0,0,0,0.03); transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
.f-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px -10px rgba(0,0,0,0.08); border-color: #cbd5e1; }
.f-icon { font-size: 2.8rem; margin-bottom: 1.5rem; display: block; text-shadow: 0 4px 10px rgba(0,0,0,0.05); }
.f-card h3 { margin-bottom: 1rem; font-size: 1.3rem; color: #0f172a; }
.f-card p { color: var(--text-sub); font-size: 0.95rem; line-height: 1.7; margin: 0;}
.legal-footer { padding: 60px 20px; text-align: center; border-top: 1px dashed var(--border); display: flex; flex-direction: column; align-items: center; gap: 20px; }
.legal-text { color: var(--text-sub); font-size: 1.05rem; margin: 0; }
.github-icon { fill: #94a3b8; transition: fill 0.3s ease, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.github-link:hover .github-icon { fill: #0f172a; transform: scale(1.15) rotate(5deg); }

/* --- Vantage 下载页 --- */
.page-header { text-align: center; padding: 60px 20px 40px; background-color: var(--bg-hero); border-bottom: 1px solid var(--border); }
.page-header h1 { font-size: 3rem; margin: 0 0 15px 0; font-weight: 800; }
.page-header p { font-size: 1.1rem; color: var(--text-sub); margin: 0; max-width: 600px; margin: 0 auto; }
.auto-btn-wrapper { margin-top: 35px; margin-bottom: 10px; }
.btn-smart { display: inline-flex; align-items: center; gap: 10px; padding: 16px 45px; font-size: 1.25rem; border-radius: 50px; font-weight: 700; background: var(--vantage-blue); color: #fff; text-decoration: none; transition: all 0.3s ease; box-shadow: 0 8px 20px -5px rgba(0, 120, 212, 0.4); }
.btn-smart:hover { background: #006abc; transform: translateY(-3px); box-shadow: 0 12px 25px -5px rgba(0, 120, 212, 0.5); }
.warning-box { background-color: #fffbeb; border: 1px solid #f59e0b; border-radius: 8px; padding: 15px 20px; margin: 25px auto 0; max-width: 800px; color: #b45309; text-align: center; font-size: 0.95rem; line-height: 1.6; }
.warning-box a { color: #d97706; font-weight: bold; text-decoration: underline; }
.download-container { max-width: 1200px; margin: 60px auto; padding: 0 20px; }
.os-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 30px; }
.os-card { border: 1px solid var(--border); border-radius: 12px; padding: 40px 30px; text-align: center; background: #fff; transition: transform 0.3s ease, box-shadow 0.3s ease; display: flex; flex-direction: column; }
.os-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.05); }
.os-icon-img { width: 55px; height: 55px; margin: 0 auto 20px auto; display: block; object-fit: contain; }
.os-title { font-size: 1.5rem; margin-bottom: 25px; font-weight: 700; }
.pkg-select { width: 100%; padding: 10px 15px; margin-bottom: 12px; border-radius: 8px; border: 1px solid var(--border); background-color: #f9fafb; font-size: 0.95rem; color: var(--text-main); outline: none; cursor: pointer; font-family: inherit; box-sizing: border-box; }
.pkg-select:focus { border-color: var(--vantage-blue); }
.os-card .btn-group { display: flex; flex-direction: column; gap: 12px; margin-top: auto; }
.os-card .btn-primary { display: block; padding: 12px 20px; background: var(--vantage-blue); color: #fff; text-decoration: none; border-radius: 8px; font-weight: 600; transition: 0.2s; }
.os-card .btn-primary:hover { background: #006abc; }
.os-card .btn-secondary { display: block; padding: 12px 20px; background: #f3f4f6; color: var(--text-main); text-decoration: none; border-radius: 8px; font-weight: 600; transition: 0.2s; }
.os-card .btn-secondary:hover { background: #e5e7eb; }
.btn-warning-dark { display: block; padding: 12px 20px; background: #d97706; color: #fff; text-decoration: none; border-radius: 8px; font-weight: 600; transition: 0.2s; }
.btn-warning-dark:hover { background: #b45309; }

/* ★★★ Loong64 专属卡片样式：突出国产自主特征（精简版） ★★★ */
.os-card-loong64 {
  /* 基础外观保持统一 */
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 40px 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  
  /* ★ 龙芯特征 1：左侧加粗红色边框 */
  border-left: 4px solid #d32f2f;
  
  /* ★ 龙芯特征 2：底色加深，使用更明显的淡红色渐变 */
  background: linear-gradient(135deg, #ffffff 0%, #fee2e2 100%); 
}

.os-card-loong64:hover {
  transform: translateY(-5px);
  /* ★ 龙芯特征：悬停时的红色光晕阴影 */
  box-shadow: 0 10px 25px rgba(211, 47, 47, 0.15);
  border-color: #d32f2f;
}

/* 图标不再特殊处理，直接继承 .os-icon-img 的默认样式（正常显示企鹅） */
/* 强制卡片标题为纯黑色 */

/* ★ 龙芯特征 3：标题使用深红色 */
.os-card-loong64 .os-arch {
  font-size: 1.5rem;
  margin-bottom: 25px;
  font-weight: 700;
  color: #c62828; /* 深红色 */
}

/* ★ 龙芯特征 4：下拉框聚焦时使用红色边框 */
.os-card-loong64 .pkg-select:focus {
  border-color: #d32f2f;
  box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1);
}

/* ★ 龙芯特征 5：主按钮使用红色系 */
.os-card-loong64 .btn-primary {
  display: block;
  padding: 12px 20px;
  background: linear-gradient(135deg, #d32f2f 0%, #c62828 100%);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(211, 47, 47, 0.3);
}

.os-card-loong64 .btn-primary:hover {
  background: linear-gradient(135deg, #c62828 0%, #b71c1c 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(211, 47, 47, 0.4);
}



/* --- Vantage 文档页 --- */
.page-docs .docs-layout { display: flex; max-width: 1200px; margin: 0 auto; min-height: calc(100vh - 150px); }
.page-docs .docs-sidebar { width: 280px; padding: 40px 20px; border-right: 1px solid var(--border); background: #fbfbfc; position: sticky; top: 70px; height: calc(100vh - 70px); overflow-y: auto; }
.page-docs .docs-sidebar h3 { font-size: 0.9rem; text-transform: uppercase; color: #9ca3af; letter-spacing: 1px; margin-bottom: 15px; margin-top: 25px; }
.page-docs .docs-sidebar h3:first-child { margin-top: 0; }
.page-docs .docs-sidebar ul { list-style: none; padding: 0; margin: 0 0 30px 0; }
.page-docs .docs-sidebar li { margin-bottom: 6px; }
.page-docs .docs-sidebar a { text-decoration: none; color: var(--text-sub); font-weight: 500; transition: 0.2s; display: block; padding: 8px 12px; border-radius: 6px; cursor: pointer;}
.page-docs .docs-sidebar a:hover, .page-docs .docs-sidebar a.active { background: #eff6ff; color: var(--vantage-blue); }
.page-docs .docs-content { flex: 1; padding: 40px 60px; max-width: 850px; }
.page-docs .docs-content h1 { font-size: 2.2rem; margin-top: 0; margin-bottom: 20px; border-bottom: 2px solid var(--border); padding-bottom: 15px; }
.page-docs .docs-content h2 { font-size: 1.5rem; margin-top: 40px; margin-bottom: 15px; color: var(--vantage-blue); }
.page-docs .docs-content p { font-size: 1.05rem; color: var(--text-sub); margin-bottom: 20px; line-height: 1.7; }
.page-docs .docs-content code { background: #f1f5f9; padding: 3px 6px; border-radius: 4px; font-family: Consolas, monospace; font-size: 0.9em; color: #d946ef; }
.page-docs .docs-link { color: var(--vantage-blue); font-weight: bold; text-decoration: none; }
.page-docs .docs-link:hover { text-decoration: underline; }
.page-docs .step-block { background: var(--bg-mask); border: 1px solid var(--border); border-radius: 8px; padding: 24px; margin-bottom: 24px; box-shadow: 0 1px 3px rgba(0,0,0,0.02); }
.page-docs .step-title { font-size: 1.1rem; font-weight: 600; margin: 0 0 12px 0; display: flex; align-items: center; gap: 10px; color: #111827; }
.page-docs .step-number { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; background: var(--vantage-blue); color: white; border-radius: 50%; font-size: 0.85rem; }
.page-docs .step-content p { margin: 0 0 16px 0; color: var(--text-sub); }
.page-docs .highlight-code { background: #f1f5f9; padding: 2px 6px; border-radius: 4px; font-family: monospace; font-size: 0.9em; color: #0f172a; }
.page-docs .download-btn { display: inline-block; background: #f3f4f6; color: #111827; border: 1px solid #d1d5db; padding: 8px 16px; border-radius: 6px; text-decoration: none; font-weight: 500; font-size: 0.95rem; margin-bottom: 16px; transition: 0.2s; }
.page-docs .download-btn:hover { background: #e5e7eb; }
.page-docs .tutorial-img { width: 100%; max-width: 600px; height: auto; border: 1px solid var(--border); border-radius: 6px; display: block; margin-top: 15px; background-color: #f9fafb; }
.page-docs .reason-box { background-color: #fffbeb; border: 1px solid #fef08a; border-radius: 8px; padding: 24px; margin-top: 3rem; }
.page-docs .reason-box h3 { margin: 0 0 12px 0; color: #92400e; font-size: 1.2rem; display: flex; align-items: center; gap: 8px; }
.page-docs .reason-box p { margin: 0 0 12px 0; color: #92400e; font-size: 0.95rem; }
.page-docs .loading-text { text-align: center; color: #9ca3af; margin-top: 50px; font-size: 1.1rem; }

/* --- ASYS 关于我们 --- */
.page-about .about-content { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.page-about .about-image img { width: 100%; border-radius: 8px; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
.page-about .contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; background: white; padding: 40px; border-radius: 12px; border: 1px solid #e2e8f0; }
.page-about .contact-detail { display: flex; gap: 15px; margin-bottom: 20px; }
.page-about .contact-icon { color: var(--asys-blue); font-size: 1.5rem; }
.page-about .contact-detail a { color: var(--asys-blue); text-decoration: none; }
.page-about .contact-detail a:hover { text-decoration: underline; }

/* --- ASYS 产品中心 --- */
.page-products .hero-section { background: linear-gradient(135deg, #f0f5ff 0%, #e0e7ff 100%); text-align: center; padding: 80px 0; }
.page-products .products-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.page-products .product-card { background: white; border-radius: 16px; border: 1px solid #e2e8f0; overflow: hidden; transition: all 0.3s ease; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); }
.page-products .product-card:hover { transform: translateY(-10px); box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }
.page-products .product-image { width: 100%; padding-bottom: 100%; background: #f8fafc; position: relative; overflow: hidden; }
.page-products .product-image img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.page-products .product-card:hover .product-image img { transform: scale(1.1); }
.page-products .product-info { padding: 30px; }
.page-products .product-info h3 { margin-bottom: 15px; font-size: 1.4rem; color: #0f172a; font-weight: 600; }
.page-products .product-info p { color: #64748b; font-size: 1rem; line-height: 1.6; margin-bottom: 20px; }
.page-products .product-features { list-style: none; margin-bottom: 20px; }
.page-products .product-features li { padding: 8px 0; color: #64748b; position: relative; padding-left: 20px; }
.page-products .product-features li:before { content: "✓"; position: absolute; left: 0; color: #10b981; font-weight: bold; }

/* --- ASYS 自助服务 --- */
.page-service .hero-section { background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%); padding: 100px 0; border-bottom: 1px solid #bae6fd; text-align: center;}
.page-service .category-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; margin-top: -60px; padding-bottom: 80px; position: relative; z-index: 10; }
.page-service .category-card { background: white; border-radius: 16px; padding: 40px 30px; text-align: center; border: 1px solid #e2e8f0; box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1); transition: all 0.3s ease; text-decoration: none; color: inherit; display: flex; flex-direction: column; align-items: center; }
.page-service .category-card:hover { transform: translateY(-10px); box-shadow: 0 20px 30px -10px rgba(79, 70, 229, 0.15); border-color: var(--asys-blue); }
.page-service .cat-icon { width: 80px; height: 80px; background: #eff6ff; color: var(--asys-blue); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; margin-bottom: 25px; transition: all 0.3s; }
.page-service .cat-icon img { width: 70% !important; height: 70% !important; object-fit: contain !important; display: block; }
.page-service .category-card:hover .cat-icon { background: var(--asys-blue); color: white; transform: scale(1.1); }
.page-service .cat-title { font-size: 1.35rem; font-weight: 700; color: #0f172a; margin-bottom: 15px; }
.page-service .cat-desc { color: #64748b; font-size: 0.95rem; line-height: 1.6; }

/* --- ASYS 教程中心 --- */
.page-tutorials { overflow-y: scroll; scrollbar-gutter: stable; }
.page-tutorials .hero-section { background: linear-gradient(135deg, #f0f5ff 0%, #e0e7ff 100%); text-align: center; padding: 60px 0; }
.page-tutorials .tutorial-layout { display: flex; gap: 40px; margin-top: 40px; }
.page-tutorials .tutorial-sidebar { width: 280px; flex-shrink: 0; background: white; border-radius: 12px; padding: 25px; border: 1px solid #e2e8f0; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); height: fit-content; position: sticky; top: 100px; }
.page-tutorials .tutorial-sidebar h3 { margin-bottom: 20px; color: #0f172a; font-size: 1.2rem; padding-bottom: 10px; border-bottom: 2px solid #e2e8f0; }
.page-tutorials .toc-list { list-style: none; }
.page-tutorials .toc-item { margin-bottom: 10px; }
.page-tutorials .toc-link { color: #475569; text-decoration: none; display: block; padding: 8px 12px; border-radius: 6px; transition: all 0.3s; cursor: pointer; }
.page-tutorials .toc-link:hover { background: #f1f5f9; color: var(--asys-blue); }
.page-tutorials .toc-link.active { background: var(--asys-blue); color: white; }
.page-tutorials .tutorial-content { flex: 1; background: white; border-radius: 12px; padding: 40px; border: 1px solid #e2e8f0; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); min-height: 500px; }
.page-tutorials .embedded-content img { max-width: 100%; height: auto; border-radius: 8px; margin: 20px 0; }
.page-tutorials .embedded-content h1 { font-size: 2.2rem; margin-bottom: 20px; color: #0f172a; border-bottom: 2px solid #e2e8f0; padding-bottom: 15px; }
.page-tutorials .embedded-content h2 { font-size: 1.8rem; margin: 40px 0 20px 0; color: #0f172a; padding-bottom: 10px; border-bottom: 1px solid #e2e8f0; }
.page-tutorials .embedded-content h3 { font-size: 1.4rem; margin: 30px 0 15px 0; color: #0f172a; }
.page-tutorials .embedded-content p { margin-bottom: 15px; }
.page-tutorials .embedded-content pre { background: #1e293b; color: #fff; padding: 15px; border-radius: 8px; overflow-x: auto; margin: 20px 0; }
.page-tutorials .embedded-content code { background: #f1f5f9; padding: 2px 6px; border-radius: 4px; font-family: monospace; }
.page-tutorials .content-placeholder { text-align: center; color: #94a3b8; padding: 100px 0; }
.page-tutorials .content-placeholder .icon { font-size: 3rem; margin-bottom: 15px; }
.page-tutorials .loading { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px; }
.page-tutorials .loading-spinner { width: 40px; height: 40px; border: 4px solid #e2e8f0; border-top: 4px solid var(--asys-blue); border-radius: 50%; animation: spin 1s linear infinite; margin-bottom: 15px; }

/* --- ASYS Debian 详情页 --- */
.page-debian .product-overview { display: flex; gap: 60px; padding: 60px 0; border-bottom: 1px solid #eee; align-items: flex-start; }
.page-debian .preview-area { flex: 1; background: #fbfbfb; border: 1px solid #eee; border-radius: 8px; padding: 20px; }
.page-debian .main-stage { height: 400px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; overflow: hidden; }
.page-debian .gallery-item { display: none; width: 100%; height: 100%; align-items: center; justify-content: center; animation: fadeIn 0.3s ease-in-out; }
.page-debian .gallery-item.active { display: flex; }
.page-debian .gallery-item img { max-width: 100%; max-height: 100%; object-fit: contain; }
.page-debian .thumbnail-strip { display: flex; gap: 10px; justify-content: center; height: 70px; }
.page-debian .thumb-box { width: 70px; height: 70px; border: 2px solid #eee; border-radius: 4px; cursor: pointer; padding: 5px; background: #fff; display: flex; align-items: center; justify-content: center; transition: all 0.3s; }
.page-debian .thumb-box.active { border-color: #000; }
.page-debian .thumb-box:hover { border-color: #999; }
.page-debian .thumb-box img { max-width: 100%; max-height: 100%; object-fit: contain; }
.page-debian .info-area { flex: 1; display: flex; flex-direction: column; }
.page-debian .product-title { font-size: 28px; font-weight: 700; color: #000; margin-bottom: 30px; line-height: 1.3; }
.page-debian .feature-list { margin-bottom: 30px; }
.page-debian .feature-item { font-size: 14px; color: #666; margin-bottom: 12px; line-height: 1.6; padding-left: 15px; position: relative; }
.page-debian .feature-item::before { content: ''; position: absolute; left: 0; top: 8px; width: 4px; height: 4px; background: var(--debian-red); border-radius: 50%; }
.page-debian .price-info { margin-bottom: 25px; padding-top: 20px; border-top: 1px dashed #eee; display: flex; align-items: baseline; gap: 10px; }
.page-debian .price-main { font-size: 36px; color: var(--debian-red); font-weight: 700; line-height: 1; }
.page-debian .price-symbol { font-size: 20px; margin-right: 5px; }
.page-debian .shipping-tag { font-size: 14px; color: #fff; background: var(--debian-red); padding: 4px 10px; border-radius: 4px; font-weight: 500; }
.page-debian .action-buttons { display: flex; gap: 20px; }
.page-debian .action-buttons .buy-button { flex: 1; height: 50px; line-height: 50px; background: #222; color: #fff; text-align: center; font-size: 16px; font-weight: 600; border-radius: 2px; cursor: pointer; transition: background 0.3s; }
.page-debian .action-buttons .buy-button:hover { background: var(--debian-red); }
.page-debian .action-buttons .contact-button { flex: 1; height: 50px; line-height: 50px; background: #fff; color: #333; text-align: center; font-size: 16px; font-weight: 600; border-radius: 2px; cursor: pointer; transition: all 0.3s; border: 2px solid #eee; }
.page-debian .action-buttons .contact-button:hover { border-color: var(--debian-red); color: var(--debian-red); }
.page-debian .details-container { padding: 40px 0 80px; }
.page-debian .tabs { display: flex; gap: 40px; border-bottom: 1px solid #ddd; margin-bottom: 30px; }
.page-debian .tab-item { padding-bottom: 15px; font-size: 16px; font-weight: 700; color: #666; cursor: pointer; border-bottom: 3px solid transparent; transition: all 0.3s; }
.page-debian .tab-item:hover { color: #333; }
.page-debian .tab-item.active { color: #000; border-bottom-color: #000; }
.page-debian .tab-pane { display: none; animation: fadeIn 0.5s; }
.page-debian .tab-pane.active { display: block; }
.page-debian .specs-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.page-debian .specs-table tr { height: 50px; }
.page-debian .specs-table tr:nth-child(odd) { background-color: #f7f7f7; }
.page-debian .specs-table tr:nth-child(even) { background-color: #ffffff; }
.page-debian .specs-table td { padding: 0 20px; color: #333; border: none; }
.page-debian .specs-label { width: 200px; font-weight: 600; color: #000; }
.page-debian .intro-text { line-height: 1.8; color: #444; padding: 30px; background: #fcfcfc; border: 1px solid #eee; border-radius: 8px; }

/* Debian Promo Wrapper (长文本展示) */
#debian-promo-wrapper { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; line-height: 1.7; color: #333; width: 100%; padding: 20px 0 40px 0; background-color: #fff; box-sizing: border-box; }
.dp-header { text-align: center; margin-bottom: 50px; }
.dp-header h1 { font-size: 3rem; color: var(--debian-red); margin-bottom: 15px; font-weight: 800; letter-spacing: -1px; }
.dp-header .subtitle { font-size: 1.25rem; color: #666; max-width: 700px; margin: 0 auto 30px auto; }
.dp-btn { display: inline-block; background-color: var(--debian-red); color: white; padding: 14px 35px; border-radius: 50px; text-decoration: none; font-weight: bold; transition: background 0.3s, transform 0.2s; box-shadow: 0 4px 6px rgba(215, 10, 83, 0.2); }
.dp-btn:hover { background-color: #b00842; transform: translateY(-2px); color: white; }
.dp-intro { text-align: center; max-width: 800px; margin: 0 auto 50px auto; font-size: 1.1rem; color: #444; }
.dp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-bottom: 60px; }
.dp-card { background: #f9f9f9; border-radius: 12px; padding: 35px; transition: all 0.3s ease; border-top: 4px solid var(--debian-red); display: flex; flex-direction: column; }
.dp-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.08); background: #fff; }
.dp-card h3 { font-size: 1.5rem; margin-top: 0; margin-bottom: 15px; color: #222; display: flex; align-items: center; }
.dp-icon { margin-right: 12px; font-size: 1.6rem; }
.dp-card p { font-size: 1rem; color: #555; margin-bottom: 0; flex-grow: 1; }
.dp-section { margin-bottom: 60px; background: #fff; }
.dp-section-title { font-size: 2rem; color: #222; margin-bottom: 30px; text-align: center; font-weight: 700; }
.dp-content-block { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; background: #f4f4f4; padding: 40px; border-radius: 16px; margin-bottom: 30px; }
.dp-content-text { flex: 1; min-width: 300px; }
.dp-content-text h4 { font-size: 1.4rem; color: var(--debian-red); margin-top: 0; margin-bottom: 15px; }
.dp-content-text ul { padding-left: 20px; color: #555; }
.dp-content-text li { margin-bottom: 10px; }
.dp-highlight { background-color: #222; color: #fff; padding: 50px 40px; border-radius: 16px; text-align: center; margin-top: 40px; }
.dp-highlight h2 { color: #fff; margin-top: 0; font-size: 1.8rem; }
.dp-highlight p { opacity: 0.9; max-width: 700px; margin: 20px auto; }
.dp-disclaimer { margin-top: 40px; font-size: 0.85rem; color: #888; text-align: left; border-top: 1px solid #eee; padding-top: 20px; }

@keyframes fadeIn { from { opacity: 0.5; } to { opacity: 1; } }

/* =========================================
   全站通用手机端适配 (Mobile Response)
   ========================================= */
@media (max-width: 768px) {
    /* 1. 修复 Vantage 导航栏炸裂和巨大 Logo */
    .site-asys nav, .site-vantage nav { flex-direction: column; gap: 15px; padding: 15px 20px !important; position: relative; }
    .site-vantage .nav-left { flex-direction: column; gap: 15px; width: 100%; align-items: center; }
    .site-vantage .asys-main-link { position: absolute; top: 18px; right: 20px; }
    .site-vantage .asys-main-link img { height: 22px !important; width: auto !important; }

/* 2. 修复大 V 手机端太小、缩放不舒服的问题 */
    .site-vantage .bg-watermark { 
        top: 45% !important; /* 因为换了锚点，所以调回 45% 就刚好居中托住文字了 */
        background-size: 140vw !important; 
        opacity: 0.3 !important; 
    }
    /* 3. 导航链接排版 */
    .site-asys .debian-nav-links, .site-vantage .vantage-nav-links { flex-wrap: wrap; justify-content: center; gap: 10px; width: 100%; margin-left: 0; }
    .site-vantage .vantage-nav-links a { background: #f8fafc; padding: 5px 12px; border-radius: 4px; border: 1px solid #e2e8f0; font-size: 14px; }
    .site-vantage .vantage-nav-links a.active { border-color: var(--vantage-blue); color: var(--vantage-blue); }
    .site-asys .debian-nav-links a { font-size: 0.9rem; padding: 5px 10px; }
    .site-asys .debian-nav-links a.active::after { display: none; }
    
    /* 4. 页面区块坍缩与字体缩小 */
    .hero { padding: 6vh 20px 10vh; }
    .hero-v-img { width: 90px; height: 90px; margin-bottom: 15px; }
    .hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 1rem; margin: 1rem 0 2rem; }
    .content-mask { border-top-left-radius: 25px; border-top-right-radius: 25px; }
    .page-vantage-home .container { padding: 40px 15px 60px; }
    .site-asys .section-title, .site-vantage .section-title { margin-bottom: 2rem; }
    .site-asys .section-title h2, .site-vantage .section-title h2 { font-size: 1.6rem; }
    .site-vantage .section-title p { font-size: 0.95rem; }
    
    /* 5. 卡片单列显示 */
    .features, .page-about .about-content, .page-about .contact-grid, .page-products .products-grid, .page-service .category-grid { grid-template-columns: 1fr; gap: 20px; }
    .f-card, .page-service .category-card { padding: 30px 20px; }
    .f-icon { font-size: 2.2rem; }
    .f-card h3 { font-size: 1.15rem; }
    .f-card p { font-size: 0.85rem; }
    .legal-footer { padding: 40px 20px; }
    .legal-text { font-size: 0.9rem; }
    
    /* 6. 下载页适配 */
    .page-header { padding: 40px 15px 30px; }
    .page-header h1, .dp-header h1 { font-size: 2.2rem; }
    .btn-smart { padding: 12px 30px; font-size: 1.1rem; }
    .warning-box { padding: 15px; font-size: 0.85rem; margin-top: 20px; }
    .download-container { margin: 40px auto; padding: 0 15px; }
    .os-grid { grid-template-columns: 1fr; gap: 20px; }
    .os-card { padding: 30px 20px; }
    .os-card .btn-primary, .os-card .btn-secondary, .btn-warning-dark { font-size: 0.95rem; padding: 10px 15px; }

    /* 7. 其他页面适配 */
    .page-tutorials .tutorial-layout, .page-docs .docs-layout, .page-debian .product-overview { flex-direction: column; }
    .page-tutorials .tutorial-sidebar, .page-docs .docs-sidebar { width: 100%; position: static; margin-bottom: 20px; height: auto; border-right: none; border-bottom: 1px solid var(--border); padding: 20px 15px 5px;}
    .page-tutorials .tutorial-content, .page-docs .docs-content { padding: 20px; width: 100%; }
    .page-docs .docs-sidebar ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 15px; }

    .page-debian .preview-area, .page-debian .info-area { width: 100%; }
    .page-debian .main-stage { height: 300px; }
    .page-debian .action-buttons { flex-direction: column; }
    .page-debian .tabs { overflow-x: auto; white-space: nowrap; }
    .dp-content-block { padding: 25px; }
    .dp-grid { grid-template-columns: 1fr; }
}
/* ★★★ 师傅要求的：缩小 Vantage 导航栏两边留白 ★★★ */
.site-vantage nav { 
    padding: 1rem 5% !important; 
}

/* ★★★ 终极大 V 方案：完美兼容 JS 放大特效 + 兼容 2K/1080p ★★★ */
.bg-watermark { 
    position: fixed !important; 
    top: 50% !important; 
    left: 50% !important; 
    width: 100vw !important; 
    height: 100vh !important; 
    
    /* 🚀 动效接口 1：千万不能加 !important，要留给 JS 去放大它 */
    transform: translate3d(-50%, -50%, 0) scale(1); 
    
    background-image: url('../img/vantage.webp'); 
    background-repeat: no-repeat; 
    background-position: center 55% !important; 
    background-size: 150vh !important; 
    
    /* 🚀 动效接口 2 (罪魁祸首)：去掉了 !important，JS 终于可以控制淡出淡入了！ */
    opacity: 0.45; 
    
    z-index: -1 !important; 
    pointer-events: none !important; 
    
    /* 去掉 !important，让浏览器底层加速自然生效 */
    will-change: transform, opacity; 
    backface-visibility: hidden !important;
    /* ★★★ 终极层级护盾：彻底防止文字和按钮被大 V 遮挡或产生虚影 ★★★ */
    .hero h1, 
    .hero p, 
    .hero-v-img, 
    .hero div {
        position: relative !important;
        z-index: 99 !important; /* 强行把文字和按钮提到绝对的最上层 */
}

/* 专门增强“隐私·快速·易用”的清晰度，防止被背后的蓝绿色吞噬 */
.hero p {
    font-weight: 600 !important; /* 稍微加粗一点 */
    color: #374151 !important; /* 颜色稍微调深一点点 */
    text-shadow: 0 1px 4px rgba(255, 255, 255, 0.9) !important; /* 加一层非常自然的白色底光，瞬间脱离背景 */
}
}

/* ★★★ 2K / 4K 大屏专属遥控器 ★★★ */
@media (min-width: 2000px) {
    .bg-watermark {
        background-position: center 88% !important; 
        background-size: 130vh !important; 
    }
}

/* ★★★ 手机端专属大 V 补丁 ★★★ */
@media (max-width: 768px) {
    .bg-watermark {
        /* 1. 手机端屏幕细长，必须按宽度 (vw) 来缩小，防止被切头！你可以调 130vw 或 140vw */
        background-size: 140vw !important; 
        
        /* 2. 手机端专属上下位置：如果觉得偏上，把 45% 改成 50% 往下压 */
        background-position: center 48% !important; 
        
        /* 3. 手机端稍微调淡一点，防止喧宾夺主 */
        opacity: 0.25 !important; 
    }
}
