/* Reset default browser styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


:root {     
    --brand-blue: #2A3890;      /* 主色：logo 蓝 */
    --brand-red: #BF1E2D;       /* 强调色：logo 红 */
    --ink: #222222;             /* 主文字 */
    --muted:#505050;          /* 次文字 */
    --bg: #F6F7F9;              /* 页面浅灰背景 */
    --nav-bg: rgba(0,0,0,.03);  /* 子导航条颜色 */
    --card: #ffffff;            /* 卡片底色 */
    --line: rgba(0,0,0,0.08);   /* 分割线 */
    --star: #f6a900;
    --shadow: 0 6px 24px rgba(0,0,0,0.08);
    --radius: 16px;
    --radius-sm: 12px;
    --container: 80%;
}

html { min-height: 100%; }

/* Body */
body {
    min-height: 100%;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

/* Container to center content with padding */
.container {
    width: 80%;
    margin: 0 auto;
}

/* Header */
header {
    background-color: #333;
    color: white;
    
}


/* === Two-tier Header (Rainbow-like) === */
.site-header { 
    background: #ffffff;
    position: -webkit-sticky; /* Safari */
    position: sticky;
    top: 0;
    z-index: 200; 
}


/* Tier 1: 顶层仅放 Logo / 未来定位等 */
.topbar {
    width:100%;
    color: #ffffff;
    min-height: 64px;
    display: flex;
    align-items: center;
    padding: 0 25px;
}

/* 顶栏两端对齐：左logo，右侧放电话(桌面)或汉堡(手机) */
.topbar .header-80 { 
    width: 100%; 
    margin-inline: auto; 
    display: flex; 
    align-items: center; 
    gap: 16px; 
    justify-content: space-between;  
}

/* 控制 logo 图片大小 */
.logo-img {
    height: 96px;          /* 建议 38–48px，与 header 高度协调 */
    width: auto;
    display: block;
}

@media (max-width: 900px) {
    .logo-img {
        height: 72px;
    }
}

/* 顶部地址区域：Logo 右侧的 location */
.header-location {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    /* header-80 已经 justify-content: space-between，
       所以不用再写 margin-left:auto; 也会自动分开 */
}

.header-location a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #000000;
    text-decoration: none;
    font-size: 14px;
    white-space: nowrap; /* 避免换行太难看 */
}

.header-location a:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.header-location svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.header-location span {
    color: var(--brand-blue);
    font-weight: 700;
}
  

/* 保证汉堡按钮在手机端可见并靠右（margin-left: auto 保险） */
@media (max-width: 900px) {
    .hamburger { 
        margin-left: auto; 
    }
}


.brand { 
    display: inline-flex; 
    align-items: center; 
    text-decoration: none;
}

.brand-text {
    color: #fff;
    font-weight: 900;
    font-size: clamp(20px, 2.2vw, 28px);
    letter-spacing: .2px;
}
  

/* 汉堡按钮（仅手机显示） */
.hamburger {
    margin-left: auto;
    width: 42px; height: 42px;
    display: grid; place-items: center;
    border: 1px solid rgba(0, 0, 0, 0.25);
    border-radius: 10px;
    background: transparent;
}
.hamburger-line {
    display: block; 
    width: 22px; 
    height: 2px; 
    background: var(--brand-blue); 
    margin: 3px 0;
    transition: transform .2s ease, opacity .2s ease;
}
.hamburger.is-open .hamburger-line:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.hamburger.is-open .hamburger-line:nth-child(2) { opacity: 0; }
.hamburger.is-open .hamburger-line:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }



/* Tier 2: 导航层（可折叠） */
.navbar {
    background: var(--bg);
    border-top: 1px solid var(--brand-blue);
    border-bottom: 1px solid var(--brand-blue);
    box-sizing: border-box;
    padding: 10px 25px;
}

.site-header .primary-nav {
    display: flex; 
    align-items: center; 
    justify-content: space-between;
    min-height: 56px; 
    gap: 20px;
}

/* 导航菜单 */
.nav-left {
    flex: 1;
}

.nav-left .nav-menu {
    list-style: none; 
    flex: 1;
    display: flex; 
    justify-content: space-between;
    align-items: center;
    gap: 0; 
    margin: 0 20px; 
    padding: 0;
}

