/* ============================================
   中益丰标准技术服务（苏州）有限公司 - 官网样式
   专业蓝主题 | 响应式设计
   ============================================ */

/* === Reset & Base === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1a5ca8;
    --primary-dark: #0f3a6b;
    --primary-light: #2563eb;
    --accent: #3b82f6;
    --bg-light: #f0f6ff;
    --bg-section: #f8fafc;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-light: #94a3b8;
    --border: #e2e8f0;
    --success: #10b981;
    --warning: #f59e0b;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,.12);
    --shadow-blue: 0 4px 20px rgba(26,92,168,.15);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --transition: all .3s ease;
    --max-width: 1200px;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
    color: var(--text-primary);
    background: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    display: block;
}

ul { list-style: none; }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* === Section Title === */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title .label {
    display: inline-block;
    font-size: .8rem;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.section-title h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.section-title p {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 640px;
    margin: 0 auto;
}

.section-title .divider {
    width: 48px;
    height: 3px;
    background: var(--primary);
    margin: 16px auto 0;
    border-radius: 2px;
}

/* === Header & Navigation === */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-top {
    background: var(--primary-dark);
    color: rgba(255,255,255,.85);
    font-size: .82rem;
    padding: 6px 0;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-top .top-info {
    display: flex;
    gap: 24px;
    align-items: center;
}

.header-top .top-info span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.header-top .top-info svg {
    width: 14px;
    height: 14px;
    opacity: .8;
}

.nav-wrapper {
    padding: 14px 0;
    transition: var(--transition);
}

.header.scrolled .nav-wrapper {
    padding: 10px 0;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: -1px;
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text .name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}

.logo-text .sub {
    font-size: .7rem;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    gap: 4px;
    align-items: center;
}

.nav-menu > li > a {
    padding: 8px 18px;
    font-size: .95rem;
    font-weight: 500;
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    position: relative;
}

.nav-menu > li > a:hover,
.nav-menu > li > a.active {
    color: var(--primary);
    background: var(--bg-light);
}

.nav-menu > li > a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

.nav-cta {
    margin-left: 12px;
}

.nav-cta a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 22px;
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius-sm);
    font-size: .9rem;
    font-weight: 600;
}

.nav-cta a:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-blue);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* === Hero === */
.hero {
    position: relative;
    min-height: 620px;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(255,255,255,.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,.06) 0%, transparent 50%);
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 120px;
    background: linear-gradient(to bottom, transparent, var(--white));
}

.hero-pattern {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    opacity: .04;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='1'%3E%3Cpath d='M30 0v60M0 30h60'/%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/svg%3E");
}

.hero .container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 60px;
}

.hero-content {
    flex: 1;
    color: var(--white);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 30px;
    font-size: .82rem;
    font-weight: 500;
    margin-bottom: 24px;
}

.hero-badge svg {
    width: 16px;
    height: 16px;
}

.hero-content h1 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.hero-content h1 .highlight {
    color: #93c5fd;
}

.hero-content .tagline {
    font-size: 1.15rem;
    line-height: 1.8;
    color: rgba(255,255,255,.85);
    margin-bottom: 36px;
    max-width: 520px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 32px;
    border-radius: var(--radius-sm);
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background: var(--white);
    color: var(--primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,.2);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,.4);
}

.btn-outline:hover {
    background: rgba(255,255,255,.1);
    border-color: rgba(255,255,255,.7);
}

.btn-blue {
    background: var(--primary);
    color: var(--white);
}

.btn-blue:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-blue);
}

.btn svg {
    width: 18px;
    height: 18px;
}

.hero-visual {
    flex: 0 0 420px;
    position: relative;
}

