/* 全局样式重置 - 简化滚动条隐藏 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

*::-webkit-scrollbar {
    display: none;
}

html, body {
    overflow-y: scroll;
    overflow-x: hidden;
}

:root {
    /* 基础色板（默认主题 = 现有风格） */
    --bg-1: #667eea;
    --bg-2: #764ba2;

    /* 修正默认主题的文字主色为白色，保持现有显示效果 */
    --text-primary: #ffffff;
    --heading-color: #ffffff;

    --glass-bg: rgba(255, 255, 255, 0.10);
    --glass-border: rgba(255, 255, 255, 0.20);

    --navbar-bg: rgba(255, 255, 255, 0.10);
    --navbar-bg-scrolled: rgba(255, 255, 255, 0.15);
    --navbar-border: rgba(255, 255, 255, 0.20);

    --link-color: rgba(255, 255, 255, 0.8);
    --link-color-active: #ffffff;
    --link-hover-bg: rgba(255, 255, 255, 0.10);

    /* 新增：卡片/按钮/图标/页脚等主题变量（默认主题=当前玻璃风格） */
    --card-bg: rgba(255, 255, 255, 0.12);
    --card-border: rgba(255, 255, 255, 0.2);
    --card-bg-hover: rgba(255, 255, 255, 0.18);
    --card-border-hover: rgba(255, 255, 255, 0.35);

    --feature-bg: rgba(255, 255, 255, 0.10);
    --feature-bg-hover: rgba(255, 255, 255, 0.15);

    --btn-1: #667eea;
    --btn-2: #764ba2;
    --btn-text: #ffffff;
    --btn-shadow: rgba(0, 0, 0, 0.2);

    --icon-color: #ffffff;

    --footer-text: #ffffff;
    --footer-bg: rgba(255, 255, 255, 0.06);
    --footer-border: rgba(255, 255, 255, 0.15);

    /* 标题渐变、次级文本、页脚链接（默认主题） */
    --heading-grad-1: #ffffff;
    --heading-grad-2: #e0e0e0;
    --text-secondary: rgba(255, 255, 255, 0.85);
    --footer-link: #ffffff;
}

/* 主题：白天 */
:root[data-theme="light"] {
    --bg-1: #f5f7fa;
    --bg-2: #e9eff7;

    --text-primary: #222222;
    --heading-color: #111111;

    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(0, 0, 0, 0.06);

    --navbar-bg: rgba(255, 255, 255, 0.85);
    --navbar-bg-scrolled: rgba(255, 255, 255, 0.95);
    --navbar-border: rgba(0, 0, 0, 0.08);

    --link-color: #222222;
    --link-color-active: #111111;
    --link-hover-bg: rgba(0, 0, 0, 0.04);

    --card-bg: rgba(255, 255, 255, 0.85);
    --card-border: rgba(0, 0, 0, 0.06);
    --card-bg-hover: rgba(255, 255, 255, 0.92);
    --card-border-hover: rgba(0, 0, 0, 0.10);

    --feature-bg: rgba(0, 0, 0, 0.04);
    --feature-bg-hover: rgba(0, 0, 0, 0.06);

    --btn-1: #3b82f6;
    --btn-2: #2563eb;
    --btn-text: #ffffff;
    --btn-shadow: rgba(37, 99, 235, 0.35);

    --icon-color: #222222;

    --footer-text: #222222;
    --footer-bg: rgba(255, 255, 255, 0.92);
    --footer-border: rgba(0, 0, 0, 0.08);

    --heading-grad-1: #222222;
    --heading-grad-2: #555555;
    --text-secondary: #555555;
    --footer-link: #222222;
}