.nav-left .nav-menu li {
    flex: 0 1 auto;                 /* 平均分配可用宽度 */
    min-width: 0;                /* 防止超长文本把布局撑爆 */
}

.nav-left .nav-menu a {
    display: block;
    text-align: center;
    color: var(--brand-blue);
    padding: 5px 10px;
    text-decoration: none; 
    font-weight: 700; 
    font-size: 20px;
    transition: transform 0.25s ease, font-size 0.25s ease;
}
.nav-left>.nav-menu>li>a:hover {
    color: var(--brand-red);
    transform: scale(1.12); /* 放大 12% */
    background: rgba(110, 110, 110, 0.08);
    border-radius: 8px;
}

.nav-left .nav-menu span {
    display: block;
    text-align: center;
    color: var(--brand-blue);
    padding: 5px 10px;
    text-decoration: none; 
    font-weight: 700; 
    font-size: 20px;
    transition: transform 0.25s ease, font-size 0.25s ease;
}
.nav-left>.nav-menu>li>span:hover {
    color: var(--brand-red);
    transform: scale(1.12); /* 放大 12% */
    background: rgba(110, 110, 110, 0.08);
    border-radius: 8px;
    cursor: pointer;
}

/* === Desktop 下拉菜单 === */
.nav-item-has-dropdown {
    position: relative;
}
.nav-item-has-dropdown > span {
    position: relative;
    padding-right: 16px;
}
.nav-item-has-dropdown > span:hover {
    transform: none;
}
.nav-item-has-dropdown > span::after {
    content: "▾";
    font-size: 16px;
    margin-left: 4px;
}