.hero-card {
    background: rgba(255,255,255,.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: var(--radius-lg);
    padding: 32px;
}

.hero-card .card-title {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-card .stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.hero-card .stat-item {
    text-align: center;
}

.hero-card .stat-num {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
}

.hero-card .stat-num .unit {
    font-size: .9rem;
    font-weight: 500;
    opacity: .8;
}

.hero-card .stat-label {
    font-size: .82rem;
    color: rgba(255,255,255,.7);
    margin-top: 6px;
}

.hero-card .qual-row {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,.15);
}

.hero-card .qual-badge {
    flex: 1;
    text-align: center;
    padding: 10px;
    background: rgba(255,255,255,.08);
    border-radius: var(--radius-sm);
}

.hero-card .qual-badge .qual-name {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--white);
}

.hero-card .qual-badge .qual-desc {
    font-size: .72rem;
    color: rgba(255,255,255,.6);
    margin-top: 2px;
}

/* === Stats Bar === */
.stats-bar {
    background: var(--white);
    padding: 0;
    border-bottom: 1px solid var(--border);
}

.stats-bar .container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.stat-block {
    text-align: center;
    padding: 32px 16px;
    border-right: 1px solid var(--border);
}

.stat-block:last-child { border-right: none; }

.stat-block .num {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.stat-block .num .unit {
    font-size: 1rem;
    font-weight: 600;
}

.stat-block .desc {
    font-size: .88rem;
    color: var(--text-secondary);
    margin-top: 8px;
}

/* === About Section === */
.about {
    padding: 80px 0;
    background: var(--white);
}

.about .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-content h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.4;
}

.about-content h2 .accent {
    color: var(--primary);
}

.about-content p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.9;
}