/* 主题：黑夜 */
:root[data-theme="dark"] {
    --bg-1: #1a2440;
    --bg-2: #101827;

    --text-primary: #eaeaea;
    --heading-color: #ffffff;

    --glass-bg: rgba(255, 255, 255, 0.06);
    --glass-border: rgba(255, 255, 255, 0.12);

    --navbar-bg: rgba(0, 0, 0, 0.35);
    --navbar-bg-scrolled: rgba(0, 0, 0, 0.55);
    --navbar-border: rgba(255, 255, 255, 0.12);

    --link-color: rgba(255, 255, 255, 0.85);
    --link-color-active: #ffffff;
    --link-hover-bg: rgba(255, 255, 255, 0.08);

    --card-bg: rgba(255, 255, 255, 0.06);
    --card-border: rgba(255, 255, 255, 0.12);
    --card-bg-hover: rgba(255, 255, 255, 0.10);
    --card-border-hover: rgba(255, 255, 255, 0.20);

    --feature-bg: rgba(255, 255, 255, 0.08);
    --feature-bg-hover: rgba(255, 255, 255, 0.12);

    --btn-1: #4256ff;
    --btn-2: #7a3cff;
    --btn-text: #ffffff;
    --btn-shadow: rgba(0, 0, 0, 0.4);

    --icon-color: #ffffff;

    --footer-text: #eaeaea;
    --footer-bg: rgba(0, 0, 0, 0.35);
    --footer-border: rgba(255, 255, 255, 0.12);

    --heading-grad-1: #ffffff;
    --heading-grad-2: #dddddd;
    --text-secondary: #cfcfcf;
    --footer-link: #eaeaea;
}





body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--bg-1) 0%, var(--bg-2) 100%);
    min-height: 100vh;
}

/* 确保容器也隐藏滚动条 */
.container,
.section,
.glass-effect {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.container::-webkit-scrollbar,
.section::-webkit-scrollbar,
.glass-effect::-webkit-scrollbar {
    display: none;
}

/* 毛玻璃效果 */
.glass-effect {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--navbar-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--navbar-border);
    z-index: 1000;
    padding: 0 20px;
}

.navbar.scrolled {
    background: var(--navbar-bg-scrolled);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.nav-logo h2 {
    color: var(--link-color-active);
    font-weight: 600;
    font-size: 1.5rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--link-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--link-color-active);
    background: var(--link-hover-bg);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--link-color-active);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* 主题选择器样式 - 简化无边框版 */
.theme-selector {
    position: relative;
}

/* 主题按钮：维持无边框、无悬停背景的极简风格 */
.theme-btn {
    background: transparent;
    border: none;
    border-radius: 6px;
    padding: 6px 8px;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

/* 指示器容器与三种状态图标（尺寸略微放大） */
.theme-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    color: var(--icon-color);
}

/* 默认模式：小圆点（增加高光与外环） */
.theme-indicator .icon-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
    background:
        radial-gradient(closest-side at 30% 30%, rgba(255,255,255,0.35), rgba(255,255,255,0) 60%),
        linear-gradient(135deg, var(--btn-1), var(--btn-2));
    border: 1px solid var(--card-border);
    box-shadow: 0 1px 2px rgba(0,0,0,0.12);
}

/* 默认（紫色）模式：小圆点扁平化 + 边线更浅（纯色，无透明） */
:root[data-theme="default"] .theme-indicator .icon-dot,
:root:not([data-theme]) .theme-indicator .icon-dot {
    background: linear-gradient(135deg, var(--btn-1), var(--btn-2)); /* 仍与配色对应 */
    border-color: #ffffff;     /* 更浅纯白，无透明度 */
    box-shadow: none;          /* 扁平化 */
}

/* 太阳 / 月亮图标（描边随主题颜色） */
.theme-indicator .icon-sun,
.theme-indicator .icon-moon {
    display: none;
    line-height: 0;
}

/* 太阳 / 月亮图标（描边随主题颜色，略微放大线条与尺寸） */
.theme-indicator .icon-sun svg,
.theme-indicator .icon-moon svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

:root:not([data-theme]) .theme-indicator .icon-dot,
:root[data-theme="default"] .theme-indicator .icon-dot { display: inline-block; }
:root:not([data-theme]) .theme-indicator .icon-sun,
:root:not([data-theme]) .theme-indicator .icon-moon,
:root[data-theme="default"] .theme-indicator .icon-sun,
:root[data-theme="default"] .theme-indicator .icon-moon { display: none; }