.dropdown-menu {
    position: absolute;
    top: 100%; 
    left: 50%;
    transform: translateX(-50%) translateY(0);
    list-style: none;
    margin: 0;
    padding: 0 0;
    min-width: 190px;
    background: var(--bg);
    border-radius: 12px;
    border: 1px solid var(--bg);
    box-shadow: 0 10px 24px rgba(0,0,0,.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease;
    z-index: 220;
}

.dropdown-menu li {
    width: 100%; 
    border-bottom: 1px solid var(--line);
}

.dropdown-menu li:last-child {
    width: 100%; 
    border-bottom: 0px solid var(--line);
}

.dropdown-menu a {
    display: block;
    padding: 8px 14px;
    text-align: left;
    font-size: 14px !important;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.25s ease, font-size 0.25s ease;
}
.dropdown-menu a:hover {
    color: var(--brand-red);
    transform: scale(1.12); 
} 



.nav-item-has-dropdown:hover .dropdown-menu {
    opacity: 1;
    pointer-events: auto;
}


.nav-mid {
    margin: 0 40px;
}

@media (max-width: 1000px) {
    .nav-mid {
        margin: 0 25px;
    }
}


/* 导航栏右侧电话 */
.cta-phone {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    background: transparent; /* 取消原红色按钮底 */
    padding: 0;
}


.cta-phone .phone-number {
    font-size: 28px;          /* 主号码大号字体 */
    font-weight: 900;
    color: var(--brand-red);
    text-decoration: none;
    line-height: 1.1;
    transition: transform 0.25s ease, font-size 0.25s ease;
}

.cta-phone .phone-number:hover {
    transform: scale(1.12);
}

.cta-phone .phone-subtitle {
    font-size: 14px;
    color: var(--brand-red);           
    font-weight: 700;
    margin-top: 2px;
    letter-spacing: 0.5px;
}


/* 手机端：折叠行为 */
.mobile-only { 
    display: none; 
}

.desktop-only { 
    display: inline-flex; 
}

body.menu-open { 
    overflow: hidden;
}

@media (max-width: 1000px) {
    .desktop-only { 
        display: none !important; 
    }
    .mobile-only { 
        display: inline-flex !important; 
    }
    /* 头部与下拉层的分层：头部最高，其次遮罩，再下面是页面内容 */
    .site-header { z-index: 200; }

    /* 手机端：只显示汉堡按钮；点击后显示一个独立的下拉面板 */
    .topbar {
        padding: 0 12px;
    }

    .navbar { 
        position: relative; 
        padding: 0 12px;
    }

    /* 折叠容器：data-collapsed=true 时收起 */
    .site-header .primary-nav {
        position: static !important;
        overflow: visible !important;
        max-height: none !important;
        gap: 0;                 /* 去掉额外空隙 */
    }

    /* 折叠时：primary-nav 自身不占高度/内边距 */
    .site-header .primary-nav[data-collapsed="true"] {
        min-height: 0 !important;
        padding-block: 0 !important;
    }

    .site-header .primary-nav[data-collapsed="false"] {
        height: 0 !important;         /* 去掉那 56px */
        min-height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        border: 0 !important;
        overflow: visible !important;  /* 允许里面的 fixed 子元素显示 */
    }

    /* 默认收起：不显示菜单（连 Home 都看不到） */
    .site-header .primary-nav[data-collapsed="true"] .nav-menu {
        display: none !important;
    }
    /* 展开时：将菜单作为独立下拉面板铺满导航条下方 */
    .site-header .primary-nav[data-collapsed="false"] .nav-menu {   
        display: block !important;
        position: fixed;
        top: var(--menu-top, 112px);          /* 由JS动态计算，兜底112px */
        left: 0;
        right: 0;
        background: var(--bg);
        border-top: 1px solid rgba(255,255,255,.08);
        box-shadow: 0 12px 24px rgba(0,0,0,.2);
        z-index: 201;
        padding: 0;                    /* 去掉多余内边距，避免“第一行空白”错觉 */
        margin: 0;                     /* 保证UL顶部没有默认外边距 */
        max-height: calc(100dvh - var(--menu-top, 112px)); /* 竖向可滚动 */
        overflow-y: auto;
    }

    /* 半透明遮罩，盖住页面其他内容，点击可关闭 */
    .nav-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,.4);
        z-index: 199;
    }

    /* 下拉面板里的列表竖排、全宽可点 */
    .site-header .nav-menu li { 
        width: 100%;
        overflow-x: hidden;
    }
    .site-header .nav-menu a,
    .site-header .nav-menu span {
        font-size: 18px;
        display: block;
        width: 100%;
        padding: 14px 16px;
        border-bottom: 1px solid rgba(0,0,0,.1);
    }

    .site-header .nav-menu li:first-child a {
        border-top: 1px solid rgba(255,255,255,.06); /* 让第一行有明确起始边界，不会显得“空” */
    }
    .site-header .nav-menu li:last-child a {
        border-bottom: none;
    }
    .nav-left > .nav-menu > li > a:hover,
    .nav-left > .nav-menu > li > span:hover {
        transform: none;          /* 取消 scale(1.12) */
        /* 可以保留浅背景高亮 */
        background: var(--bg);
    }


    /* 遮罩：默认隐藏，用 [hidden] 控制显示/隐藏 */
    .nav-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,.4);
        z-index: 199;
    }

    /* 手机端的下拉菜单样式 */
    .nav-item-has-dropdown {
        position: static;
    }
    .nav-item-has-dropdown > a::after,
    .nav-item-has-dropdown > span::after {
        content: "▾";  /* 手机端不显示小三角 */
        font-size: 16px;
        margin-left: 4px;
    }

    .nav-item-has-dropdown .dropdown-menu {
        position: static;
        transform: none;
        margin: 0;
        padding: 0;
        box-shadow: none;
        border-radius: 0;
        border: 0;
        background: transparent;
        display: none;
    }

    /* 当父 <li> 有 .is-open 类时，展开子菜单 */
    .nav-item-has-dropdown.is-open .dropdown-menu {
        display: block;
        background: var(--nav-bg);
    }

    .nav-item-has-dropdown .dropdown-menu li {
        padding-left: 32px;   /* 左缩进，看起来是子菜单 */
        font-size: 16px;
        border-bottom: 1px solid var(--line);
        text-align: left;
    }
    /*
    .nav-item-has-dropdown .dropdown-menu li:first-child {
        padding-left: 32px;   
        font-size: 16px;
        border-top: 1px solid var(--line);
        text-align: left;
    }
    .nav-item-has-dropdown .dropdown-menu li:last-child {
        padding-left: 32px;   
        font-size: 16px;
        border-bottom: 1px solid var(--line);
        text-align: left;
    }
    */
    .nav-item-has-dropdown .dropdown-menu li a {
        padding-left: 16px;   /* 左缩进，看起来是子菜单 */
        font-size: 16px;
        border-bottom: 1px solid var(--line);
        text-align: left;
    }
}
  