.about-features {
    margin-top: 28px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.about-feature {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.about-feature .icon {
    width: 40px;
    height: 40px;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.about-feature .icon svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
}

.about-feature .text .title {
    font-size: .95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.about-feature .text .desc {
    font-size: .82rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

.about-visual {
    position: relative;
}

.about-img-box {
    background: linear-gradient(135deg, var(--bg-light), #dbeafe);
    border-radius: var(--radius-lg);
    padding: 60px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.about-img-box::before {
    content: '';
    position: absolute;
    top: -50%; right: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(26,92,168,.06) 0%, transparent 50%);
}

.about-img-box .big-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: var(--white);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    position: relative;
}

.about-img-box .big-icon svg {
    width: 40px;
    height: 40px;
    color: var(--primary);
}

.about-img-box h3 {
    font-size: 1.3rem;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.about-img-box p {
    color: var(--text-secondary);
    font-size: .9rem;
}

.about-img-box .tag-row {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 24px;
}

.about-img-box .tag-row span {
    padding: 6px 16px;
    background: var(--white);
    border-radius: 20px;
    font-size: .8rem;
    font-weight: 500;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

/* === Services Section === */
.services {
    padding: 80px 0;
    background: var(--bg-section);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px 30px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 4px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card .icon-wrap {
    width: 64px;
    height: 64px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: var(--transition);
}

.service-card:hover .icon-wrap {
    background: var(--primary);
}

.service-card .icon-wrap svg {
    width: 32px;
    height: 32px;
    color: var(--primary);
    transition: var(--transition);
}

.service-card:hover .icon-wrap svg {
    color: var(--white);
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.service-card p {
    font-size: .92rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.8;
}

.service-card .tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.service-card .tag-list li {
    font-size: .78rem;
    padding: 4px 12px;
    background: var(--bg-light);
    color: var(--primary);
    border-radius: 20px;
    font-weight: 500;
}

.service-card .card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 20px;
    font-size: .88rem;
    font-weight: 600;
    color: var(--primary);
}

.service-card .card-link svg {
    width: 16px;
    height: 16px;
    transition: var(--transition);
}

.service-card:hover .card-link svg {
    transform: translateX(4px);
}

/* === Qualifications Section === */
.qualifications {
    padding: 80px 0;
    background: var(--white);
}

.qual-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.qual-item {
    text-align: center;
    padding: 36px 20px;
    background: var(--bg-section);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.qual-item:hover {
    background: var(--white);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.qual-item .qual-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qual-item .qual-icon svg {
    width: 36px;
    height: 36px;
    color: var(--white);
}

.qual-item h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.qual-item p {
    font-size: .85rem;
    color: var(--text-secondary);
}

/* === Industries Section === */
.industries {
    padding: 80px 0;
    background: var(--bg-section);
}

.industry-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.industry-item {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 24px 20px;
    text-align: center;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.industry-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-blue);
    transform: translateY(-3px);
}

.industry-item .icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    color: var(--primary);
}

.industry-item .icon svg {
    width: 100%;
    height: 100%;
}

.industry-item h4 {
    font-size: .95rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* === Why Choose Us === */
.why-us {
    padding: 80px 0;
    background: var(--white);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.why-card {
    display: flex;
    gap: 20px;
    padding: 28px;
    background: var(--bg-section);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.why-card:hover {
    background: var(--white);
    box-shadow: var(--shadow-md);
}

.why-card .num {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 800;
}

.why-card .content h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.why-card .content p {
    font-size: .9rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* === CTA Section === */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='1' opacity='0.05'%3E%3Cpath d='M30 0v60M0 30h60'/%3E%3Ccircle cx='30' cy='30' r='15'/%3E%3C/g%3E%3C/svg%3E");
}

.cta-section .container {
    position: relative;
    z-index: 2;
}

.cta-section h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.cta-section p {
    font-size: 1.1rem;
    color: rgba(255,255,255,.85);
    margin-bottom: 32px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-section .btn-primary {
    background: var(--white);
    color: var(--primary);
}

.cta-section .btn-outline {
    border-color: rgba(255,255,255,.5);
}

/* === Page Banner (sub pages) === */
.page-banner {
    padding: 140px 0 60px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='1' opacity='0.04'%3E%3Cpath d='M30 0v60M0 30h60'/%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/svg%3E");
}

.page-banner .container {
    position: relative;
    z-index: 2;
}

.page-banner h1 {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.page-banner p {
    font-size: 1.05rem;
    color: rgba(255,255,255,.8);
}

.breadcrumb {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    font-size: .85rem;
    color: rgba(255,255,255,.6);
}

.breadcrumb a:hover { color: var(--white); }

.breadcrumb .sep {
    opacity: .5;
}

/* === Services Detail (services.html) === */
.services-detail {
    padding: 80px 0;
    background: var(--white);
}

.service-block {
    margin-bottom: 64px;
}

.service-block:last-child { margin-bottom: 0; }

.service-block-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--bg-light);
}

.service-block-header .block-num {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    flex-shrink: 0;
}

.service-block-header .block-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.service-block-header .block-info p {
    color: var(--text-secondary);
    font-size: .92rem;
    margin-top: 4px;
}

.service-items-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-item-card {
    background: var(--bg-section);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.service-item-card:hover {
    background: var(--white);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.service-item-card .item-icon {
    width: 44px;
    height: 44px;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.service-item-card .item-icon svg {
    width: 22px;
    height: 22px;
    color: var(--primary);
}

.service-item-card h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.service-item-card p {
    font-size: .88rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.service-item-card ul {
    margin-top: 12px;
}

.service-item-card ul li {
    font-size: .82rem;
    color: var(--text-secondary);
    padding: 4px 0 4px 18px;
    position: relative;
}

.service-item-card ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
}

/* === News Page === */
.news-page {
    padding: 80px 0;
    background: var(--white);
}

.news-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 32px;
    align-items: start;
}

.news-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    min-height: 300px;
}

.news-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}

.news-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
    border-color: var(--primary-light);
}

.news-cover {
    width: 100%;
    height: 0;
    padding-bottom: 52.4%;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
}

.news-cover-noimg {
    background: linear-gradient(135deg, var(--bg-light), var(--border));
}

.news-cover img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.news-card:hover .news-cover img {
    transform: scale(1.05);
}

.news-date-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(26, 92, 168, .92);
    color: var(--white);
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    font-size: .75rem;
    font-weight: 600;
    line-height: 1;
    z-index: 2;
}

.news-content {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-content .news-tag {
    display: inline-block;
    align-self: flex-start;
    font-size: .72rem;
    font-weight: 600;
    padding: 3px 10px;
    background: var(--bg-light);
    color: var(--primary);
    border-radius: 20px;
    margin-bottom: 10px;
}

.news-content h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.45;
    transition: var(--transition);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card:hover .news-content h3 {
    color: var(--primary);
}

.news-content h3 a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.news-content h3 a:hover {
    color: var(--primary);
}

.news-content p {
    font-size: .85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 14px;
    font-size: .78rem;
    color: var(--text-muted);
}

.news-read-more {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.news-read-more::after {
    content: '→';
    transition: transform .2s ease;
}

.news-read-more:hover {
    color: var(--primary-dark);
}

.news-read-more:hover::after {
    transform: translateX(3px);
}

/* 加载动画 */
.news-loading {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
    grid-column: 1 / -1;
}
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin .8s linear infinite;
    margin: 0 auto 16px;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 加载更多 */
.load-more-wrap {
    text-align: center;
    padding: 8px 0 24px;
    grid-column: 1 / -1;
}
.load-more-btn {
    padding: 10px 40px;
    font-size: .9rem;
    cursor: pointer;
}

/* 空状态 */
.news-empty {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-secondary);
    grid-column: 1 / -1;
    background: var(--bg-section);
    border-radius: var(--radius-lg);
    border: 1px dashed var(--border);
}

/* 热门文章列表链接 */
.hot-news-list li a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}
.hot-news-list li a:hover {
    color: var(--primary);
}
.loading-item {
    color: var(--text-muted);
    font-size: .875rem;
    padding: 8px 0;
}

.news-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-card {
    background: var(--bg-section);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--border);
}

.sidebar-card h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--bg-light);
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-card h4 svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
}

.public-qr-card img {
    width: 132px;
    height: 132px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin: 0 auto 12px;
    display: block;
    border: 1px solid var(--border);
}

.public-qr-card p {
    font-size: .8rem;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.5;
    margin-bottom: 0;
}

.hot-news-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.hot-news-list li:last-child { border-bottom: none; }

.hot-news-list .rank {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    background: var(--bg-light);
    color: var(--primary);
    border-radius: var(--radius-sm);
    font-size: .75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hot-news-list .rank.top {
    background: var(--primary);
    color: var(--white);
}

.hot-news-list .title {
    font-size: .85rem;
    color: var(--text-primary);
    line-height: 1.6;
    cursor: pointer;
    transition: var(--transition);
}

.hot-news-list .title:hover {
    color: var(--primary);
}

.contact-quick-card {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
}

.contact-quick-card h4 {
    color: var(--white);
    border-bottom: none;
    justify-content: center;
}

.contact-quick-card p {
    font-size: .85rem;
    color: rgba(255,255,255,.8);
    margin-bottom: 16px;
}

.contact-quick-card .qr-code {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    cursor: pointer;
}

/* === Contact Page === */
.contact-page {
    padding: 80px 0;
    background: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-info-card {
    display: flex;
    gap: 20px;
    padding: 28px;
    background: var(--bg-section);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.contact-info-card:hover {
    background: var(--white);
    box-shadow: var(--shadow-md);
}

.contact-info-card .icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-info-card .icon svg {
    width: 24px;
    height: 24px;
    color: var(--white);
}

.contact-info-card .info h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.contact-info-card .info p {
    font-size: .92rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.contact-info-card .info .highlight-text {
    color: var(--primary);
    font-weight: 600;
    font-size: 1.05rem;
}

.contact-form-wrap {
    background: var(--bg-section);
    border-radius: var(--radius-lg);
    padding: 40px;
    border: 1px solid var(--border);
}

.contact-form-wrap h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.contact-form-wrap .form-desc {
    color: var(--text-secondary);
    font-size: .9rem;
    margin-bottom: 28px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: .88rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.form-group label .required {
    color: #ef4444;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: .92rem;
    font-family: inherit;
    background: var(--white);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26,92,168,.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-submit {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.form-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-blue);
}

/* === Map Section === */
.map-section {
    padding: 0 0 80px;
}

.map-section .container {
    padding: 0;
}

.map-box {
    background: var(--bg-section);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 60px;
    text-align: center;
}

.map-box .map-placeholder {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, var(--bg-light), #dbeafe);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
}

.map-box .map-placeholder svg {
    width: 48px;
    height: 48px;
    color: var(--primary);
    opacity: .6;
}

.map-box .map-placeholder p {
    color: var(--text-secondary);
    font-size: .92rem;
}

/* === Footer === */
.footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,.7);
    padding: 64px 0 0;
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,.1);
}

.footer-brand .logo {
    margin-bottom: 20px;
}

.footer-brand .logo-text .name {
    color: var(--white);
}

.footer-brand .logo-text .sub {
    color: rgba(255,255,255,.5);
}

.footer-brand p {
    font-size: .88rem;
    line-height: 1.8;
    color: rgba(255,255,255,.6);
    margin-bottom: 20px;
}

.footer-brand .footer-contact {
    font-size: .85rem;
}

.footer-brand .footer-contact p {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-brand .footer-contact svg {
    width: 16px;
    height: 16px;
    opacity: .6;
}

.footer-col h5 {
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    font-size: .88rem;
    color: rgba(255,255,255,.6);
}

.footer-col ul li a:hover {
    color: var(--white);
    padding-left: 4px;
}

.footer-bottom {
    padding: 20px 0;
    text-align: center;
    font-size: .82rem;
    color: rgba(255,255,255,.4);
}

.footer-bottom a {
    color: rgba(255,255,255,.5);
}

.footer-bottom a:hover {
    color: var(--white);
}

/* === Back to Top === */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    border: none;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-4px);
}

.back-to-top svg {
    width: 22px;
    height: 22px;
}

/* === Animations === */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .6s ease, transform .6s ease;
}

.fade-in-up.animated {
    opacity: 1;
    transform: translateY(0);
}

/* === Responsive === */
@media (max-width: 1024px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content h1 { font-size: 2.2rem; }
    .hero-content .tagline { margin: 0 auto 36px; }
    .hero-buttons { justify-content: center; }
    .hero-visual { flex: 0 0 auto; width: 100%; max-width: 420px; }

    .about .container { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .qual-grid { grid-template-columns: repeat(2, 1fr); }
    .industry-grid { grid-template-columns: repeat(3, 1fr); }
    .service-items-grid { grid-template-columns: repeat(2, 1fr); }
    .news-layout { grid-template-columns: 1fr; }
    .news-list { grid-template-columns: repeat(2, 1fr); }
    .news-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    .contact-quick-card { grid-column: 1 / -1; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-main { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .header-top { display: none; }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 80px 24px 24px;
        gap: 8px;
        box-shadow: var(--shadow-lg);
        transition: right .3s ease;
        z-index: 999;
    }

    .nav-menu.active { right: 0; }

    .nav-menu > li {
        width: 100%;
    }

    .nav-menu > li > a {
        display: block;
        padding: 12px 16px;
        border-radius: var(--radius-sm);
    }

    .nav-cta { margin-left: 0; width: 100%; }
    .nav-cta a { width: 100%; justify-content: center; }

    .nav-toggle { display: flex; z-index: 1001; }
    .nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .nav-toggle.active span:nth-child(2) { opacity: 0; }
    .nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); }

    .hero { min-height: auto; padding: 100px 0 60px; }
    .hero-content h1 { font-size: 1.8rem; }
    .hero-content .tagline { font-size: 1rem; }
    .hero-card { padding: 24px; }
    .hero-card .stat-grid { gap: 12px; }
    .hero-card .stat-num { font-size: 1.6rem; }

    .stats-bar .container { grid-template-columns: repeat(2, 1fr); }
    .stat-block { border-bottom: 1px solid var(--border); }
    .stat-block:nth-child(odd) { border-right: 1px solid var(--border); }
    .stat-block:nth-child(even) { border-right: none; }

    .about-features { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr; }
    .qual-grid { grid-template-columns: 1fr 1fr; }
    .industry-grid { grid-template-columns: repeat(2, 1fr); }
    .why-grid { grid-template-columns: 1fr; }
    .service-items-grid { grid-template-columns: 1fr; }

    .section-title h2 { font-size: 1.5rem; }
    .cta-section h2 { font-size: 1.6rem; }

    .news-list { grid-template-columns: 1fr; }
    .news-card .news-cover { padding-bottom: 56%; }
    .news-sidebar { grid-template-columns: 1fr; }

    .form-row { grid-template-columns: 1fr; }
    .footer-main { grid-template-columns: 1fr; gap: 32px; }

    .back-to-top { bottom: 20px; right: 20px; }
}

/* === QR Code Popup === */
.qr-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity .3s ease;
}

.qr-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.qr-modal {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px;
    max-width: 360px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,.3);
    transform: translateY(20px) scale(.96);
    transition: transform .3s ease;
    position: relative;
}

.qr-modal-overlay.active .qr-modal {
    transform: translateY(0) scale(1);
}

.qr-modal .close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-section);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition);
}