:root[data-theme="light"] .theme-indicator .icon-dot { display: none; }
:root[data-theme="light"] .theme-indicator .icon-sun { display: inline-block; }
:root[data-theme="light"] .theme-indicator .icon-moon { display: none; }

:root[data-theme="dark"] .theme-indicator .icon-dot { display: none; }
:root[data-theme="dark"] .theme-indicator .icon-sun { display: none; }
:root[data-theme="dark"] .theme-indicator .icon-moon { display: inline-block; }

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 页面部分 */
.section {
    display: none;
    min-height: 100vh;
    padding-top: 80px;
}

.section.active {
    display: block;
}

/* 页面内容起始下移（妙可英语、说鲨、知识库、关于我们） */
#miaoke-english.section,
#shuosha.section,
#knowledge-base.section,
#about.section {
    padding-top: 150px;
    scroll-margin-top: 150px;
}

.hero {
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
    transform: translateY(50px);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--heading-grad-1), var(--heading-grad-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 6rem;
    opacity: 0.9;
    color: var(--text-secondary);
}

.hero-description {
    font-size: 1.25rem;
    opacity: 0.8;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* 产品部分 */
.products-section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--heading-color);
    margin-bottom: 3rem;
    font-weight: 600;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.product-card {
    padding: 2rem;
    text-align: center;
    color: var(--text-primary);
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
}

.product-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
}

.app-icon {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    object-fit: contain;
}

.app-icon:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* 联系方式图标：可随主题切换颜色 */
.contact-icon {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    flex: 0 0 28px;
    color: var(--icon-color);
    font-size: 18px;
    line-height: 1;
}

.icon-phone::before {
    content: "☎";
    font-family: "Segoe UI Symbol", "Noto Color Emoji", "Apple Color Emoji", sans-serif;
}

.icon-mail::before {
    content: "✉";
    font-family: "Segoe UI Symbol", "Noto Color Emoji", "Apple Color Emoji", sans-serif;
}

/* 联系我们卡片中的电话/邮箱图标：使用 CSS mask + background-color 控制颜色 */
.contact-info-card .contact-icon {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex: 0 0 30px;
    background-size: 26px 26px;
    background-repeat: no-repeat;
    background-position: center;
    line-height: 1;
}

/* 电话图标 */
.contact-info-card .icon-phone {
    background-color: var(--icon-color);
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z'/%3E%3C/svg%3E");
    -webkit-mask-size: 26px 26px;
    mask-size: 26px 26px;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

/* 邮件图标 */
.contact-info-card .icon-mail {
    background-color: var(--icon-color);
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.89 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.89 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z'/%3E%3C/svg%3E");
    -webkit-mask-size: 26px 26px;
    mask-size: 26px 26px;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

/* 移除旧的 ::before 符号，避免叠加 */
.contact-info-card .icon-phone::before,
.contact-info-card .icon-mail::before {
    content: none;
}

/* 知识管理图标去掉背景效果 */
.knowledge-icon {
    box-shadow: none;
}

.knowledge-icon:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: none;
}
.product-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.product-card p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

/* 按钮 */
.btn-primary {
    background: linear-gradient(45deg, var(--btn-1), var(--btn-2));
    color: var(--btn-text);
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px var(--btn-shadow);
}

/* 页面头部 */
.page-header {
    text-align: center;
    margin-bottom: 6rem;  /* 从 3rem 增加到 6rem */
    color: var(--heading-color);
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.2rem;
    opacity: 0.8;
}

/* 内容网格 */
.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

/* 产品详情页面布局优化 */
.product-detail-layout {
    display: flex;
    flex-direction: column;
    gap: 6rem;  /* 从 3rem 增加到 6rem，与页脚间距保持一致 */
    max-width: 900px;
    margin: 0 auto;
}

/* 仅影响：妙可英语页面，使其内容容器与导航容器同宽，便于卡片两端对齐 */
#miaoke-english .product-detail-layout {
    max-width: none;         /* 覆盖原先的 900px 限制 */
}

