/* 颜色体系：浅色背景 + 德国黄强调色 */
:root {
    --bg-page: #fafafa;
    --card-bg: #ffffff;
    --card-border: rgba(0,0,0,0.06);

    /* 德国黄（可微调） */
    --accent-yellow: #ffcc00;

    --text-main: #1a1a1a;
    --text-dim: #666666;

    --radius-lg: 24px;
    --radius-md: 16px;

    --max-width: 1200px;

    --shadow-card: 0 24px 40px rgba(0,0,0,0.06),
                   0 4px 8px rgba(0,0,0,0.04);
    --shadow-float: 0 32px 60px rgba(0,0,0,0.08),
                    0 6px 12px rgba(0,0,0,0.06);
    --transition-fast: 0.18s ease;
    --border-light: 1px solid var(--card-border);
    --border-yellow-soft: 2px solid rgba(255,204,0,0.4);
    --border-yellow-hard: 3px solid var(--accent-yellow);
}

* {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    margin: 0;
    background-color: var(--bg-page);
    color: var(--text-main);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC",
                 "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    line-height: 1.5;
}

/* 顶部导航条 */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(255,255,255,0.8);
    backdrop-filter: blur(12px);
    border-bottom: var(--border-light);
}

.site-header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background-color: var(--accent-yellow);
    box-shadow: 0 6px 12px rgba(255,204,0,0.5),
                0 2px 3px rgba(0,0,0,0.2) inset;
    border: 2px solid rgba(0,0,0,0.5);
}

.brand-text {
    display: flex;
    flex-direction: column;
    font-size: 13px;
    line-height: 1.2;
    color: var(--text-main);
    font-weight: 500;
}
.brand-line1 {
    font-weight: 600;
    font-size: 13px;
}
.brand-line2 {
    font-size: 11px;
    color: var(--text-dim);
}

.top-links {
    display: flex;
    gap: 20px;
}
.top-link {
    font-size: 13px;
    text-decoration: none;
    color: var(--text-main);
    line-height: 1.2;
    border-bottom: 2px solid transparent;
    padding-bottom: 2px;
    transition: border-color var(--transition-fast), color var(--transition-fast);
}
.top-link:hover {
    border-color: var(--accent-yellow);
    color: #000;
}

/* 页面容器 */
.page-wrapper {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 60px 20px 120px 20px;
    display: flex;
    flex-direction: column;
    gap: 60px;
}

/* HERO BLOCK */
.block-hero {
    background: radial-gradient(
        circle at 20% 20%,
        rgba(255,204,0,0.18) 0%,
        rgba(255,255,255,0) 70%
    );
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    border: var(--border-light);
    position: relative;
    overflow: hidden;
}

.hero-inner {
    display: flex;
    flex-wrap: wrap;
    padding: 48px clamp(20px, 2vw, 32px) 40px;
    gap: 32px;
    align-items: center;
    justify-content: space-between;
}

.hero-text {
    flex: 1 1 320px;
    max-width: 520px;
    min-width: 280px;
}

.hero-eyebrow {
    display: inline-block;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 600;
    color: #000;
    background-color: var(--accent-yellow);
    padding: 4px 8px;
    border-radius: 6px;
    box-shadow: 0 6px 12px rgba(255,204,0,0.4);
    border: 1px solid rgba(0,0,0,0.2);
    width: fit-content;
}

.hero-title {
    font-size: clamp(30px, 2.4vw, 34px);
    line-height: 1.2;
    font-weight: 600;
    color: var(--text-main);
    letter-spacing: -0.02em;
    margin: 16px 0 16px 0;
}

.hero-desc {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-main);
    opacity: 0.9;
    max-width: 54ch;
    margin: 0 0 24px 0;
}

.hero-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 8px;
}

.cta-button {
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 600;
    border-radius: var(--radius-md);
    padding: 10px 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    border: 2px solid transparent;
    transition: all var(--transition-fast);
}