.qr-modal .close-btn:hover {
    background: var(--primary);
    color: var(--white);
}

.qr-modal .close-btn svg {
    width: 18px;
    height: 18px;
}

.qr-modal h3 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.qr-modal p {
    font-size: .9rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.qr-modal img {
    width: 220px;
    height: 220px;
    object-fit: contain;
    margin: 0 auto 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    padding: 8px;
    background: var(--white);
}

.qr-modal .note {
    font-size: .85rem;
    color: var(--text-light);
}

.wechat-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    color: inherit;
}

.wechat-btn svg {
    width: 18px;
    height: 18px;
}

/* === AI Chat Widget === */
.ai-chat-widget {
    position: fixed;
    bottom: 96px;
    right: 32px;
    z-index: 998;
}

.ai-chat-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 24px rgba(26,92,168,.35);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    position: relative;
}

.ai-chat-button:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 10px 32px rgba(26,92,168,.45);
}

.ai-chat-button svg {
    width: 28px;
    height: 28px;
}

.ai-chat-button .pulse {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 16px;
    height: 16px;
    background: #10b981;
    border-radius: 50%;
    border: 2px solid var(--white);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(16,185,129,.7); }
    70% { box-shadow: 0 0 0 8px rgba(16,185,129,0); }
    100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}