/* 说鲨页面：扩展容器宽度，确保3卡片居中显示 */
#shuosha .product-detail-layout {
    max-width: none;       /* 从1500px改为 none，容器不再受限，由内层栅格自控宽度 */
}

/* 内容文本样式优化 - 大气风格 */
.content-text {
    padding: 3rem;
    color: var(--text-primary);
    width: 100%;
    text-align: center;
}

.content-text h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-weight: 700;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.content-text p {
    line-height: 1.8;
    opacity: 0.9;
    font-size: 1.2rem;
    text-align: justify;
    margin-bottom: 2rem;
}

/* 居中的二维码部分优化 */
.qr-section-centered {
    padding: 3rem;
    text-align: center;
    color: white;
    align-self: center;
    width: 100%;
    max-width: 500px;
}

.qr-section-centered h3 {
    margin-bottom: 2rem;
    font-weight: 700;
    font-size: 2rem;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* === 覆盖：妙可英语/说鲨 页面 标题与正文使用主题色 === */
.content-text h2,
.qr-section-centered h3,
.company-intro-card h2,
.contact-info-card h2 {
    color: var(--heading-color) !important;
    background: none !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    -webkit-text-fill-color: currentColor !important;
}

/* 这些区域的正文、说明等文本统一按主题主文本色 */
.content-text p,
.qr-section-centered p,
.qr-code small,
.qr-placeholder-large p,
.qr-placeholder-large small {
    color: var(--text-primary) !important;
}

/* 若知识库/关于我们出现未包裹在 p 的纯文本，也通过容器继承为主题文字色 */
.content-single,
.company-intro-card,
.contact-info-card {
    color: var(--text-primary) !important;
}
.qr-code {
    margin-top: 1.5rem;
}
.qr-image {
    width: 240px;
    height: 240px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    border-radius: 12px;
}
/* 二维码下方说明文字的间距与字号调整 */
.qr-code small {
    display: block;
    margin-top: 1rem;     /* 增加二维码与文字间距 */
    font-size: 1.1rem;    /* 适当放大说明文字 */
    opacity: 0.9;
}

.qr-placeholder-large small {
    opacity: 0.8;
    font-size: 1rem;
    z-index: 1;
    position: relative;
}

/* 添加产品特色展示区域 */
.product-features {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--feature-bg);
    border-radius: 12px;
    transition: all 0.3s ease;
    min-width: 100px;
}

.feature-item:hover {
    background: var(--feature-bg-hover);
    transform: translateY(-3px);
}

.feature-icon {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.feature-text {
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    opacity: 0.9;
}

/* 产品简介 4 卡片栅格 */
.intro-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2.2rem;
    margin-bottom: 3rem;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}

/* 说鲨页面桌面端：3列更宽卡片并居中显示（容器放开后由栅格自控宽度） */

.intro-card {
    padding: 1.6rem 1.2rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* 仅在妙可英语保留方形比例 */
#miaoke-english .intro-card {
    aspect-ratio: 1 / 1;
}

.intro-card:hover {
    background: var(--card-bg-hover);
    border-color: var(--card-border-hover);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--btn-shadow);
}
.intro-card h4 {
    margin: 0 0 1rem 0;
    font-size: 1.4rem;
    color: var(--heading-color);
    font-weight: 600;
    text-align: center;
}
.intro-card p {
    margin: 0;
    font-size: 1.25rem;
    color: var(--text-secondary);
    font-weight: 500;
    line-height: 2.2;
}

