/* ============================================================
   txxdh.com 联系页样式 contact.css
   ============================================================ */

/* 联系信息大卡 */
.contact-hero { position: relative; padding: 76px 0 84px; overflow: hidden; background: linear-gradient(180deg, #f3edff, #f8f6fd); }
.contact-hero::after { content: ""; position: absolute; left: -90px; bottom: -120px; width: 340px; height: 340px; border-radius: 50%; border: 50px solid rgba(201,174,246,.2); }
.contact-hero-in { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr .9fr; gap: 52px; align-items: center; }
.contact-hero h1 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; line-height: 1.22; }
.contact-hero h1 em { font-style: normal; color: var(--purple-5); }
.contact-hero p { color: var(--ink-2); margin-top: 16px; font-size: 15.5px; }
.contact-hero .ch-list { margin-top: 26px; display: grid; gap: 14px; }
.contact-hero .ch-list li { display: flex; align-items: center; gap: 14px; background: var(--card); border-radius: var(--r-md); box-shadow: var(--shadow-sm); padding: 16px 20px; transition: all .3s ease; }
.contact-hero .ch-list li:hover { transform: translateX(6px); box-shadow: var(--shadow-md); }
.contact-hero .ch-ic { width: 44px; height: 44px; border-radius: 13px; background: var(--purple-1); color: var(--purple-6); display: flex; align-items: center; justify-content: center; flex: none; }
.contact-hero .ch-ic svg { width: 20px; height: 20px; }
.contact-hero .ch-lb { font-size: 12.5px; color: var(--ink-3); }
.contact-hero .ch-val { font-size: 17px; font-weight: 700; color: var(--ink-1); }
.contact-hero .ch-val a { color: var(--purple-6); }

.contact-visual { position: relative; }
.contact-visual img { border-radius: var(--r-xl); box-shadow: var(--shadow-lg); width: 100%; height: 380px; object-fit: cover; }
.contact-visual .cv-float { position: absolute; right: -18px; bottom: -20px; background: var(--card); border-radius: var(--r-md); box-shadow: var(--shadow-md); padding: 16px 22px; display: flex; align-items: center; gap: 12px; }
.contact-visual .cv-float b { color: var(--purple-6); font-size: 15px; display: block; }
.contact-visual .cv-float span { font-size: 12px; color: var(--ink-3); }

/* 营业时间 */
.hours-band { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.hours-band .hb-item { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: 26px; display: flex; gap: 16px; align-items: flex-start; transition: all .3s ease; }
.hours-band .hb-item:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.hours-band .hb-ic { width: 48px; height: 48px; border-radius: 14px; background: var(--purple-1); color: var(--purple-6); display: flex; align-items: center; justify-content: center; flex: none; }
.hours-band .hb-ic svg { width: 22px; height: 22px; }
.hours-band h3 { font-size: 16px; margin-bottom: 6px; }
.hours-band p { font-size: 13.5px; color: var(--ink-2); }

/* 表单 */
.form-shell { display: grid; grid-template-columns: 1.2fr .8fr; gap: 30px; align-items: start; }
.form-card { background: var(--card); border-radius: var(--r-xl); box-shadow: var(--shadow-sm); padding: 36px 38px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .fg-full { grid-column: 1 / -1; }
.form-item label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 8px; color: var(--ink-1); }
.form-item label i { color: var(--purple-5); font-style: normal; }
.form-item input, .form-item select, .form-item textarea {
  width: 100%; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: var(--r-sm);
  background: var(--bg); color: var(--ink-1); transition: all .3s ease; font-size: 14.5px;
}
.form-item input:focus, .form-item select:focus, .form-item textarea:focus { outline: none; border-color: var(--purple-5); background: #fff; box-shadow: 0 0 0 4px var(--purple-1); }
.form-item textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 12.5px; color: var(--ink-3); margin-top: 12px; }
.form-ok { display: none; margin-top: 16px; background: var(--purple-1); border: 1px solid var(--purple-2); border-radius: var(--r-sm); padding: 14px 18px; font-size: 14px; color: var(--purple-7); }
.form-ok.show { display: block; }

/* 地图占位 */
.map-block { position: relative; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-sm); min-height: 380px; }
.map-block img { width: 100%; height: 100%; min-height: 380px; object-fit: cover; }
.map-block .map-mask { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(43,27,90,.05), rgba(43,27,90,.5)); }
.map-block .map-pin { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); text-align: center; }
.map-block .map-pin .pin-ic { width: 54px; height: 54px; margin: 0 auto; border-radius: 50%; background: var(--purple-5); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 10px rgba(124,58,237,.2); animation: pinFloat 2.4s ease-in-out infinite; }
.map-block .map-pin .pin-ic svg { width: 24px; height: 24px; }
.map-block .map-pin .pin-tip { margin-top: 16px; background: var(--card); border-radius: var(--r-md); box-shadow: var(--shadow-md); padding: 10px 18px; font-size: 13.5px; font-weight: 600; color: var(--ink-1); white-space: nowrap; }
@keyframes pinFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.map-block .map-info { position: absolute; right: 20px; bottom: 20px; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-radius: var(--r-md); padding: 16px 20px; font-size: 13px; color: var(--ink-2); box-shadow: var(--shadow-md); }
.map-block .map-info b { color: var(--purple-6); }

