/* =========================================================
   CULINOVA
   CONTACT PAGE
   =========================================================
   注意：
   本文件【不修改导航栏】
   导航栏继续使用：
   css/style.css
   本页面仅负责：
   CONTACT 页面主体
   黑金科技视觉
   表单
   联系信息
   地图
   FAQ
   Footer
========================================================= */

/* =========================================================
   01. PAGE BASE
========================================================= */
.contact-page {
    background: #ffffff;
    color: #151515;
    overflow-x: hidden;
}
.contact-page *,
.contact-page *::before,
.contact-page *::after {
    box-sizing: border-box;
}

/* =========================================================
   02. MAIN
========================================================= */
.contact-main {
    width: min(1440px, calc(100% - 100px));
    margin: 0 auto;
    padding-top: 76px;
}

/* =========================================================
   03. CONTACT HERO 首屏
========================================================= */
.contact-hero {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-top: -76px;
    background-color: #080808;
    overflow: hidden;
}

.hero-inner {
    width: 100%;
    margin: 0;
    min-height: 700px;
    display: grid;
    grid-template-columns: 62% 38%;
    gap: 0;
    align-items: center;
    padding-top: 76px;
    padding-bottom: 0;
}

/* --- 左侧大楼视觉 --- */
.contact-visual {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 700px;
    overflow: hidden;
}

.hero-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* 修正大小屏建筑位置，保证主体始终在可视区 */
    object-position: 55% center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
}

/* 左侧文字 */
.visual-copy {
    position: absolute;
    left: clamp(40px, 5vw, 80px);
    bottom: clamp(40px, 5vw, 80px);
    z-index: 10;
    color: #ffffff;
}

.visual-copy .mini {
    font-size: 12px;
    letter-spacing: 1px;
    opacity: 0.7;
    margin-bottom: 12px;
    color: #c89b5b;
}

.visual-copy h2 {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 12px;
    white-space: pre-line; /* 识别文本内回车换行，不解析html标签 */
}
.visual-copy p {
    font-size: 14px;
    opacity: 0.8;
    white-space: pre-line;
}


/* --- 右侧白色表单卡片（居中，不铺满右栏） --- */
.contact-form-panel {
    position: relative;
    max-width: 460px;
    width: 100%;
    margin: 0 auto;
    min-height: auto;
    background-color: #f7f3ea;
    color: #151515;
    padding: 32px 28px;
    overflow: hidden;
}

/* 卡片金色装饰光晕 */
.contact-form-panel::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 180px;
    height: 180px;
    background: radial-gradient(
        circle,
        rgba(184,138,75,0.12),
        transparent 70%
    );
    pointer-events: none;
}

/* 卡片顶部金色短线 */
.contact-form-panel::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 70px;
    height: 3px;
    background: linear-gradient(
        90deg,
        #b88a4b,
        #e1bd82
    );
}

/* 卡片内标题文案 */
.contact-label {
    position: relative;
    margin-bottom: 8px;
    color: #b18750;
    font-size: 10px;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.contact-form-panel h1 {
    position: relative;
    margin: 0 0 12px;
    color: #151515;
    font-size: clamp(28px, 3.5vw, 40px);
    line-height: 1.1;
    font-weight: 500;
    letter-spacing: -1.5px;
}

.contact-form-panel .intro {
    position: relative;
    margin-bottom: 24px;
    color: #77746d;
    font-size: 13px;
    line-height: 1.9;
}

/* 底部金色科技线 */
.contact-hero::before {
    content: "";
    position: absolute;
    left: -20vw;
    right: -20vw;
    bottom: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(184,138,75,0.45),
        transparent
    );
    pointer-events: none;
}

/* =========================================================
   04. FORM 表单元素
========================================================= */
.contact-form {
    position: relative;
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 17px;
    z-index: 2;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.form-group label {
    color: #45423d;
    font-size: 11px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    border: 1px solid #d4d1c8;
    border-radius: 3px;
    outline: none;
    background: rgba(255,255,255,0.58);
    color: #222222;
    font-family: Inter, "Noto Sans SC", "Microsoft YaHei", sans-serif;
    font-size: 13px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.form-group input {
    height: 45px;
    padding: 0 14px;
}

.form-group textarea {
    min-height: 135px;
    padding: 13px 14px;
    resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #aaa69d;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #b88a4b;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(184,138,75,0.08);
}

/* =========================================================
   05. SUBMIT BUTTON 提交按钮
========================================================= */
.submit-btn {
    position: relative;
    width: 135px;
    height: 44px;
    margin-top: 4px;
    border: none;
    border-radius: 2px;
    background: linear-gradient(
        100deg,
        #111111,
        #252525
    );
    color: #ffffff;
    font-family: Inter, "Noto Sans SC", "Microsoft YaHei", sans-serif;
    font-size: 12px;
    letter-spacing: 0.5px;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.submit-btn::before {
    content: "";
    position: absolute;
    left: -100%;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,0.18),
        transparent
    );
    transition: left 0.5s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.16);
}