/* 响应式设计更新 */
@media (max-width: 768px) {
    .product-detail-layout {
        gap: 2rem;
    }
    
    .content-text,
    .qr-section-centered {
        padding: 2.5rem;
    }
    
    /* 通用：两列展示 */
    .intro-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.8rem;
        max-width: 990px;
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
    
    .intro-card {
        padding: 1.6rem 1.2rem;
        min-height: auto;
    }
    /* 妙可英语：移动端卡片随内容自适应，适当缩小 */
    #miaoke-english .intro-card {
        aspect-ratio: auto;
        padding: 1.2rem 1rem;
        min-height: 220px;
    }
    .intro-card h4 {
        font-size: 1.25rem;
        margin-bottom: 0.8rem;
        color: var(--heading-color);
    }
    .intro-card p {
        font-size: 1.2rem;
        line-height: 1.8;
        color: var(--text-secondary);
    }
    
    .content-text h2 {
        font-size: 2rem;
    }
    
    .qr-section-centered h3 {
        font-size: 1.8rem;
    }
    
    .content-text p {
        font-size: 1.1rem;
    }
    
    .qr-image {
        width: 200px;
        height: 200px;
    }
    .qr-code small {
        margin-top: 0.75rem;
        font-size: 1.05rem;
    }
    
    .product-features {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .content-text,
    .qr-section-centered {
        padding: 2rem;
    }
    
    /* 通用：单列展示 */
    .intro-cards {
        grid-template-columns: 1fr;
        gap: 1.8rem;
        max-width: 495px;
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
    
    .intro-card {
        padding: 1.2rem 1rem;
        min-height: auto;
    }
    /* 妙可英语：小屏进一步收紧 */
    #miaoke-english .intro-card {
        aspect-ratio: auto;
        padding: 1rem 0.9rem;
        min-height: 200px;
    }
    #miaoke-english .intro-card p {
        font-size: 1.05rem;
        line-height: 1.65;
    }
    .intro-card h4 {
        font-size: 1.15rem;
        margin-bottom: 0.6rem;
        color: var(--heading-color);
    }
    .intro-card p {
        font-size: 1.1rem;
        line-height: 1.7;
        color: var(--text-secondary);
    }
    
    .content-text h2 {
        font-size: 1.8rem;
    }
    
    .qr-section-centered h3 {
        font-size: 1.6rem;
    }
    
    .content-text p {
        font-size: 1rem;
    }
    
    .qr-image {
        width: 180px;
        height: 180px;
    }
    .qr-code small {
        margin-top: 0.6rem;
        font-size: 1rem;
    }
    
    .product-features {
        flex-direction: column;
        align-items: center;
    }
    
    .feature-item {
        width: 100%;
        max-width: 200px;
    }
}
/* 单列内容 */
.content-single {
    padding: 2rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

.content-single h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.content-single p {
    line-height: 1.8;
    opacity: 0.9;
    margin-bottom: 2rem;
}

/* 体验部分 */
.experience-section {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--footer-border);
}
.experience-section h3 {
    margin-bottom: 1rem;
    font-weight: 600;
}

.experience-note {
    margin-top: 1rem;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* 通用页脚 */
.site-footer {
    margin-top: 12rem;
    color: var(--footer-text);
    background: var(--footer-bg);
    border-top: 1px solid var(--footer-border);
}

.site-footer .footer-main {
    display: grid;
    grid-template-columns: 2fr 2fr 2fr;
    gap: 2rem;
    padding: 2rem 0;
}

.site-footer .footer-brand .company-name {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    opacity: 0.95;
}

.site-footer .footer-brand .company-slogan {
    opacity: 0.8;
    font-size: 0.95rem;
}

.site-footer .footer-links .links-title,
.site-footer .footer-contact .contact-title {
    font-weight: 600;
    margin-bottom: 0.75rem;
    opacity: 0.95;
}

.site-footer .links-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
}