@media (max-width: 1080px) {
  .contact-hero-in { grid-template-columns: 1fr; gap: 34px; }
  .form-shell { grid-template-columns: 1fr; }
  .hours-band { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .form-card { padding: 26px 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .contact-visual img { height: 260px; }
}

/* ============================================================
   在线留言页（liuyan.html）—— 表单与渠道卡
   ============================================================ */
.contact-form { max-width: 920px; margin: 0 auto; background: var(--card); border-radius: var(--r-xl); box-shadow: var(--shadow-md); padding: 44px 46px; }
.cf-head { text-align: center; margin-bottom: 30px; }
.cf-head h2 { font-size: 25px; font-weight: 800; }
.cf-head p { font-size: 13.5px; color: var(--ink-3); margin-top: 8px; }
.cf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.cf-field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 8px; color: var(--ink-1); }
.cf-field label em { font-style: normal; color: var(--purple-5); }
.cf-field input, .cf-field select, .cf-field textarea {
  width: 100%; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: var(--r-sm);
  background: var(--bg); color: var(--ink-1); transition: all .3s ease; font-size: 14.5px; font-family: inherit;
}
.cf-field input:focus, .cf-field select:focus, .cf-field textarea:focus { outline: none; border-color: var(--purple-5); background: #fff; box-shadow: 0 0 0 4px var(--purple-1); }
.cf-field textarea { resize: vertical; min-height: 130px; }
.cf-field--full { grid-column: 1 / -1; }
.cf-actions { display: flex; gap: 14px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }
.cf-tip { display: block; text-align: center; margin-top: 18px; background: var(--purple-1); border: 1px solid var(--purple-2); border-radius: var(--r-sm); padding: 14px 18px; font-size: 14px; color: var(--purple-7); }

/* 其他联系渠道 */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cg-card { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: 34px 30px; text-align: center; transition: all .35s ease; display: block; }
.cg-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.cg-ic { width: 62px; height: 62px; margin: 0 auto 18px; border-radius: 50%; background: linear-gradient(135deg, var(--purple-1), var(--purple-2)); color: var(--purple-6); display: flex; align-items: center; justify-content: center; }
.cg-ic svg { width: 27px; height: 27px; }
.cg-card h3 { font-size: 17px; margin-bottom: 8px; }
.cg-card p { font-size: 15.5px; font-weight: 700; color: var(--purple-6); }
.cg-more { display: inline-block; margin-top: 14px; font-size: 13px; color: var(--ink-3); }
.cg-card:hover .cg-more { color: var(--purple-6); }

@media (max-width: 1080px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .contact-form { padding: 28px 20px; }
  .cf-grid { grid-template-columns: 1fr; }
}