.submit-btn:hover::before {
    left: 100%;
}

/* =========================================================
   06. CONTACT INFORMATION 联系信息
========================================================= */
.contact-info-section {
    position: relative;
    padding: 80px 0 clamp(100px, 10vw, 150px);
    background-color: #ffffff;
}

/* 标题 */
.contact-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 50px;
    margin-bottom: 42px;
}

.contact-section-heading .eyebrow {
    margin-bottom: 10px;
    color: #b18750;
    font-size: 10px;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.contact-section-heading h2 {
    margin: 0;
    color: #171717;
    font-size: clamp(36px, 4vw, 54px);
    line-height: 1.05;
    font-weight: 500;
    letter-spacing: -1.5px;
}

.contact-section-heading p {
    max-width: 680px;
    margin: 0;
    color: #777777;
    font-size: 13px;
    line-height: 1.9;
}

/* =========================================================
   07. INFO GRID 信息卡片网格
========================================================= */
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid #dcd9d1;
    border-bottom: 1px solid #dcd9d1;
}

.info-item {
    position: relative;
    min-height: 175px;
    padding: 30px 28px;
    border-right: 1px solid #dcd9d1;
    transition: background 0.3s ease;
}

.info-item:last-child {
    border-right: none;
}

.info-item:hover {
    background: linear-gradient(
        145deg,
        #faf9f5,
        #f3f1eb
    );
}

/* 左侧金色线 */
.info-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: 0;
    background: linear-gradient(
        180deg,
        #b88a4b,
        #e0bd83
    );
    transition: height 0.35s ease;
}

.info-item:hover::before {
    height: 100%;
}

/* icon */
.info-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d1b78e;
    border-radius: 50%;
    background: rgba(184,138,75,0.04);
    color: #b88a4b;
    font-size: 14px;
}

.info-item h3 {
    margin: 0 0 7px;
    color: #222222;
    font-size: 14px;
    font-weight: 600;
}

.info-item p {
    margin: 0;
    color: #777777;
    font-size: 12px;
    line-height: 1.7;
    word-break: break-word;
}

/* =========================================================
   08. LOCATION 地址区域
========================================================= */
.location-section {
    padding-bottom: clamp(110px, 11vw, 165px);
}

.location-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: clamp(40px, 6vw, 85px);
    align-items: stretch;
}

/* =========================================================
   09. MAP 地图卡片
========================================================= */
.map-box {
    position: relative;
    min-height: 470px;
    overflow: hidden;
    background: #101419;
    border: 1px solid rgba(184,138,75,0.32);
    box-shadow: 0 25px 60px rgba(0,0,0,0.15);
}

/* 科技地图网格 */
.map-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(
            rgba(184,138,75,0.12) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(184,138,75,0.12) 1px,
            transparent 1px
        );
    background-size: 50px 50px;
    opacity: 0.55;
}

/* 地图大光晕 */
.map-box::before {
    content: "";
    position: absolute;
    width: 430px;
    height: 430px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(184,138,75,0.12),
        transparent 68%
    );
}

/* 河流 */
.map-water {
    position: absolute;
    top: -20%;
    right: -15%;
    width: 42%;
    height: 145%;
    background: rgba(255,255,255,0.04);
    transform: rotate(23deg);
}

/* 道路 */
.map-road {
    position: absolute;
    height: 10px;
    background: rgba(255,255,255,0.055);
    border-top: 1px solid rgba(255,255,255,0.08);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    transform-origin: left center;
}

.road-1 {
    left: -20%;
    top: 27%;
    width: 115%;
    transform: rotate(17deg);
}

.road-2 {
    left: 0;
    top: 56%;
    width: 105%;
    transform: rotate(-22deg);
}

.road-3 {
    left: 15%;
    top: 73%;
    width: 90%;
    transform: rotate(35deg);
}

.road-4 {
    left: -7%;
    top: 44%;
    width: 78%;
    transform: rotate(70deg);
}

/* =========================================================
   10. MAP MARKER 地图标记
========================================================= */
.map-marker {
    position: absolute;
    left: 52%;
    top: 49%;
    width: 54px;
    height: 54px;
    border-radius: 50% 50% 50% 0;
    background: linear-gradient(
        145deg,
        #e0b976,
        #a87939
    );
    transform: translate(-50%, -100%) rotate(-45deg);
    box-shadow: 0 0 35px rgba(184,138,75,0.38);
}