.site-footer .links-list a {
    color: var(--footer-link);
    opacity: 0.85;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.site-footer .links-list a:hover {
    opacity: 1;
}

/* 去除页脚中联系方式的卡片效果 */
.site-footer .footer-contact .contact-item {
    line-height: 1.8;
    opacity: 0.9;
    padding: 0;
    background: none;
    border-radius: 0;
    border: none;
    box-shadow: none;
    font-size: 0.95rem; /* 统一与页脚文字大小 */
}

.site-footer .footer-bottom {
    border-top: 1px solid var(--footer-border);
    padding: 1rem 0;
    font-size: 0.9rem;
    opacity: 0.85;
}

/* 一行展示，并可在窄屏时自动换行 */
.site-footer .footer-bottom .container {
    display: flex;
    flex-wrap: wrap; /* 窄屏允许换行，避免溢出 */
    justify-content: center;
    align-items: center;
    gap: 0; /* 使用分割线，不使用 gap */
}

/* 移除旧的单一分隔符 */
.site-footer .footer-bottom .container::after {
    display: none;
}

/* 为每个项之间添加竖向分割线，颜色随主题 */
.site-footer .footer-bottom .container > * {
    position: relative;
    padding: 0 0.75rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.site-footer .footer-bottom .container > * + *::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 1px;
    height: 1em; /* 与文字高度接近的分割线 */
    transform: translateY(-50%);
    background: var(--footer-border);
    opacity: 0.6;
}

@media (max-width: 992px) {
    .site-footer .footer-main {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .site-footer .footer-main {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    .site-footer {
        margin-top: 6rem;
    }
}

/* 关于我们网格 */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.about-card {
    padding: 2rem;
    color: white;
}

.about-card h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.about-card p {
    line-height: 1.8;
    opacity: 0.9;
}

/* 联系信息 */
.contact-info {
    margin-top: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.contact-icon {
    margin-right: 1rem;
    font-size: 1.2rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
        /* 右侧 */
        justify-self: end;
        justify-content: center;
        align-items: center;
        width: 36px;
        height: 36px;
    }
    
    .bar {
        width: 20px;
        height: 2px;
        margin: 2px 0;
    }

    /* 统一使用 flex + 明确顺序与宽度，保证"左中右"对齐与中间居中 */
    .nav-container {
        display: flex;                 /* 覆盖原 grid 布局 */
        align-items: center;
        justify-content: space-between;
        /* padding 不变，保持导航栏高度 */
    }

    .theme-selector {
        order: 1;
        align-self: center;            /* 垂直自对齐 */
        flex: 0 0 36px;                /* 与按钮尺寸一致，避免视觉偏移 */
        margin: 0;
    }

    .nav-logo {
        order: 2;
        flex: 1 1 auto;                /* 占据中间空间 */
        display: flex;                 
        align-items: center;           /* 垂直居中 */
        justify-content: center;       /* 水平居中标题 */
        max-width: 100%;
    }
    .nav-logo h2 {
        text-align: center;
        margin: 0;
        font-size: 1.2rem;             /* 略降字号，避免小屏换行 */
        line-height: 1.1;              /* 与按钮高度更匹配，垂直对齐更稳 */
        white-space: nowrap;           
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .hamburger {
        order: 3;
        align-self: center;
        flex: 0 0 36px;                /* 与左侧一致 */
        justify-content: center;
        align-items: center;
        width: 36px;
        height: 36px;
    }

    /* 主题按钮尺寸与对齐：避免撑开导航栏高度 */
    .theme-btn {
        width: 36px;
        height: 36px;
        padding: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        /* 改为不透明且随主题变化的背景 */
        background: linear-gradient(135deg, var(--bg-1), var(--bg-2)) !important;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        border-top: 1px solid var(--navbar-border);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        gap: 0.6rem;          /* 减小各项之间的垂直间距 */
        padding: 1.5rem 0;    /* 顶部/底部留白略减 */
        color: var(--text-primary);
    }

    
    /* 移动端菜单内链接颜色与主题一致 + 扩展整行可点击 */
    .nav-menu .nav-item {
        width: 100%;
    }
    .nav-menu .nav-link {
        color: var(--link-color);
        display: block;
        width: 100%;
        box-sizing: border-box;
        text-align: center;
        padding: 0.75rem 1rem; /* 轻微收紧上下内边距 */
        line-height: 1.35;     /* 略压缩文本行高 */
        min-height: 44px;      /* 保持触控推荐点击高度 */
        font-size: 1.05rem;
        border-radius: 8px;
    }

    .nav-menu .nav-link:hover,
    .nav-menu .nav-link.active {
        color: var(--link-color-active);
        background: var(--link-hover-bg);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
        margin-bottom: 3rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    .hero-content {
        transform: translateY(30px);
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .product-card,
    .content-text,
    .content-single,
    .about-card {
        padding: 1.5rem;
    }
}
/* 关于我们页面布局 */
.about-layout {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
    padding-top: 3rem;    /* 补偿删除标题后的顶部间距（原 2rem 调整为 3rem） */
}

/* 公司介绍卡片 */
.company-intro-card {
    padding: 3rem;
    color: var(--text-primary);
    text-align: center;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
}

.company-intro-card h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-weight: 700;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.company-intro-card p {
    line-height: 1.8;
    opacity: 0.9;
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    text-align: justify;
}

/* 公司价值观 */
.company-values {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.value-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
    min-width: 120px;
}

.value-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
}

.value-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.value-text {
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
}

/* 联系信息卡片 */
.contact-info-card {
    padding: 3rem;
    color: var(--text-primary);
    text-align: center;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
}

.contact-info-card h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, var(--heading-grad-1), var(--heading-grad-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-description {
    font-size: 1.2rem;     /* 从 1.1rem 调整为 1.2rem，与 .page-subtitle 保持一致 */
    opacity: 0.8;
    margin-bottom: 2.5rem;
}

/* 联系详情 */
.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.2rem; /* 从 2rem 调整为 1.2rem，缩小卡片间距 */
    max-width: 400px;
    margin: 0 auto;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: var(--card-bg-hover);
    border-color: var(--card-border-hover);
    transform: translateX(5px);
}

.contact-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.contact-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
}

.contact-label {
    font-size: 0.9rem;
    opacity: 0.7;
    font-weight: 500;
}

.contact-value {
    font-size: 1.1rem;
    font-weight: 600;
}

/* 仅在“联系我们”卡片中稍微放大字体（不影响其他页面） */
.contact-info-card .contact-label {
    font-size: 1rem;
}

.contact-info-card .contact-value {
    font-size: 1.25rem;
}



/* 响应式设计更新 */
@media (max-width: 768px) {
    .about-layout {
        gap: 2rem;
    }
    
    .company-intro-card,
    .contact-info-card {
        padding: 2rem;
    }
    
    .company-intro-card h2,
    .contact-info-card h2 {
        font-size: 2rem;
    }
    
    .company-intro-card p {
        font-size: 1.1rem;
    }
    
    .company-values {
        gap: 1rem;
    }
    
    .value-item {
        min-width: 100px;
        padding: 0.8rem;
    }
    
    .contact-details {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .company-intro-card,
    .contact-info-card {
        padding: 1.5rem;
    }
    
    .company-intro-card h2,
    .contact-info-card h2 {
        font-size: 1.8rem;
    }
    
    .company-values {
        flex-direction: column;
        align-items: center;
    }
    
    .value-item {
        width: 100%;
        max-width: 200px;
    }
    
    .contact-item {
        padding: 1rem;
        gap: 1rem;
    }
}


/* 知识管理页（knowledge-base）专属布局优化：去掉横线并调整间距 */
#knowledge-base .page-header {
    margin-bottom: 1.5rem; /* 标题与按钮距离更紧凑 */
}

#knowledge-base .experience-section {
    padding-top: 0;        /* 去掉与标题之间的额外上内边距 */
    border-top: none;      /* 去掉中间横线 */
    margin-bottom: 1.5rem; /* 与下面正文保持适度间距 */
}

/* 知识管理页专属：去掉横线并加大与正文的间距 */
#knowledge-base .experience-section {
    padding-top: 0;         /* 紧贴标题 */
    border-top: none;       /* 去掉横线 */
    margin-bottom: 2.5rem;  /* 与文字介绍之间间距加大 */
}

/* 知识管理页视频区域 */
#knowledge-base .product-video {
    margin-top: 1.5rem;     /* 与介绍文字的间距 */
}
.product-video {
    position: relative;
    max-width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}
.product-video video {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16 / 9;   /* 自适应16:9 */
    background: #000;       /* 加载前黑底 */
}
/* 知识管理页：取消视频播放框圆角与阴影 */
#knowledge-base .product-video {
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
}
#knowledge-base .product-video video {
    border-radius: 0;
}