.cta-button.primary {
    background-color: var(--accent-yellow);
    color: #000;
    border-color: rgba(0,0,0,0.5);
    box-shadow:
        0 10px 20px rgba(255,204,0,0.4),
        0 2px 3px rgba(0,0,0,0.3) inset;
}
.cta-button.primary:hover {
    filter: brightness(0.95);
}

.cta-button.outline {
    background-color: #fff;
    color: var(--text-main);
    border-color: rgba(0,0,0,0.2);
}
.cta-button.outline:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.hero-hint {
    font-size: 12px;
    line-height: 1.4;
    color: var(--text-dim);
	opacity: 0.9;
}

.hero-visual {
    flex: 1 1 320px;
    min-width: 280px;
    display: flex;
    justify-content: center;
}

/* screenshot-placeholder里的仿界面背景调得更柔和 */
.screenshot-placeholder {
    background-color: var(--card-bg);
    border-radius: var(--radius-md);
    border: var(--border-light);
    box-shadow: var(--shadow-card);
    min-width: 280px;
    max-width: 420px;
    width: 100%;
    padding: 16px;
    position: relative;
    background-image: radial-gradient(
        circle at 20% 20%,
        rgba(255,204,0,0.08) 0%,
        rgba(255,255,255,0) 70%
    );
}

.screenshot-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: var(--accent-yellow);
    color: #000;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid rgba(0,0,0,0.25);
    box-shadow: 0 6px 12px rgba(255,204,0,0.4);
}

.screenshot-mock {
    background-color: #f5f5f5;
    border-radius: var(--radius-md);
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.08);
    padding: 16px;
}
.mock-line {
    width: 80%;
    height: 10px;
    background-color: #dcdcdc;
    border-radius: 4px;
    margin-bottom: 10px;
}
.mock-line-lg {
    width: 60%;
    height: 16px;
    background-color: #cfcfcf;
    border-radius: 4px;
    margin-bottom: 14px;
}
.mock-boxrow {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}
.mock-box {
    flex: 1;
    background-color: #dcdcdc;
    height: 48px;
    border-radius: 6px;
}

/* FEATURE BLOCKS (ToothSim / STL Viewer) */
.feature-block {
    background-color: var(--card-bg);
    border-radius: var(--radius-lg);
    border: var(--border-light);
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}

.feature-block + .feature-block {
    margin-top: 20px;
}

/* 左侧一条/顶部一条强调色带 */
.feature-accent-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 6px;
    width: 100%;
    background-color: var(--accent-yellow);
    box-shadow: 0 12px 24px rgba(255,204,0,0.4);
    border-bottom: 1px solid rgba(0,0,0,0.25);
}

/* 布局 */
.feature-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    padding: 32px clamp(20px, 2vw, 32px) 40px;
    align-items: center;
    justify-content: space-between;
}

.feature-block.flip .feature-inner {
    flex-direction: row-reverse;
}

.feature-media {
    flex: 1 1 320px;
    min-width: 280px;
    display: flex;
    justify-content: center;
}

.img-frame {
    background-color: #fff;
    border-radius: var(--radius-md);
    border: var(--border-light);
    box-shadow: var(--shadow-float);
    max-width: 420px;
    width: 100%;
    overflow: hidden;
}
.img-frame img {
    display: block;
    width: 100%;
    height: auto;
    background-color: #f5f5f5;
}

.feature-text {
    flex: 1 1 320px;
    min-width: 280px;
    max-width: 520px;
}

.feature-title {
    font-size: 21px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-main);
    letter-spacing: -0.02em;
    margin: 0 0 6px 0;
}

.feature-subtitle {
    font-size: 14px;
    line-height: 1.4;
    color: var(--text-main);
    font-weight: 500;
    opacity: 0.9;
    margin-bottom: 16px;
}

.feature-desc {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-main);
    opacity: 0.92;
    margin: 0 0 12px 0;
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 20px 0 8px 0;
}