.map-marker::after {
    content: "";
    position: absolute;
    left: 18px;
    top: 18px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #111419;
    border: 2px solid rgba(255,255,255,0.65);
}

/* Map label */
.map-label {
    position: absolute;
    left: 25px;
    bottom: 25px;
    padding: 12px 17px;
    background: rgba(5,8,12,0.9);
    border: 1px solid rgba(184,138,75,0.35);
    color: #d7d2c9;
    font-size: 10px;
    letter-spacing: 2px;
}

/* ========== 新增：动态地图底图 ========== */
.map-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.75;
}
.map-grid, .map-water, .map-road, .map-marker, .map-label {
    position: relative;
    z-index: 1;
}

/* =========================================================
   CONTACT MAP IMAGE
   地图图片由数据库加载
========================================================= */

.map-box {
    overflow: hidden;
}

.map-box img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* =========================================================
   11. LOCATION CONTENT 地址文字
========================================================= */
.location-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.location-content .eyebrow {
    margin-bottom: 10px;
    color: #b18750;
    font-size: 10px;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.location-content h2 {
    margin: 0;
    color: #171717;
    font-size: clamp(38px, 4vw, 56px);
    line-height: 1.05;
    font-weight: 500;
    letter-spacing: -1.5px;
}

.location-content > p {
    max-width: 510px;
    margin: 20px 0 34px;
    color: #777777;
    font-size: 13px;
    line-height: 1.9;
}

/* =========================================================
   12. ADDRESS 地址详情框
========================================================= */
.address-box {
    position: relative;
    padding: 23px 0;
    border-top: 1px solid #dcd9d1;
    border-bottom: 1px solid #dcd9d1;
}

.address-box::before {
    content: "";
    position: absolute;
    left: 0;
    top: -1px;
    width: 55px;
    height: 2px;
    background: #b88a4b;
}

.address-title {
    margin-bottom: 7px;
    color: #a09b92;
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.address-value {
    color: #222222;
    font-size: 14px;
    line-height: 1.8;
}

/* =========================================================
   13. LOCATION DETAILS 联系方式明细
========================================================= */
.location-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 25px;
}

.location-detail strong {
    display: block;
    margin-bottom: 5px;
    color: #a27b48;
    font-size: 10px;
    letter-spacing: 2px;
}

.location-detail span {
    color: #555555;
    font-size: 13px;
}

/* =========================================================
   14. FAQ 常见问题
========================================================= */
.faq-section {
    position: relative;
    padding: clamp(90px, 9vw, 125px) 0;
    background: #080b0f;
    color: #ffffff;
    overflow: hidden;
}

/* 背景网格 */
.faq-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(
            rgba(255,255,255,0.025) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,0.025) 1px,
            transparent 1px
        );
    background-size: 55px 55px;
    opacity: 0.6;
    pointer-events: none;
}

/* 金色光晕 */
.faq-section::after {
    content: "";
    position: absolute;
    width: 600px;
    height: 600px;
    right: -250px;
    bottom: -300px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(184,138,75,0.15),
        transparent 70%
    );
    pointer-events: none;
}

