/* ============================================================
   一方文脉 · AI-Geo 单页响应式网站（暖色调 / 3D 斜向融合版）
   样式独立、无第三方依赖，颜色值均直接书写
   ============================================================ */

/* ---------- 基础重置 ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html,
body {
    height: 100%;
    width: 100%;
    overflow: hidden;
    /* 浏览器不出现滚动条：整站固定一屏 */
}

body {
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    color: #4a3a2c;
    /* background: #fdf8f0; */
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a {
    text-decoration: none;
    color: inherit;
}

/* 仅供搜索引擎与屏幕阅读器识别的语义标题（视觉隐藏，不占布局） */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
    outline: none;
}

ul {
    list-style: none;
}

.app {
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* ============================================================
   顶部导航栏 —— 暖色白色毛玻璃
   ============================================================ */
.navbar {
    position: relative;
    z-index: 50;
    flex: 0 0 auto;
    background: rgba(255, 248, 238, 0.1);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    backdrop-filter: blur(20px) saturate(160%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 4px 22px rgba(178, 128, 70, 0.1);
}

.nav-inner {
    position: relative;
    max-width: 1680px;
    margin: 0 auto;
    height: 60px;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo（图片占位） */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
    z-index: 2;
}

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

.logo-text {
    font-size: 20px;
    font-weight: 700;
    color: #5a3f27;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-text em {
    font-style: normal;
    font-size: 13px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 8px;
    color: #e8833a;
	border: 1px solid #f2ad66;
   /* background: linear-gradient(135deg, #f2ad66, #e8833a); */
}

/* 右侧区域 */
.nav-right {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 0 0 auto;
    z-index: 2;
}

/* 扁平化毛玻璃按钮 */
.btn-cooperate {
    position: relative;
    overflow: hidden;
    padding: 8px 14px;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    border-radius: 10px;
    background: linear-gradient(135deg, #f2ad66 0%, #e8833a 100%); */
    box-shadow: 0 6px 16px rgba(232, 131, 58, 0.22);
    transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
}

.btn-cooperate::before {
    content: "";
    position: absolute;
    top: 0;
    left: -80%;
    width: 55%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s ease;
}

.btn-cooperate:hover {
    transform: translateY(-1px);
    filter: brightness(1.04);
    box-shadow: 0 8px 20px rgba(232, 131, 58, 0.3);
}

.btn-cooperate:hover::before {
    left: 130%;
}

/* ============================================================
   主体 / 页面切换
   ============================================================ */
.main {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
}

.page {
    position: absolute;
    inset: 0;
    display: none;
    opacity: 0;
}

.page.active {
    display: block;
    animation: pageFadeIn 0.65s ease forwards;
}

@keyframes pageFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================
   首页：背景 + 暖色蒙版
   ============================================================ */
.page-home {
    overflow: hidden;
}

.home-bg {
    position: absolute;
    inset: 0;
    background-image: url("../images/bg.jpg");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    transform: scale(1.03);
    transition: transform 1.2s ease;
    z-index: 0;
}

.page-home:hover .home-bg {
    transform: scale(1);
}

/* ============================================================
   左右两大板块 —— 对称斜向裁切，无缝拼接（非垂直）
   ============================================================ */
.panel {
    position: absolute;
    inset: 0;
    z-index: 2;
    overflow: hidden;
    cursor: pointer;
}

/* 左板块：右边界由顶部 62% 斜向底部 38% */
.panel-left {
    clip-path: polygon(0 0, 62% 0, 38% 100%, 0 100%);
}

/* 右板块：左边界与左板块完全重合，两侧形状、面积完全对称 */
.panel-right {
    clip-path: polygon(62% 0, 100% 0, 100% 100%, 38% 100%);
}

/* 卷轴绢面质感的暖毛玻璃遮罩：只朦胧化背景图，不遮盖文字（层级在内容之下） */
.panel-veil {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0;
    pointer-events: none;
    /* 细腻绢丝颗粒 + 中部亮白、边缘暖透的柔和渐变 */
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E"),
        radial-gradient(ellipse 92% 78% at 50% 30%, rgba(255, 253, 248, 0.62) 0%, rgba(255, 247, 236, 0.45) 48%, rgba(248, 228, 200, 0.36) 100%);
    -webkit-backdrop-filter: blur(10px) saturate(1.28) brightness(1.04);
    backdrop-filter: blur(10px) saturate(1.28) brightness(1.04);

    /* 玻璃表面内高光 + 边缘暖色折射 */
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.7),
        inset 0 0 90px rgba(255, 240, 218, 0.4);
    transition: opacity 0.55s ease;
}

/* 默认：右侧遮罩 */
.panel-right .panel-veil {
    opacity: 1;
}

/* 鼠标指向左侧 / 移动端展开左侧：左侧揭开，右侧遮罩 */
.page-home.home-hover-left .panel-right .panel-veil,
.page-home.home-open-left .panel-right .panel-veil {
    opacity: 1;
}
.page-home.home-hover-left .panel-left .panel-veil,
.page-home.home-open-left .panel-left .panel-veil {
    opacity: 0;
}

/* 鼠标指向右侧 / 移动端展开右侧：右侧揭开，左侧遮罩 */
.page-home.home-hover-right .panel-left .panel-veil,
.page-home.home-open-right .panel-left .panel-veil {
    opacity: 1;
}
.page-home.home-hover-right .panel-right .panel-veil,
.page-home.home-open-right .panel-right .panel-veil {
    opacity: 0;
}

/* 板块内容（左右各居一侧，整体上移以避开下方 3D 元素；始终位于遮罩层之上） */
.panel-content {
    position: absolute;
    z-index: 2;
    top: 41%;
    width: 42%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

.panel-left .panel-content {
    left: 5%;
    transform: translateY(-50%);
}

.panel-right .panel-content {
    right: 5%;
    transform: translateY(-50%);
}

.panel-sub {
    font-size: 12px;
    letter-spacing: 5px;
    color: #b0763f;
    margin-bottom: 12px;
    animation: fadeUp 0.9s ease both;
}

.panel-title {
    font-size: clamp(34px, 4.2vw, 64px);
    font-weight: 800;
    letter-spacing: 8px;
    text-indent: 8px;
    color: #53351d;
    white-space: nowrap;
    transition: transform 0.55s ease;
    animation: fadeUp 0.9s ease 0.1s both;
}

.panel-line {
    width: 0;
    height: 2px;
    margin-top: 18px;
    background: linear-gradient(90deg, transparent, rgba(217, 122, 58, 0.85), transparent);
    transition: width 0.55s ease 0.05s;
}

.panel:hover .panel-line,
.panel.panel-open .panel-line {
    width: 150px;
}

/* 关键词（默认显示，扁平毛玻璃胶囊） */
.panel-keywords {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
    animation: fadeUp 0.9s ease 0.2s both;
}

.panel-keywords span {
    display: inline-block;
    padding: 6px 14px;
    font-size: 13px;
    letter-spacing: 1px;
    color: #a85f28;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.64);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.75);
    box-shadow: 0 3px 10px rgba(190, 138, 80, 0.1);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.panel:hover .panel-keywords span,
.panel.panel-open .panel-keywords span {
    background: rgba(255, 255, 255, 0.82);
}

.panel-keywords span:hover {
    transform: translateY(-2px);
}

/* 描述 + 按钮（默认隐藏，悬停展开；描述无边框） */
.panel-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-height: 0;
    opacity: 0;
    transform: translateY(20px);
    overflow: hidden;
    transition: opacity 0.5s ease, transform 0.55s ease, max-height 0.6s ease, margin-top 0.5s ease;
}

.panel:hover .panel-info,
.panel.panel-open .panel-info {
    max-height: 320px;
    opacity: 1;
    transform: translateY(0);
    margin-top: 24px;
}

.panel:hover .panel-title,
.panel.panel-open .panel-title {
    transform: translateY(-3px);
}

.panel-desc {
    font-size: 14.5px;
    line-height: 1.95;
    letter-spacing: 0.8px;
    color: #5e4630;
    text-shadow: 0 0 14px rgba(255, 251, 244, 0.95), 0 2px 10px rgba(255, 250, 243, 0.9);
}

/* 探索按钮：扁平化毛玻璃 */
.btn-explore {
    margin-top: 22px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 11px 24px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    color: #c0652c;
    text-decoration: none;
    cursor: pointer;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.55);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 5px 16px rgba(190, 138, 80, 0.16);
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-explore svg {
    width: 17px;
    height: 17px;
    transition: transform 0.35s ease;
}

.btn-explore:hover {
    background: rgba(255, 255, 255, 0.9);
    color: #b4562f;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(190, 138, 80, 0.24);
}

.btn-explore:hover svg {
    transform: translateX(4px);
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================
   占位栏目页（AI-Geo / 关于我们）
   ============================================================ */
.page-placeholder {
    display: none;
    align-items: center;
    justify-content: center;
    padding: 30px 24px;
}

.page-placeholder.active {
    display: flex;
    animation: pageFadeIn 0.65s ease forwards;
}

.ph-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(circle at 16% 22%, rgba(240, 168, 100, 0.18), transparent 45%),
        radial-gradient(circle at 84% 80%, rgba(224, 163, 74, 0.16), transparent 45%),
        linear-gradient(160deg, #fef7ec 0%, #fdf2e2 100%);
}

.ph-bg-blue {
    background:
        radial-gradient(circle at 84% 18%, rgba(224, 163, 74, 0.2), transparent 45%),
        radial-gradient(circle at 16% 82%, rgba(240, 168, 100, 0.14), transparent 45%),
        linear-gradient(160deg, #fdf5e8 0%, #fef9f1 100%);
}

.ph-bg-mix {
    background:
        radial-gradient(circle at 50% 16%, rgba(201, 138, 75, 0.15), transparent 45%),
        linear-gradient(160deg, #fdf8f0 0%, #fbf1e3 100%);
}

.glass-card {
    background: rgba(255, 252, 247, 0.76);
    -webkit-backdrop-filter: blur(22px) saturate(150%);
    backdrop-filter: blur(22px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 22px 54px rgba(178, 128, 70, 0.15);
}

.ph-card {
    position: relative;
    z-index: 1;
    width: min(520px, 92%);
    padding: 46px 44px 40px;
    border-radius: 20px;
    text-align: center;
    animation: cardIn 0.7s ease both;
}

@keyframes cardIn {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.ph-icon {
    width: 74px;
    height: 74px;
    margin: 0 auto 20px;
}

.ph-card h2 {
    font-size: 27px;
    letter-spacing: 6px;
    text-indent: 6px;
    color: #5a3f27;
    margin-bottom: 16px;
}

.ph-card p {
    font-size: 15px;
    line-height: 1.9;
    color: #8a6f52;
    margin-bottom: 28px;
}

.btn-back {
    display: inline-block;
    padding: 11px 32px;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    border-radius: 10px;
    background: linear-gradient(135deg, #f2ad66, #e8833a);
    box-shadow: 0 6px 16px rgba(232, 131, 58, 0.22);
    transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
}

.btn-back:hover {
    transform: translateY(-1px);
    filter: brightness(1.04);
    box-shadow: 0 8px 22px rgba(232, 131, 58, 0.32);
}


/* ============================================================
   底部版权 —— 暖色白色毛玻璃
   ============================================================ */
.footer {
    position: relative;
    z-index: 50;
    flex: 0 0 auto;
    background-color: rgba(255, 255, 255, 0.01);
    -webkit-backdrop-filter: blur(3px) saturate(180%);
    backdrop-filter: blur(3px) saturate(180%);
    border-top: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 -4px 22px rgba(178, 128, 70, 0.09);
}

.footer-inner {
    max-width: 1680px;
    margin: 0 auto;
    min-height: 48px;
    padding: 10px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    font-size: 13px;
    color: #8a6f52;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.footer-links a {
    color: #a06c3c;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #c0652c;
}

.footer-links i {
    font-style: normal;
    color: #d8b890;
}

/* ============================================================
   洽谈合作弹窗
   ============================================================ */
.modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal.open {
    display: flex;
}

.modal-mask {
    position: absolute;
    inset: 0;
    background: rgba(90, 62, 34, 0.32);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    animation: maskIn 0.35s ease both;
}

@keyframes maskIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-card {
    position: relative;
    width: min(460px, 100%);
    padding: 38px 36px 30px;
    border-radius: 20px;
    text-align: center;
    animation: modalIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: translateY(22px) scale(0.94);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 13px;
    right: 17px;
    width: 34px;
    height: 34px;
    font-size: 22px;
    line-height: 1;
    color: #b89a78;
    border-radius: 10px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.modal-close:hover {
    background: rgba(232, 131, 58, 0.12);
    color: #d97a3a;
}

.modal-card h3 {
    font-size: 23px;
    letter-spacing: 6px;
    text-indent: 6px;
    color: #5a3f27;
    margin-bottom: 12px;
}

.modal-tip {
    font-size: 14px;
    line-height: 1.8;
    color: #8a6f52;
    margin-bottom: 22px;
}

.modal-list {
    text-align: left;
    margin-bottom: 26px;
}

.modal-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    margin-bottom: 12px;
    font-size: 14px;
    color: #6b5136;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(240, 220, 190, 0.7);
}

.modal-list svg {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
}

/* ============================================================
   响应式：笔记本
   ============================================================ */
@media (max-width: 1280px) {
    .nav-inner {
        padding: 0 28px;
    }
    .footer-inner {
        padding: 10px 28px;
    }
    .panel-content {
        width: 42%;
    }
    .panel-desc {
        font-size: 13.5px;
    }
    .panel-keywords {
        gap: 7px;
    }
    .panel-keywords span {
        font-size: 12px;
        padding: 5px 10px;
    }
}

/* ============================================================
   响应式：平板（竖屏转上下 + 水平斜切）
   ============================================================ */
@media (max-width: 900px) {
    .nav-inner {
        height: 56px;
        padding: 0 18px;
    }

    .logo-text {
        font-size: 17px;
        letter-spacing: 1px;
    }

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

    .btn-cooperate {
        padding: 9px 15px;
        font-size: 13px;
        letter-spacing: 1px;
    }

    /* 首页：上下板块，水平斜切 */
    .panel {
        inset: auto;
        width: 100%;
        height: 50%;
        left: 0;
        right: 0;
    }

    .panel-left {
        top: 0;
        clip-path: polygon(0 0, 100% 0, 100% 96%, 0 104%);
    }

    .panel-right {
        bottom: 0;
        clip-path: polygon(0 4%, 100% -4%, 100% 100%, 0 100%);
    }

    .panel-content {
        position: static;
        width: 100%;
        max-width: 560px;
        margin: 0 auto;
        transform: none !important;
        padding: 12px 24px;
    }

    .panel-left .panel-content {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -54%) !important;
    }

    .panel-right .panel-content {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -46%) !important;
        right: auto;
    }

    .panel-sub {
        font-size: 10px;
        letter-spacing: 4px;
        margin-bottom: 6px;
    }

    .panel-title {
        font-size: clamp(24px, 7vw, 36px);
        letter-spacing: 5px;
        text-indent: 5px;
    }

    .panel-line {
        margin-top: 10px;
    }

    .panel:hover .panel-line,
    .panel.panel-open .panel-line {
        width: 100px;
    }

    .panel-keywords {
        gap: 7px;
        margin-top: 12px;
    }

    .panel-keywords span {
        font-size: 11px;
        padding: 4px 10px;
    }

    .panel:hover .panel-info,
    .panel.panel-open .panel-info {
        margin-top: 12px;
    }

    .panel-desc {
        font-size: 12px;
        line-height: 1.7;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .panel.panel-open .panel-desc {
        -webkit-line-clamp: unset;
        overflow: visible;
    }

    .btn-explore {
        margin-top: 12px;
        padding: 9px 20px;
        font-size: 12.5px;
        letter-spacing: 1.5px;
    }

    /* 底部 */
    .footer-inner {
        flex-direction: column;
        gap: 4px;
        padding: 8px 16px;
        text-align: center;
        line-height: 1.6;
    }

    .footer-copy,
    .footer-links {
        font-size: 11.5px;
    }

    .footer-links {
        gap: 8px;
    }

    /* 占位页 */
    .ph-card {
        padding: 34px 26px 28px;
    }

    .ph-card h2 {
        font-size: 22px;
        letter-spacing: 4px;
        text-indent: 4px;
    }
}

/* ============================================================
   响应式：手机
   ============================================================ */
@media (max-width: 480px) {
    .logo-text em {
        display: none;
    }

    .btn-cooperate {
        padding: 8px 12px;
    }

    .panel-content {
        padding: 10px 14px;
    }

    .panel-desc {
        font-size: 11.5px;
        line-height: 1.65;
    }

    .modal-card {
        padding: 32px 22px 24px;
    }

    .modal-list li {
        font-size: 12.5px;
        padding: 11px 12px;
    }
}

/* 减少动效偏好 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