.help-button {
    appearance: none;
    background: #fff;
    border-radius: var(--radius-md);
    border: 2px solid rgba(0,0,0,0.2);
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-main);
    cursor: pointer;
    min-width: 120px;
    transition: all var(--transition-fast);
}
.help-button:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.feature-hint {
    font-size: 12px;
    line-height: 1.4;
    color: var(--text-dim);
}

/* ABOUT BLOCK */
.about-block {
    background-color: var(--card-bg);
    border-radius: var(--radius-lg);
    border: var(--border-light);
    box-shadow: var(--shadow-card);
    padding: 32px clamp(20px, 2vw, 32px) 40px;
}

/* about-block 的整体外框保持不变:
   .about-block { background-color: var(--card-bg); ... } */
/* 我们新增一个两列布局容器 */
.about-inner-2col {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    max-width: 100%;
}

/* 左列文本区：和之前的.about-inner思路类似，但现在是列 */
.about-col-text {
    flex: 2 1 400px;
    min-width: 280px;
    max-width: 680px;
}

/* 右列联系区：一张信息卡 */
.about-col-contact {
    flex: 1 1 260px;
    min-width: 260px;
    max-width: 360px;
    display: flex;
}

/* 联系面板整体外观：白卡+柔和阴影+一点黄 */
.contact-panel {
    background-color: #fff;
    border-radius: var(--radius-md);
    border: var(--border-light);
    box-shadow: var(--shadow-card);
    padding: 20px 20px 16px 20px;
    display: flex;
    flex-direction: column;
    width: 100%;
    position: relative;
    background-image: radial-gradient(
        circle at 0% 0%,
        rgba(255,204,0,0.07) 0%,
        rgba(255,255,255,0) 60%
    );
}

/* 在卡片顶部左侧做一个黄标，像实验室标签而不是大块背景 */
.contact-head {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 16px;
}
.contact-head-accent {
    width: 8px;
    height: 32px;
    border-radius: 4px;
    background-color: var(--accent-yellow);
    box-shadow: 0 10px 20px rgba(255,204,0,0.4);
    border: 1px solid rgba(0,0,0,0.28);
    flex-shrink: 0;
}
.contact-head-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
    color: var(--text-main);
}
.contact-eyebrow {
    font-size: 12px;
    font-weight: 600;
    color: #000;
    background-color: rgba(255,204,0,0.18);
    border: 1px solid rgba(0,0,0,0.2);
    border-radius: 6px;
    padding: 2px 6px;
    width: fit-content;
    box-shadow: 0 6px 12px rgba(255,204,0,0.25);
    line-height: 1.2;
}
.contact-title {
    font-size: 15px;
    font-weight: 600;
    margin-top: 8px;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

/* contact-list 每一项更像资料条目 */
.contact-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-main);
}


/* 联系方式列表 */
.contact-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-main);
}

.contact-item {
    background-color: #fff;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 12px 24px rgba(0,0,0,0.03);
    padding: 12px 12px 10px 12px;
    position: relative;
    transition: box-shadow var(--transition-fast),
                transform var(--transition-fast);
    will-change: transform, box-shadow;
}

@media (hover:hover) and (pointer:fine) {
    .contact-item:hover {
        transform: translateY(-1px);
        box-shadow: 0 24px 36px rgba(0,0,0,0.07),
                    0 4px 8px rgba(0,0,0,0.05);
    }
}

.contact-key {
    font-size: 12px;
    font-weight: 600;
    color: #000;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: -0.01em;
}

.contact-value-link {
    background: none;
    border: 0;
    padding: 0;
    font-size: 14px;
    font-weight: 600;
    color: #000;
    cursor: pointer;
    line-height: 1.4;
    position: relative;
    text-align: left;
    display: inline-block;
}
.contact-value-link::after {
    content: '↗';
    font-size: 12px;
    font-weight: 500;
    margin-left: 6px;
    color: rgba(0,0,0,0.45);
}
.contact-value-link:hover {
    text-decoration: underline;
}