/* 知识管理页：介绍文案居中与字号优化 */
#knowledge-base .content-single .knowledge-desc {
    text-align: center;
    /* 由通用规则统一字体与行高，这里不重复设置 */
    max-width: 900px;
    margin: 0 auto 2rem;
    opacity: 0.9;

    /* 固定两行展示，超出截断 */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2; /* 两行 */
    line-clamp: 2; /* 标准属性 */
    overflow: hidden;
}

/* 统一所有"简介"字号为首页公司介绍一致（桌面 1.25rem / 移动 1.1rem，行高 1.8） */
.hero-description,
.product-card p,
.page-subtitle,
#knowledge-base .knowledge-desc {
    font-size: 1.25rem;
    line-height: 1.8;
}

@media (max-width: 768px) {
    #knowledge-base .experience-section {
        margin-bottom: 2rem; /* 移动端略微收紧按钮与文字的间距 */
    }
    #knowledge-base .product-video {
        margin-top: 1rem;    /* 移动端视频与文字的间距略收紧 */
    }
    #knowledge-base .content-single .knowledge-desc {
        /* 移动端同样保持两行 */
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
    .hero-description,
    .product-card p,
    .page-subtitle,
    #knowledge-base .knowledge-desc {
        font-size: 1.1rem;
        line-height: 1.8;
    }
}

