/* ============================================================
   contact.css - Contact Us page (standalone styles)
   Namespace: ctc- prefix
   Online message block: kept identical to index.htm
   ============================================================ */

/* ---------- Local tokens ---------- */
:root {
    --ctc-primary: #49aa3d;
    --ctc-primary-dark: #2e8f3f;
    --ctc-primary-light: #eaf6ec;
    --ctc-dark: #1a1a1a;
    --ctc-text: #333;
    --ctc-text-light: #666;
    --ctc-text2: #999;
    --ctc-line: #e8e8e8;
    --ctc-bg: #f5f7f6;
    --ctc-white: #fff;
    --ctc-transition: 0.3s ease;
}

/* ---------- 1. Hero ---------- */
.ctc-hero {
    position: relative;
    margin-top: 132px;
    height: 400px;
    background: #f0f0f0;
    overflow: hidden;
    display: flex;
    align-items: center;
  background: url('../images/lainxi-bg.jpg') right center/cover no-repeat;
}

.ctc-hero-content {
    position: relative;
    z-index: 3;
    padding-top: 10px;
}

.ctc-hero h1 {
    font-size: 54px;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 16px;
    letter-spacing: 1px;
}

.ctc-hero p {
    font-size: 18px;
    color: #333;
    margin: 0;
}

/* ---------- 2. Breadcrumb ---------- */
.ctc-breadcrumb {
    background: var(--ctc-white);
    border-bottom: 1px solid var(--ctc-line);
    padding: 16px 0;
    font-size: 15px;
    color: #666;
}

.ctc-breadcrumb i { margin-right: 8px; }
.ctc-breadcrumb a { color: #333; }
.ctc-breadcrumb a:hover { color: var(--ctc-primary); }
.ctc-breadcrumb .sep { margin: 0 8px; color: #999; }
.ctc-breadcrumb .current { color: var(--ctc-primary); }

/* ---------- 3. Contact Info ---------- */
.ctc-info {
    padding: 80px 0 78px;
    background: var(--ctc-white);
}

.ctc-info-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 58px;
    border-bottom: 1px solid #eaeaea;
}

.ctc-info-head h2 {
    font-size: 36px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.3;
    position: relative;
    padding-bottom: 14px;
}



.ctc-info-tabs {
    display: flex;
    gap: 34px;
}

.ctc-info-tab {
    font-size: 17px;
    color: #666;
    cursor: pointer;
    position: relative;
    padding-bottom: 14px;
    transition: var(--ctc-transition);
    background: none;
    border: none;
    font-family: inherit;
}

.ctc-info-tab.active { color: var(--ctc-primary); font-weight: 600; }

.ctc-info-tab::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: transparent;
    transition: var(--ctc-transition);
}

.ctc-info-tab.active::after { background: var(--ctc-primary); }
.ctc-info-tab:hover { color: var(--ctc-primary); }

.ctc-info-card {
    position: relative;
    background: linear-gradient(120deg, #fbfdfb 0%, #f4f9f4 55%, #eef6ee 100%);
    border-radius: 4px;
    padding: 44px 56px;
    min-height: 384px;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    align-items: center;
    overflow: hidden;
}

/* Map pattern on the right of the card (inline SVG, no external dependency) */
.ctc-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 62%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='700' height='440' viewBox='0 0 700 440'%3E%3Cg fill='none' stroke='%23cfe3cd' stroke-width='1.4'%3E%3Cpath d='M-20 90 L720 40'/%3E%3Cpath d='M-20 210 L720 160'/%3E%3Cpath d='M-20 330 L720 280'/%3E%3Cpath d='M120 -30 L60 470'/%3E%3Cpath d='M300 -30 L240 470'/%3E%3Cpath d='M480 -30 L420 470'/%3E%3Cpath d='M660 -30 L600 470'/%3E%3Cpath d='M240 470 L600 -30'/%3E%3C/g%3E%3Cg fill='%23cfe3cd'%3E%3Ccircle cx='300' cy='160' r='5'/%3E%3Ccircle cx='480' cy='110' r='5'/%3E%3Ccircle cx='540' cy='250' r='5'/%3E%3Ccircle cx='390' cy='300' r='5'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right center;
    background-size: cover;
    opacity: 0.85;
    z-index: 1;
    pointer-events: none;
}

.ctc-info-text,
.ctc-info-map {
    position: relative;
    z-index: 3;
}

.ctc-info-text .company {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px;
    letter-spacing: 0.5px;
}

.ctc-info-text .en {
    font-size: 14px;
    color: #666;
    margin: 0 0 30px;
    letter-spacing: 0.3px;
}

.ctc-info-text .grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 40px;
    max-width: 640px;
}

.ctc-info-text .item .label {
    font-size: 15px;
    color: #666;
    margin: 0 0 6px;
}