/* 手机端：Header 下的一键拨号大按钮 */
.mobile-call-btn {
    display: none;                /* 默认不显示（桌面端隐藏） */
    width: 100%;                  /* 占满 header 的宽度 */
    text-align: center;           /* 让内部 a 水平居中 */
    margin-top: 5px;               /* 上下留等距空隙 */
}

.mobile-call-btn a {
    display: inline-block;        /* 让内部 a 自适应宽度 */
    background: var(--brand-red);
    color: #fff;
    font-weight: 900;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 15px;
}

@media (max-width: 1000px) {
    .mobile-call-btn { 
        display: flex;              /* 让内部 a 居中 */
        justify-content: center;
        padding: 4px 16px;
        margin: 0;
    }
    .mobile-call-btn a {
        display: inline-block;        /* 让内部 a 自适应宽度 */
        background: var(--brand-red);
        color: #fff;
        font-weight: 900;
        font-size: 14px;
        text-decoration: none;
        padding: 5px 16px;
        border-radius: 15px;
    }
}







/* Hero Section */
.hero {
    background: url('../images/home/hero-image.jpg') no-repeat center center/cover;
    color: white;
    padding: 100px 0;
    text-align: center;
    width: 100%;
    margin-left: 0;
}

/* 让 hero 里的内容统一按 80% 布局 */
.hero .container {
    width: 80%;
    margin-inline: auto;
    padding: 0 20px;           /* 需要一点左右留白就写在这里 */
}

.hero-content h1 {
    font-size: 48px;
}

.hero-content p {
    font-size: 20px;
    margin: 20px 0;
}

.cta-btn {
    background-color: var(--brand-red);
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    font-size: 18px;
    border-radius: 30px;
    transition: background-color 0.3s ease;
}

.cta-btn:hover {
    background-color: #A51F24;
}


/* === Services Section (Rainbow-like cards) === */

/* 标题区：容器宽度保持 80% 不变 */
.services { background:#fff; padding: 50px 0; }
.services .container { width: 80%; margin-inline: auto; }

/* 标题与副标题（更贴近 Rainbow 的层次） */
.services-header { display: grid; gap: 10px; margin-bottom: 18px; }
.services-title { font-size: clamp(24px, 2.4vw, 36px); text-align: center;line-height: 1.2; color:var(--brand-blue); margin: 0; }
.services-subtitle { color: var(--ink); font-size: 18px; }

/* 网格：桌面 4 列、平板 2 列、手机 1 列 */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}
@media (max-width: 1000px) { .services-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; } }
@media (max-width: 640px)  { .services-grid { grid-template-columns: 1fr; gap: 18px; } }

/* 卡片本体（带覆盖层） */
.service-card {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 16px;
    min-height: 300px;
    box-shadow: 0 12px 28px rgba(0,0,0,.16);
    text-decoration: none;
    color: inherit;
    isolation: isolate;
    background: var(--card);
}
.service-card::after {
    content: "";
    position: absolute; inset: 0;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
    pointer-events: none;
}

/* 背景图 */
.service-media, .service-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.82);
    transition: transform .6s ease, filter .6s ease;
}

/* 左上角 chip 标签 */
.service-chip {
    position: absolute;
    top: 14px; left: 14px;
    z-index: 2;
    display: inline-block;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .3px;
    border-radius: 999px;
    background: rgba(44,63,148,0.6);
    color: #fff;
    backdrop-filter: blur(2px);
    text-transform: uppercase;
}

/* 底部渐变覆盖层 + 文案 */
.service-overlay {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 8px;
    height: 100%;
    padding: 24px;
    color: #fff;
    background: linear-gradient(
        180deg,
        rgba(0,0,0,0.05) 10%,
        rgba(0,0,0,0.18) 40%,
        rgba(0,0,0,0.55) 75%,
        rgba(0,0,0,0.75) 100%
    );
}

.service-name {
  font-size: clamp(22px, 2.2vw, 30px);
  margin: 0;
  font-weight: 800;
  letter-spacing: .2px;
}