/* === 说鲨页面专用样式 - 重构后 === */
#shuosha .product-detail-layout .intro-cards {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(400px, 1fr)) !important;
    gap: 28px !important;
    width: 100% !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
    justify-content: center !important;
    box-sizing: border-box !important;
}

#shuosha .intro-card {
    padding: 2rem 1.25rem !important;
    background: var(--card-bg) !important;
    border: 1px solid var(--card-border) !important;
    border-radius: 20px !important;
    transition: all 0.3s ease !important;
    text-align: center !important;
    min-height: 280px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    aspect-ratio: auto !important;
    height: auto !important;
    color: var(--text-primary) !important;
}

#shuosha .intro-card:hover {
    background: var(--card-bg-hover) !important;
    border-color: var(--card-border-hover) !important;
    box-shadow: 0 8px 25px var(--btn-shadow) !important;
}

/* 响应式调整 */
@media (max-width: 1024px) {
    #shuosha .product-detail-layout .intro-cards {
        grid-template-columns: repeat(2, 1fr) !important;
        width: 92% !important;
        max-width: 820px !important;
    }
}

@media (max-width: 768px) {
    #shuosha .product-detail-layout .intro-cards {
        grid-template-columns: 1fr !important;
        width: 94% !important;
        max-width: 520px !important;
    }
}

/* 备案链接颜色随主题 */
.site-footer .icp a {
    color: var(--footer-link);
    text-decoration: none;
}
.site-footer .icp a:hover {
    text-decoration: underline;
    color: var(--footer-link);
}

/* 公安备案样式 */
.site-footer .police {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.site-footer .police-icon {
    width: 16px;
    height: 16px;
    vertical-align: middle;
}
.site-footer .police a {
    color: var(--footer-link);
    text-decoration: none;
}
.site-footer .police a:hover {
    text-decoration: underline;
    color: var(--footer-link);
}

/* 取消 icp 块的额外内外边距与横线（仅保留 footer-bottom 的总横线） */
.site-footer .icp {
    margin: 0;
    padding: 0;
    border-top: none;
}

/* 页脚联系方式：统一字体（纯文本，不可点击） */
.site-footer .footer-contact .contact-item,
.site-footer .footer-contact .contact-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* 移除之前为可点击链接设置的动效 */
.site-footer .footer-contact .contact-link {
    text-decoration: none;
    transition: none;
}
.site-footer .footer-contact .contact-link:hover {
    text-decoration: none;
    transform: none;
    color: var(--text-secondary);
}