.ctc-info-text .item .value {
    font-size: 18px;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.6;
}

.ctc-info-map {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

/* Green location pin */
.ctc-info-map .pin {
    width: 46px;
    height: 46px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    background: var(--ctc-primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 8px 18px rgba(73,170,61,0.35);
}

.ctc-info-map .pin i {
    transform: rotate(45deg);
}

/* ============================================================
   4. Online Message - kept in sync with the homepage (same class names)
   ============================================================ */
.section-title {
    margin-bottom: 22px;
    font-size: 36px;
    color: #000;
    font-weight: 500;
}

.about-contact {
    background-image: url(../images/home2-Send.png);
    background-size: cover;
    background-position: center;
    padding: 0;
    color: var(--white);
}

.about-contact .section-title {
    margin-bottom: 16px;
    color: #fff;
}

.about-contact-row {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: stretch;
}

.about-contact .contact-content {
    padding: 90px 0 70px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-contact .contact-content > p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 24px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px 10px;
    width: 530px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    padding: 12px 14px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 4px;
    background: rgba(255,255,255,0.1);
    color: var(--white);
    font-size: 16px;
    font-family: inherit;
    outline: none;
    width: 260px;
    height: 50px;
    box-sizing: border-box;
}

.contact-form select option { color: #1a1a1a; }

.contact-form textarea {
    width: 100%;
    height: 140px;
    border-radius: 4px;
    resize: vertical;
}

.contact-form .btn {
    margin-top: 30px;
    width: 178px;
    height: 50px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    color: var(--primary);
    background: #fff;
    cursor: pointer;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(255,255,255,0.7); }

/* ---------- 5. Responsive ---------- */
@media (max-width: 1230px) {
    .ctc-hero h1 { font-size: 54px; }
    .ctc-info-card { padding: 40px 36px; }
    .ctc-info-text .grid { max-width: none; }
}

@media (max-width: 992px) {
    .ctc-hero { margin-top: 64px; height: 300px; }
    /* 移动端 hero 文案一律左对齐（客户要求，中英文一致）。
       .ctc-hero 是 flex 容器，内容块会被 margin:0 auto 居中成 fit-content（中文时
       左侧空 4px、文案更短时更多），这里铺满一行并清掉左右 auto 外边距。桌面不受影响。 */
    .ctc-hero .ctc-hero-content {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        text-align: left;
    }
    .ctc-hero h1 { font-size: 28px; }
    .ctc-hero p { font-size: 16px; }

    /* 移动端面包屑统一尺寸：14px 字号 + 1.5 行高 = 21px 行盒，上下 12px padding，
       加 1px 下边框 = 46px 条高，与 about / news / policy / products / rd 一致。 */
    .ctc-breadcrumb { padding: 12px 0; font-size: 14px; line-height: 1.5; }

    .ctc-info { padding: 50px 0 50px; }
    .ctc-info-head { flex-direction: column; align-items: flex-start; gap: 20px; margin-bottom: 40px; }
    .ctc-info-head h2 { font-size: 20px; }
    .about-contact .section-title { font-size: 20px; }

    .ctc-info-card { grid-template-columns: 1fr; min-height: auto; padding: 34px 28px; }
    .ctc-info-map { display: none; }
    .ctc-info-text .grid { grid-template-columns: 1fr; gap: 18px; }
    .ctc-info-text .en { margin-bottom: 26px; }
    /* 四档字号：公司名 20、标签页/公司英文名 16、标签/内容 14 */
    .ctc-info-text .company { font-size: 20px; }
    .ctc-info-tab { font-size: 16px; }
    .ctc-info-text .item .label { font-size: 14px; }
    /* 移动端统一：段落/内容 16px（补齐无覆盖、会继承 PC 18px 的规则）；小标签 14 */
    .ctc-info-text .item .value { font-size: 16px; }
    .about-contact .contact-content > p { font-size: 16px; }

    .about-contact { height: auto; padding: 60px 0; }
    .about-contact-row { grid-template-columns: 1fr; }
    .about-contact .contact-content { padding-top: 0; }
    .contact-form { width: 100%; }
    .form-row { grid-template-columns: 1fr; }
    .contact-form input,
    .contact-form select { width: 100%; }
}

@media (max-width: 768px) {
    .ctc-hero { height: 240px; }
    .ctc-hero h1 { font-size: 28px; }
    .ctc-info-head h2 { font-size: 20px; }
}

@media (max-width: 576px) {
    .ctc-hero h1 { font-size: 28px; }
    .ctc-info-text .company { font-size: 20px; }

    .about-contact .section-title { font-size: 20px; }
    .contact-form input,
    .contact-form select,
    .contact-form textarea { height: 44px; border-radius: 4px; }
    .contact-form textarea { height: 110px; border-radius: 4px; }
    .contact-form .btn { width: 100%; }
}