.service-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  opacity: .92;
  max-width: 44ch;
}

/* “Learn More” 像文本链接一样 */
.service-link {
    display: inline-block;
    font-weight: 700;
    color: var(--brand-red);
    font-size: 14px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: transform .2s ease, opacity .2s ease;
}

/* 悬浮动效 */
.service-card:hover .service-media img { transform: scale(1.07); filter: brightness(0.86); }
.service-card:hover .service-link { transform: translateX(2px); opacity: .9; }




/* === Why Choose Us (Rainbow-like) === */
.why { background:#fff; padding: 56px 0; }

.why-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    width: 80%;
    margin-inline: auto;
    flex-wrap: wrap;
  }
  

.why .container { width: 80%; margin-inline: auto; }

.why-text {
    flex: 1 1 55%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}


.why-header { 
    text-align: left; 
} 
.why-title { 
    font-size: clamp(32px, 3vw, 44px); 
    line-height:1.1; 
    color: var(--brand-blue);
    font-weight: 900;
    margin:0; 
}
.why-subtitle { 
    color: #333;
    font-size: 20px;
    font-weight: 500;
    margin-top: 8px;
}


.why-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;           /* 每条要点之间的垂直间距 */
    margin: 12px 0 0;
    padding: 0;
}

.why-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 18px 0;
    border-bottom: 1px solid rgba(0,0,0,.08); /* 细分割线，弱化卡片感 */
}
.why-item:last-child { border-bottom: none; }
  
.why-bullet {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    font-size: 24px;
    border-radius: 50%;
    background: var(--brand-red); /* 你当前主题红 */
    color: #fff;
    
    line-height: 1;       /* 减少行高干扰 */
    padding-top: .08em;   /* ⬅️ 等价“往下点一点”，比 px 更像基线校正 */
    box-sizing: border-box;
}
  
.why-copy h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    color: #111; 
    line-height: 1.2;
}
.why-copy p {
    margin: 6px 0 0;
    font-size: 18px;
    color: #333;
    line-height: 1.65;
}
  
/* 可选：窄屏时让分割线稀疏些 */
@media (max-width: 640px) {
    .why-item { padding: 12px 0; }
}


/* Badges row */
.why-badges {
    display:flex;
    flex-wrap: wrap;
    gap:10px;
    margin-top: 22px;
    justify-content: center;
}
.badge {
    display:inline-block;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    background: #f1f1f1;
    border: 1px solid rgba(0,0,0,.06);
}



.why-image {
    flex: 1 1 40%;
    text-align: center;
}
  
.why-image img {
    width: 100%;
    max-width: 800px;
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.15);
    object-fit: cover;
}
  
/* 手机端堆叠显示 */
@media (max-width: 900px) {
    .why-content {
        flex-direction: column;
        align-items: center;
    }
    .why-image img {
        max-width: 90%;
    }
}



/* Testimonials Section */
.reviews {
    background: #f9f9f9;   
    padding: 64px 0 80px;
    border-top: 1px solid rgba(0,0,0,.05);   /* 柔和的顶部线条 */
    border-bottom: 1px solid rgba(0,0,0,.05);
}

.reviews .container {
    width: 100%;
    margin-inline: auto;
}