.ai-chat-tooltip {
    position: absolute;
    right: 72px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--white);
    color: var(--text-primary);
    padding: 8px 14px;
    border-radius: var(--radius-md);
    font-size: .85rem;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.ai-chat-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 6px 0 6px 6px;
    border-style: solid;
    border-color: transparent transparent transparent var(--white);
}

.ai-chat-widget:hover .ai-chat-tooltip {
    opacity: 1;
    visibility: visible;
}

.ai-chat-window {
    position: fixed;
    bottom: 170px;
    right: 32px;
    width: 380px;
    max-width: calc(100vw - 40px);
    max-height: 560px;
    height: 560px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0,0,0,.2);
    display: flex;
    flex-direction: column;
    z-index: 997;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(.95);
    transition: all .3s ease;
    overflow: hidden;
}

.ai-chat-window.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.ai-chat-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: var(--white);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ai-chat-header .ai-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ai-chat-header .ai-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-chat-header .ai-avatar svg {
    width: 22px;
    height: 22px;
}

.ai-chat-header .ai-title h4 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.ai-chat-header .ai-title span {
    font-size: .78rem;
    opacity: .85;
}

.ai-chat-header .ai-close {
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.ai-chat-header .ai-close:hover {
    background: rgba(255,255,255,.15);
}

.ai-chat-header .ai-close svg {
    width: 20px;
    height: 20px;
}

.ai-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ai-message {
    display: flex;
    gap: 10px;
    max-width: 85%;
}

.ai-message.ai {
    align-self: flex-start;
}

.ai-message.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.ai-message .avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-message.ai .avatar {
    background: var(--primary);
    color: var(--white);
}

.ai-message.user .avatar {
    background: var(--bg-section);
    color: var(--primary);
    border: 1px solid var(--border);
}

.ai-message .avatar svg {
    width: 18px;
    height: 18px;
}

.ai-message .bubble {
    padding: 12px 16px;
    border-radius: 16px;
    font-size: .9rem;
    line-height: 1.6;
    word-break: break-word;
}

.ai-message.ai .bubble {
    background: var(--white);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-bottom-left-radius: 4px;
}

.ai-message.user .bubble {
    background: var(--primary);
    color: var(--white);
    border-bottom-right-radius: 4px;
}

.ai-message .bubble p {
    margin-bottom: 8px;
}

.ai-message .bubble p:last-child {
    margin-bottom: 0;
}

.ai-message .bubble ul {
    list-style: disc;
    padding-left: 18px;
    margin: 8px 0;
}

.ai-message .bubble li {
    margin-bottom: 4px;
}

.ai-quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 20px 16px;
    background: #f8fafc;
    border-top: 1px solid var(--border);
}