.faq-inner {
    position: relative;
    z-index: 2;
    width: min(1440px, calc(100% - 100px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 0.78fr 1.22fr;
    gap: clamp(55px, 8vw, 120px);
}

/* =========================================================
   15. FAQ TITLE 标题
========================================================= */
.faq-title .eyebrow {
    margin-bottom: 12px;
    color: #c19a60;
    font-size: 10px;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.faq-title h2 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(38px, 4vw, 56px);
    line-height: 1.05;
    font-weight: 500;
    letter-spacing: -1.5px;
}

.faq-title p {
    max-width: 390px;
    margin-top: 20px;
    color: rgba(255,255,255,0.5);
    font-size: 13px;
    line-height: 1.9;
}

/* =========================================================
   16. FAQ LIST 列表
========================================================= */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.faq-item {
    overflow: hidden;
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.1);
    transition: border-color 0.3s ease, background 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(184,138,75,0.45);
    background: rgba(184,138,75,0.045);
}

/* question */
.faq-question {
    width: 100%;
    min-height: 62px;
    padding: 16px 18px 16px 21px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border: none;
    background: transparent;
    color: #eeeeee;
    font-family: Inter, "Noto Sans SC", "Microsoft YaHei", sans-serif;
    font-size: 13px;
    text-align: left;
    cursor: pointer;
}

.faq-question span:first-child {
    padding-right: 10px;
}

/* plus */
.faq-plus {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(184,138,75,0.55);
    background: rgba(184,138,75,0.08);
    color: #d0a565;
    font-size: 15px;
    line-height: 1;
    transition: transform 0.3s ease, background 0.3s ease;
}

/* answer */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-answer p {
    margin: 0;
    padding: 0 21px;
    color: rgba(255,255,255,0.5);
    font-size: 12px;
    line-height: 1.9;
}

/* open */
.faq-item.open {
    border-color: rgba(184,138,75,0.5);
}

.faq-item.open .faq-answer {
    max-height: 180px;
    padding-bottom: 18px;
}

.faq-item.open .faq-plus {
    background: #b88a4b;
    color: #111111;
    transform: rotate(45deg);
}

/* =========================================================
   17. FOOTER 页脚
========================================================= */
.contact-page .contact-footer {
    min-height: 105px;
    padding: 35px clamp(25px, 5vw, 70px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    background: #030507;
    border-top: 1px solid rgba(184,138,75,0.18);
    color: #ffffff;
}

.contact-footer p {
    margin: 0;
    color: rgba(255,255,255,0.42);
    font-size: 11px;
}

.footer-social {
    display: flex;
    gap: 25px;
}

.footer-social a {
    color: rgba(255,255,255,0.5);
    font-size: 11px;
    transition: color 0.25s ease;
}

.footer-social a:hover {
    color: #c19a60;
}

/* =========================================================
   18. REVEAL 入场动画
========================================================= */
.contact-reveal {
    opacity: 0;
    transform: translateY(25px);
    animation: contactReveal 0.8s ease forwards;
}

.contact-reveal.delay-1 {
    animation-delay: 0.12s;
}

.contact-reveal.delay-2 {
    animation-delay: 0.24s;
}

@keyframes contactReveal {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================================
   19. TABLET 平板适配
========================================================= */
@media (max-width: 1050px) {
    .contact-main {
        width: min(100% - 50px, 920px);
    }

    /* 首屏单列堆叠 */
    .hero-inner {
        grid-template-columns: 1fr;
        padding-top: 60px;
    }

    .contact-visual {
        min-height: 480px;
    }

    .contact-form-panel {
        max-width: 460px;
        margin: 40px auto;
    }

    /* 联系信息两列 */
    .contact-info-grid {
        grid-template-columns: 1fr 1fr;
    }

    .info-item:nth-child(2) {
        border-right: none;
    }

    .info-item:nth-child(1),
    .info-item:nth-child(2) {
        border-bottom: 1px solid #dcd9d1;
    }

    /* 地址单列 */
    .location-grid {
        grid-template-columns: 1fr;
    }

    .map-box {
        min-height: 420px;
    }

    /* FAQ单列 */
    .faq-inner {
        width: min(100% - 50px, 920px);
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   20. MOBILE 手机适配
========================================================= */
@media (max-width: 768px) {
    .contact-main {
        width: calc(100% - 32px);
        padding-top: 70px;
    }

    /* 首屏 */
    .contact-visual {
        min-height: 380px;
    }

    .visual-copy {
        left: 24px;
        bottom: 24px;
    }

    .contact-form-panel {
        padding: 28px 24px;
        margin: 32px auto;
    }

    .contact-form-panel h1 {
        font-size: 36px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    /* 联系信息单列 */
    .contact-section-heading {
        display: block;
    }

    .contact-section-heading p {
        margin-top: 18px;
    }

    .contact-info-grid {
        grid-template-columns: 1fr;
    }

    .info-item {
        min-height: auto;
        border-right: none !important;
        border-bottom: 1px solid #dcd9d1;
    }

    .info-item:last-child {
        border-bottom: none;
    }

    /* 地址 */
    .location-grid {
        gap: 35px;
    }

    .map-box {
        min-height: 340px;
    }

    .location-details {
        grid-template-columns: 1fr;
    }

    /* FAQ */
    .faq-section {
        padding: 70px 0;
    }

    .faq-inner {
        width: calc(100% - 32px);
    }

    .faq-title h2 {
        font-size: 40px;
    }

    /* 页脚 */
    .contact-page .contact-footer {
        flex-direction: column;
        align-items: flex-start;
        padding: 35px 20px;
    }
}

/* =========================================================
   21. SMALL MOBILE 小屏手机
========================================================= */
@media (max-width: 430px) {
    .contact-visual {
        min-height: 370px;
    }

    .visual-copy h2 {
        font-size: 36px;
    }

    .contact-form-panel h1 {
        font-size: 32px;
    }

    .contact-form-panel {
        padding: 24px 20px;
    }

    .contact-section-heading h2 {
        font-size: 36px;
    }

    .map-box {
        min-height: 300px;
    }
}