.reviews-inner {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* 顶部标题 + View All Reviews 右侧链接 */
.reviews-header {
    display: flex;
    flex-direction: column;   /* 改为上下排列 */
    align-items: center;      /* ⭐ 水平居中所有内容 */
    text-align: center;       /* ⭐ 让文字也居中 */
    gap: 12px;
    padding-bottom: 16px;
    background: #f9f9f9;
}

.reviews-title {
    font-size: clamp(28px, 2.4vw, 36px);
    font-weight: 900;
    color: var(--brand-blue);
    margin: 0;
}

.reviews-subtitle {
    margin-top: 6px;
    font-size: 16px;
    color: var(--ink);
    max-width: 48rem;
}

.reviews-link {
    font-size: 14px;
    font-weight: 700;
    color: #bb0606;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-top: 6px;
}
.reviews-link:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* 评价卡片栅格 */
/* 一行 3 个卡片  默认宽度60%*/
.reviews-grid {
    width: 60%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    justify-content: center;
    margin: 0 auto;
}
/* 平板：宽度再宽一点点，一行 2 个 */
@media (max-width: 1024px) {
    .reviews-grid {
        width: 80%;      /* 让区域在小屏上稍微放宽一点 */
        display: grid;                              
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin: 0 auto;
        gap:20px;
    }
    /* 关键：让最后一张卡片跨两列 + 自己居中 */
    .reviews-grid .review-card:last-child {
        grid-column: 1 / -1;     /* 跨第1到最后1列，两列合并成一格 */
        justify-self: center;    /* 在这一整行里居中 */
        width: calc((100% - 20px) / 2);         
        /*            ↑   ↑
           这一行的总宽度   gap
           （总宽度 - 一条列间距）再除以 2 = 单列宽度 */
    }
}

/* 手机：一行 1 个，宽度 90% */
@media (max-width: 640px) {
    .reviews-grid {
        width: 90%;
        grid-template-columns: 1fr;
    }
    .reviews-grid .review-card:last-child {
        width: 100%;
    }
}

/* 单张评价卡片 */
.review-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,.06);
    padding: 20px 20px 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,.06);
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    min-height: 360px;
}


/* 左上角圆形引号图标（模仿 Rainbow 的 testimonial icon） */
.review-icon {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: var(--brand-red);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 26px;
    font-weight: 900;
    margin-bottom: 4px;
}

.review-text {
    font-size: 15px;
    font-style: italic;
    line-height: 1.7;
    color: var(--ink);
    /*flex: 1;*/
    display: -webkit-box;
    -webkit-line-clamp: 8;           /* 显示 5 行，多出的隐藏 */
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-height: 13.6em;               /* 保险，再加一个高度上限 */
    position: relative;
}

/* 渐变遮罩，让底部有一点“渐隐”的感觉，像 Rainbow 那种长评被截断的效果 */
.review-text::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 2.8em;
    background: linear-gradient(
        to bottom,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,1) 90%
    );
    pointer-events: none;
}

.review-text.no-clamp {
    -webkit-line-clamp: unset;
    max-height: none;
}

/* 不裁剪时也不要渐变遮罩 */
.review-text.no-clamp::after {
    display: none;
}


/* 展开后：去掉裁剪和渐变 */
.review-card.expanded .review-text {
    -webkit-line-clamp: unset;
    max-height: none;
}

.review-card.expanded .review-text::after {
    display: none;
}


/* ---- Read more / Read less 按钮 ---- */
.review-toggle {
    align-self: flex-start;      /* 靠左 */
    margin-top: 4px;
    padding: 0;
    border: none;
    background: none;
    font-size: 11px;
    font-weight: 700;
    color: var(--brand-red);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.review-toggle:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* 名字 + 星星行 */
.review-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 4px;
}

.review-name {
    font-weight: 800;
    font-size: 14px;
    font-style: italic;
    color: var(--ink);
}

.review-stars {
    font-size: 14px;
    letter-spacing: 1px;
    color: var(--star); /* 星星金色 */
}


/* 底部 Promise 条 */
.reviews-promise {
    margin-top: 8px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #f6f7f9;
    border: 1px solid rgba(0,0,0,.04);
    font-size: 14px;
    color: #444;
}
.reviews-promise strong {
    font-weight: 800;
    margin-right: 4px;
}



/* Footer */
.site-footer {
    background: #1C2C6E;
    background: var(--brand-blue);
    color: #FFF;
    margin-top: 0px;
    font-size: 16px;
}

.site-footer a:hover {
    text-decoration: underline;
    color: var(--brand-red);
}

.site-footer .container { width: 80%; margin-inline: auto; }