.contact-value-static {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.contact-note {
    font-size: 11px;
    line-height: 1.4;
    color: var(--text-dim);
    opacity: 0.9;
    margin-top: 4px;
}

/* 响应式收缩：在小屏幕时两列会自动上下堆叠 */
@media (max-width: 768px) {
    .about-inner-2col {
        flex-direction: column;
    }
    .about-col-contact {
        max-width: 100%;
    }
}

.about-inner {
    max-width: 840px;
}

.about-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
}

.about-accent-dot {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    background-color: var(--accent-yellow);
    border-radius: 5px;
    box-shadow: 0 8px 16px rgba(255,204,0,0.4);
    border: 2px solid rgba(0,0,0,0.4);
}

.about-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.about-eyebrow {
    font-size: 12px;
    line-height: 1.2;
    font-weight: 600;
    background-color: rgba(255,204,0,0.18);
    color: #000;
    display: inline-block;
    width: fit-content;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid rgba(0,0,0,0.2);
}
.about-title {
    font-size: 20px;
    line-height: 1.3;
    margin: 0;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-main);
}

.about-body {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-main);
}

.about-text {
    margin: 0 0 16px 0;
    max-width: 70ch;
}

.contact-card {
    display: inline-flex;
    flex-direction: column;
    gap: 8px;
    background-color: #fff;
    border-radius: var(--radius-md);
    border: var(--border-yellow-soft);
    box-shadow: var(--shadow-card);
    padding: 16px 20px;
    max-width: 320px;
}
.contact-line {
    font-size: 14px;
    line-height: 1.4;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--text-main);
}
.contact-label {
    font-weight: 600;
    min-width: 48px;
    color: #000;
}
.contact-value {
    font-weight: 500;
}

/* 帮助弹窗 */
.help-modal {
    position: fixed;
    inset: 0;
    background-color: rgba(0,0,0,0.35);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 1000;
}

.help-modal.show {
    display: flex;
}

.help-modal-content {
    background-color: #fff;
    color: var(--text-main);
    border-radius: var(--radius-md);
    border: var(--border-yellow-hard);
    box-shadow: var(--shadow-float);
    width: 100%;
    max-width: 420px;
    padding: 20px 20px 16px 20px;
    position: relative;
    font-size: 14px;
    line-height: 1.5;
}
.help-close {
    position: absolute;
    right: 12px;
    top: 12px;
    background: none;
    border: none;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}
.help-modal-body h3 {
    margin-top: 0;
    font-size: 15px;
    line-height: 1.3;
    font-weight: 600;
    color: var(--text-main);
}
.help-modal-body p {
    font-size: 13px;
    line-height: 1.5;
    margin: 0 0 10px 0;
    color: var(--text-main);
}

/* 响应式微调 */
@media (max-width: 768px) {
    .hero-inner {
        padding-top: 32px;
    }
    .feature-inner {
        padding-top: 24px;
    }
    .feature-accent-bar {
        height: 4px;
    }
    .feature-title {
        font-size: 20px;
    }
    .hero-title {
        font-size: 26px;
    }
    .site-header-inner {
        flex-wrap: wrap;
        gap: 12px;
    }
    .top-links {
        flex-wrap: wrap;
        gap: 12px;
    }
}

/* ========== 卡片与截图悬浮效果 ========== */

/* 通用浮起动画，用在截图容器和contact-panel等 */
.floating-card,
.img-frame,
.screenshot-placeholder,
.contact-panel {
    transition: box-shadow var(--transition-fast),
                transform var(--transition-fast),
                border-color var(--transition-fast);
    will-change: transform, box-shadow;
}

@media (hover:hover) and (pointer:fine) {
    .img-frame:hover,
    .screenshot-placeholder:hover,
    .contact-panel:hover {
        transform: translateY(-2px);
        box-shadow: 0 32px 60px rgba(0,0,0,0.08),
                    0 6px 12px rgba(0,0,0,0.06);
    }
}

