/* ================================================================
   伊兰认联官网 · 设计系统 Base
   主色：清真绿（沿用原站 #196B24），辅以伊斯兰金与米白底
   ================================================================ */

:root {
    /* 品牌绿 */
    --green-900: #0B3A11;
    --green-800: #0F4A17;
    --green-700: #14591C;
    --green-600: #196B24;
    --green-500: #2D8A3A;
    --green-400: #4CA35A;
    --green-200: #A9D3B2;
    --green-100: #E7F3EA;
    --green-50:  #F2F9F4;

    /* 点缀金 */
    --gold-600: #A8841B;
    --gold-500: #C9A227;
    --gold-300: #E3C76A;
    --gold-100: #F7EED2;

    /* 中性色 */
    --cream: #F7F6F1;
    --paper: #FFFFFF;
    --ink: #101418;
    --body: #3D454E;
    --muted: #6B7480;
    --line: rgba(16, 20, 24, .10);
    --line-strong: rgba(16, 20, 24, .18);

    /* 形状与阴影 */
    --r-sm: 10px;
    --r-md: 14px;
    --r-lg: 20px;
    --r-xl: 28px;
    --shadow-xs: 0 1px 3px rgba(16, 40, 24, .06);
    --shadow-sm: 0 4px 14px rgba(16, 40, 24, .07);
    --shadow-md: 0 12px 34px rgba(16, 40, 24, .10);
    --shadow-lg: 0 26px 64px rgba(16, 40, 24, .14);

    --container: 1200px;
    --font-sans: 'Noto Sans SC', 'Microsoft YaHei', 'PingFang SC', sans-serif;
    --font-arabic: 'Noto Sans Arabic', serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.75;
    color: var(--body);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }
a { color: inherit; }
ul, ol { list-style: none; }

::selection { background: var(--green-600); color: #fff; }

/* ---------- 布局 ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 960px; }
.section { padding: 96px 0; }
.section-white { background: var(--paper); }
.section-gray { background: var(--cream); }
.section-green { background: linear-gradient(160deg, var(--green-800), var(--green-900)); color: #fff; }
.section-gap { margin-top: 40px; }
.text-center { text-align: center; }

/* ---------- 区块标题 ---------- */
.section-title {
    font-size: 34px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--ink);
    letter-spacing: .5px;
    text-align: center;
}
.section-subtitle {
    margin-top: 8px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--green-600);
    text-align: center;
}
.section-cta { margin-top: 40px; text-align: center; }
.btn-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}
.muted-note { font-size: 14px; color: var(--muted); line-height: 1.9; }
.divider { height: 1px; background: var(--line); margin: 32px 0; }

/* ---------- 按钮 ---------- */
.btn-primary {
    display: inline-block;
    padding: 13px 34px;
    background: linear-gradient(135deg, var(--green-600), var(--green-700));
    color: #fff !important;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .5px;
    border-radius: var(--r-sm);
    border: 1px solid transparent;
    text-decoration: none;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s, background .2s;
    box-shadow: 0 8px 20px rgba(25, 107, 36, .22);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(25, 107, 36, .28); }
.btn-ghost {
    display: inline-block;
    padding: 13px 32px;
    background: transparent;
    color: var(--green-700);
    font-size: 15px;
    font-weight: 600;
    border: 1.5px solid var(--green-200);
    border-radius: var(--r-sm);
    text-decoration: none;
    transition: all .2s;
}
.btn-ghost:hover { border-color: var(--green-600); background: var(--green-50); }
.btn-light {
    display: inline-block;
    padding: 13px 32px;
    background: #fff;
    color: var(--green-700);
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--r-sm);
    text-decoration: none;
    white-space: nowrap;
    transition: transform .2s, box-shadow .2s;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .18);
}
.btn-light:hover { transform: translateY(-2px); }
.btn-submit { width: 100%; }