.footer-top {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1.2fr; /* 视觉上更接近 Rainbow 的比例 */
    gap: 32px;
    padding: 48px 0 28px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
@media (max-width: 1000px) {
    .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .footer-top { grid-template-columns: 1fr; }
}

.footer-col { display: flex; flex-direction: column; gap: 14px; }

/* 品牌列 */
.footer-logo-text {
    color: #fff;
    font-weight: 900;
    font-size: clamp(20px, 2.2vw, 26px);
    text-decoration: none;
}
.footer-brand .footer-logo { text-decoration: none; }

/* 电话与地址 */
.footer-phone {
    font-size: 22px;
    font-weight: 900;
    color: #fff;
    text-decoration: none;
}
.footer-phone:hover { text-decoration: underline; }

.footer-address {
    color: #fff;
    font-size: 15px;
    margin-top: 4px;
    line-height: 1.5;
}

/* 社交图标 */
.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 10px;
    list-style: none;
    padding: 0;
}
.footer-social .icon {
    width: 36px;
    height: 36px;
    display: inline-block;
    background-size: cover;
    background-position: center;
    transition: transform 0.2s ease;
}
.footer-social .fb { background-image: url('../images/footer/facebook-y-icon.svg'); }
.footer-social .ig { background-image: url('../images/footer/instagram-y-icon.svg'); }
.footer-social .in { background-image: url('../images/footer/linkedin-y-icon.svg'); }
.footer-social .icon:hover { transform: scale(1.1); }

/* 标题与链接列 */
.footer-heading {
    color: #fff;
    font-weight: 800;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: .6px;
}
.footer-cta .footer-phone {
    font-size: 18px;
    font-weight: 800;
    margin-top: 4px;
    display: inline-block;
    color: #fff;
    text-decoration: none;
}
.footer-cta .footer-phone:hover {
    text-decoration: underline;
}



.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-links a {
    color: var(--card);
    text-decoration: none;
}
.footer-links a:hover {
    color: var(--brand-red);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* 右侧 CTA（保留订阅） */
.footer-cta { gap: 12px; }
.footer-newsletter {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}
.footer-newsletter input {
    flex: 1;
    min-width: 0;
    height: 40px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.2);
    background: rgba(255,255,255,.06);
    color: #fff;
    padding: 0 12px;
}
.footer-newsletter button {
    height: 40px;
    border-radius: 10px;
    padding: 0 14px;
    border: 0;
    font-weight: 800;
    background: #f39c12;
    color: #111;
}

/* 底栏 */
.footer-bottom { background: #0b0b0b; }
.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 0;
}
.legal-links {
    display: flex;
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}
.legal-links a {
    color: var(--bg);
    text-decoration: none;
    font-size: 14px;
}
.legal-links a:hover {
    color: var(--card);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* 无障碍隐藏文字 */
.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}



/* Responsive Design */
@media screen and (max-width: 768px) {
    nav .nav-menu {
        flex-direction: column;
        align-items: flex-start;
    }

    .service-item {
        width: 100%; /* Stack items vertically on smaller screens */
        margin: 10px 0;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .hero-content p {
        font-size: 18px;
    }
}

@media screen and (max-width: 480px) {
    .hero-content h1 {
        font-size: 24px;
    }

    .hero-content p {
        font-size: 16px;
    }
}





/* ================================
   Testimonials 全页面布局（仿 Rainbow）
   只影响带有 .page-testimonials 的页面
   ================================ */
.page-testimonials .reviews {
    padding-top: 72px;
    padding-bottom: 96px;
}

/* 顶部标题区域整体居中 + 限宽（类似 Rainbow） */
.page-testimonials .reviews-inner {
    align-items: center;
}

.page-testimonials .reviews-header {
    max-width: 720px;
    margin: 0 auto 32px;
}

/* ⭐ 关键：改成一列竖直排的长条评价，而不是多列 grid 卡片 */
.page-testimonials .reviews-grid {
    width: 60%;
    max-width: 900px;
    margin: 0 auto;
    display: flex;              /* 竖直列表 */
    flex-direction: column;
    gap: 32px;
}

/* 手机、平板时稍微放宽一点 */
@media (max-width: 1000px) {
    .page-testimonials .reviews-grid {
        width: 80%;
    }
}
@media (max-width: 768px) {
    .page-testimonials .reviews-grid {
        width: 90%;
    }
}

/* 去掉首页那种“卡片统一高度”的感觉，改成自适应高度 */
.page-testimonials .review-card {
    min-height: auto;
}

/* Testimonials 页面里不需要截断文字，也不需要 Read more 按钮 */
.page-testimonials .review-text {
    max-height: none;
    -webkit-line-clamp: unset;
    overflow: visible;
    position: static;
}

.page-testimonials .review-text::after,
.page-testimonials .review-toggle {
    display: none;
}