/* ========== 滚动渐显动画（reveal） ========== */

.reveal-block {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.5s var(--transition-fast),
                transform 0.5s var(--transition-fast);
    will-change: opacity, transform;
}

.reveal-block.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* 给大区块一个统一的reveal类会显得整站更有呼吸 */
.block-hero.reveal-block,
.feature-block.reveal-block,
.about-block.reveal-block {
    /* nothing extra here; using shared .reveal-block rules */
}

/* 联系方式内的链接交互样式 */
.contact-value-static a {
  color: #000;
  text-decoration: none;
  position: relative;
  transition: color 0.2s ease, transform 0.2s ease;
}

.contact-value-static a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background-color: rgba(0, 0, 0, 0.25);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.contact-value-static a:hover {
  color: #ffcc00;              /* 悬停时微微变亮，与主题黄呼应 */
  transform: translateY(-1px); /* 轻微浮起 */
}

.contact-value-static a:hover::after {
  transform: scaleX(1);
}

/* 顶部品牌区域 Logo 样式 */
.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
}

.brand-mark img {
  height: 38px;
  width: auto;
  display: block;
  filter: brightness(1) contrast(1);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.brand-mark img:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

.brand-centered {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 14px 0 6px;
}

.brand-centered img {
  height: 44px;
  width: auto;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.brand-centered img:hover {
  transform: scale(1.06);
  opacity: 0.9;
}

/* 让原有 header 与导航条略微分层 */
.site-header-inner {
  border-top: 1px solid rgba(0,0,0,0.06);
  padding-top: 4px;
}

/* HERO 右侧相册 */
.hero-gallery {
  position: relative;
  background-color: var(--card-bg);
  border-radius: var(--radius-md);
  border: var(--border-light);
  box-shadow: var(--shadow-card);
  width: 100%;
  max-width: 320px;
  overflow: hidden;
}

.hero-gallery-track {
  display: flex;
  transition: transform 0.45s var(--transition-fast);
  will-change: transform;
}

.hero-gallery img {
  width: 100%;
  height: auto;
  flex: 0 0 100%;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  background: #f5f5f5;
  object-fit: cover
}

.hero-gallery-caption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
  line-height: 1.3;
  color: var(--text-main);
  box-shadow: 0 6px 12px rgba(0,0,0,0.06);
  backdrop-filter: blur(6px);
}

.hero-gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 1px solid rgba(0,0,0,0.2);
  background: #fff;
  border-radius: 10px;
  width: 32px;
  height: 32px;
  line-height: 30px;
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), opacity var(--transition-fast);
  opacity: 0.9;
}
.hero-gallery-nav:hover { transform: translateY(-50%) scale(1.05); }
.hero-gallery-nav.prev { left: 10px; }
.hero-gallery-nav.next { right: 10px; }

.hero-gallery-dots {
  position: absolute;
  right: 10px;
  bottom: 12px;
  display: flex;
  gap: 6px;
}
.hero-gallery-dots button {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.25);
  background: #fff;
  opacity: 0.7;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.hero-gallery-dots button.active {
  background: var(--accent-yellow);
  border-color: rgba(0,0,0,0.4);
  opacity: 1;
  transform: scale(1.2);
}

/* 小屏略收紧 caption 与按钮 */
@media (max-width: 480px) {
  .hero-gallery-caption { left: 10px; bottom: 10px; font-size: 11px; }
  .hero-gallery-nav { width: 28px; height: 28px; line-height: 26px; font-size: 16px; }
}

/* ========== 小屏微调保持优雅 ========== */

@media (max-width: 768px) {
    .hero-title {
        font-size: 28px;
        line-height: 1.2;
    }

    .contact-panel {
        padding: 16px 16px 12px 16px;
    }

    .contact-head-accent {
        height: 28px;
    }

    .contact-title {
        font-size: 15px;
    }
}