/* ================================================================
   顶部导航
   ================================================================ */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
}
.header-bar {
    background: linear-gradient(120deg, var(--green-800) 0%, var(--green-700) 55%, var(--green-600) 100%);
    box-shadow: 0 2px 18px rgba(11, 58, 17, .18);
}
.header-content {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    min-height: 76px;
    padding: 10px 24px;
}
.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #fff;
    flex-shrink: 0;
}
.logo-img { height: 42px; width: auto; display: block; filter: brightness(0) invert(1); }
.logo-text {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 3px;
    line-height: 1.2;
}
.logo-text small {
    display: block;
    font-size: 9px;
    font-weight: 400;
    letter-spacing: 1.2px;
    opacity: .75;
    margin-top: 2px;
}
.nav { display: flex; align-items: center; gap: 2px; }
.nav-link {
    position: relative;
    color: rgba(255, 255, 255, .88);
    text-decoration: none;
    padding: 9px 12px;
    font-size: 15px;
    border-radius: var(--r-sm);
    transition: background .2s, color .2s;
    white-space: nowrap;
}
.nav-link:hover { color: #fff; background: rgba(255, 255, 255, .12); }
.nav-link.active { color: #fff; background: rgba(255, 255, 255, .18); }
.nav-link.active::after {
    content: '';
    position: absolute;
    left: 12px; right: 12px; bottom: 3px;
    height: 2px;
    border-radius: 2px;
    background: var(--gold-300);
}
.nav-en {
    display: block;
    font-size: 10px;
    letter-spacing: 1px;
    opacity: .62;
    text-transform: uppercase;
}
.header-tel {
    color: #fff;
    text-align: right;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    flex-shrink: 0;
    margin-left: auto;
    padding-left: 18px;
    border-left: 1px solid rgba(255, 255, 255, .22);
}
.tel-en { display: block; font-size: 11px; font-weight: 400; opacity: .7; letter-spacing: .5px; }

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px; height: 42px;
    padding: 9px;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: var(--r-sm);
    cursor: pointer;
}
.nav-toggle-bar { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; }

/* ================================================================
   页脚
   ================================================================ */
.footer {
    position: relative;
    background: linear-gradient(150deg, var(--green-900), #082B0D);
    color: rgba(255, 255, 255, .78);
    padding: 56px 0 24px;
    overflow: hidden;
}
.footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../images/pattern-geometric.svg');
    background-size: 220px;
    opacity: .05;
}
.footer > .container { position: relative; }
.footer-content {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.footer-logo img { height: 46px; width: auto; display: block; }
.footer-text h3 {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    letter-spacing: .5px;
    margin-bottom: 6px;
}
.footer-text p { font-size: 14px; line-height: 1.9; }
.footer-text p + p { margin-top: 2px; }
.footer-links { margin-top: 12px; font-size: 13px !important; }
.footer-links a { color: rgba(255, 255, 255, .78); text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: var(--gold-300); }
.footer-bottom {
    padding-top: 18px;
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, .6);
}
.footer-bottom p + p { margin-top: 4px; }
.footer-bottom a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.footer-bottom a:hover { color: var(--gold-300); }
.footer-bottom-home { display: flex; flex-direction: column; align-items: center; }

/* ---------- 悬浮咨询 ---------- */
.float-notice {
    position: fixed;
    right: 0;
    top: 62%;
    transform: translateY(-50%);
    z-index: 999;
    writing-mode: vertical-rl;
    padding: 20px 11px;
    background: linear-gradient(180deg, var(--green-600), var(--green-700));
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 3px;
    border-radius: var(--r-sm) 0 0 var(--r-sm);
    box-shadow: -4px 6px 20px rgba(16, 40, 24, .22);
    transition: padding-right .2s, background .2s;
}
.float-notice:hover { padding-right: 15px; background: linear-gradient(180deg, var(--green-500), var(--green-600)); }
.float-notice-text { display: inline-block; }
/* ================================================================
   表单基础
   ================================================================ */
.form-field { margin-bottom: 20px; }
.form-field label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: var(--ink);
    margin-bottom: 8px;
}
.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 13px 15px;
    border: 1.5px solid var(--line);
    border-radius: var(--r-sm);
    font-size: 15px;
    font-family: inherit;
    color: var(--ink);
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
}
.form-field textarea { min-height: 140px; resize: vertical; line-height: 1.8; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--green-500);
    box-shadow: 0 0 0 3px rgba(45, 138, 58, .12);
}
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-tip { font-size: 13px; color: var(--muted); line-height: 1.75; }
.form-required { color: #C62828; margin-left: 3px; }
.form-error {
    display: none;
    background: #FDECEA;
    color: #B3261E;
    border-left: 4px solid #C62828;
    border-radius: var(--r-sm);
    padding: 13px 18px;
    margin-bottom: 20px;
    font-size: 14px;
}
.form-success {
    display: none;
    background: var(--green-50);
    color: var(--green-800);
    border-left: 4px solid var(--green-500);
    border-radius: var(--r-sm);
    padding: 18px 22px;
    margin-bottom: 22px;
    font-size: 15px;
    line-height: 1.8;
}

/* ================================================================
   响应式
   ================================================================ */
@media (max-width: 1280px) {
    .nav-en { display: none; }
    .nav-link { padding: 9px 9px; font-size: 14px; }
}

@media (max-width: 1100px) {
    .nav-link { padding: 9px 7px; font-size: 13px; }
    .logo-text { font-size: 14px; letter-spacing: 2px; }
}

@media (max-width: 900px) {
    .header-content { min-height: 68px; }
    .nav {
        display: none;
        width: 100%;
        order: 4;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 14px 0 4px;
        border-top: 1px solid rgba(255, 255, 255, .16);
        margin-top: 8px;
    }
    .header-content.nav-open .nav { display: flex; }
    .nav-link { padding: 12px 16px; font-size: 15px; }
    .nav-en { display: inline; margin-left: 8px; }
    .nav-link.active::after { display: none; }
    .nav-toggle { display: flex; flex-shrink: 0; }
    .logo-img { height: 36px; }
    .logo-text { font-size: 13px; letter-spacing: 1.5px; }
    .logo-text small { display: none; }
    .header-tel { font-size: 13px; padding-left: 12px; }
    .header-tel .tel-en { display: none; }
    .header-portal { display: none; }
    .section { padding: 64px 0; }
    .section-title { font-size: 27px; }
    .form-row-2 { grid-template-columns: 1fr; }
    .footer-content { flex-direction: column; text-align: center; align-items: center; }
    .float-notice { top: 70%; padding: 14px 9px; font-size: 13px; letter-spacing: 2px; }
}