.ai-quick-replies button {
    padding: 8px 14px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: .82rem;
    color: var(--primary);
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.ai-quick-replies button:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.ai-chat-input {
    padding: 14px 16px;
    background: var(--white);
    border-top: 1px solid var(--border);
    display: flex;
    gap: 10px;
}

.ai-chat-input input {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid var(--border);
    border-radius: 24px;
    font-size: .9rem;
    font-family: inherit;
    outline: none;
    transition: var(--transition);
}

.ai-chat-input input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26,92,168,.1);
}

.ai-chat-input button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}

.ai-chat-input button:hover {
    background: var(--primary-dark);
}

.ai-chat-input button svg {
    width: 18px;
    height: 18px;
}

.ai-typing {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
    background: var(--white);
    border-radius: 16px;
    border: 1px solid var(--border);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.ai-typing span {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out both;
}

.ai-typing span:nth-child(1) { animation-delay: -.32s; }
.ai-typing span:nth-child(2) { animation-delay: -.16s; }

@keyframes typing {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* QR code on contact card */
.contact-info-card .qr-code {
    width: 140px;
    height: 140px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    padding: 6px;
    background: var(--white);
    margin-top: 8px;
}

.contact-info-card .qr-tap {
    font-size: .82rem;
    color: var(--primary);
    margin-top: 8px;
    cursor: pointer;
}

.contact-quick-card .phone {
    cursor: pointer;
    transition: var(--transition);
}

.contact-quick-card .phone:hover {
    opacity: .85;
}

@media (max-width: 768px) {
    .ai-chat-widget {
        bottom: 84px;
        right: 16px;
    }

    .ai-chat-window {
        right: 16px;
        left: 16px;
        width: auto;
        bottom: 150px;
        max-height: 460px;
        height: 460px;
    }

    .ai-chat-button {
        width: 52px;
        height: 52px;
    }

    .ai-chat-button svg {
        width: 24px;
        height: 24px;
    }

    .ai-chat-tooltip {
        display: none;
    }

    .qr-modal {
        padding: 24px;
    }

    .qr-modal img {
        width: 180px;
        height: 180px;
    }

    .back-to-top {
        bottom: 90px;
        right: 16px;
    }
}

@media (max-width: 480px) {
    .ai-chat-window {
        bottom: 140px;
        max-height: 420px;
        height: 420px;
    }

    .ai-chat-messages {
        padding: 14px;
    }

    .ai-message .bubble {
        font-size: .85rem;
        padding: 10px 12px;
    }

    .contact-info-card .qr-code {
        width: 120px;
        height: 120px;
    }
}
