/* ==========================================================
   成都百汇多供应链管理有限公司 - 企业官网样式表
   ========================================================== */

/* CSS Custom Properties */
:root {
    --primary: #b22222;
    --primary-dark: #8b1a1a;
    --primary-light: #d43d3d;
    --secondary: #1a1a2e;
    --secondary-light: #2d2d4e;
    --gold: #c9a44a;
    --gold-light: #e0c06a;
    --white: #ffffff;
    --off-white: #f9f7f4;
    --light-gray: #f0eeeb;
    --mid-gray: #888;
    --text: #333333;
    --text-light: #666666;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 40px rgba(0,0,0,0.15);
    --radius: 12px;
    --radius-sm: 6px;
    --transition: 0.3s ease;

    --font: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

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

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

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

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

ul { list-style: none; }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ================= Section Titles ================= */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary);
    text-align: center;
    margin-bottom: 12px;
    position: relative;
    padding-bottom: 16px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.section-desc {
    text-align: center;
    color: var(--text-light);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto 48px;
}

/* ================= Navigation ================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    transition: background var(--transition), box-shadow var(--transition);
    padding: 16px 0;
}

.navbar.scrolled {
    background: var(--white);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    padding: 8px 0;
}

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

.nav-logo {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: 1px;
    transition: color var(--transition);
}

.nav-logo span {
    color: var(--gold);
    font-weight: 600;
}

.navbar.scrolled .nav-logo {
    color: var(--secondary);
}

.nav-menu {
    display: flex;
    gap: 8px;
}

.nav-link {
    color: rgba(255,255,255,0.85);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color var(--transition), background var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--white);
    background: rgba(255,255,255,0.12);
}

.navbar.scrolled .nav-link {
    color: var(--text);
}

.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link.active {
    color: var(--primary);
    background: rgba(178,34,34,0.06);
}

.nav-cta {
    display: none;
    background: var(--primary);
    color: var(--white);
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background var(--transition), transform var(--transition);
    white-space: nowrap;
}

.nav-cta:hover {
    background: var(--primary-dark);
    transform: scale(1.03);
}

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

.nav-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}

.navbar.scrolled .nav-toggle span {
    background: var(--secondary);
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ================= Hero Section ================= */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(26,26,46,0.85) 0%,
        rgba(178,34,34,0.65) 50%,
        rgba(26,26,46,0.8) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 800px;
}

.hero-title {
    font-size: clamp(1.8rem, 5vw, 3.2rem);
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: rgba(255,255,255,0.85);
    margin-bottom: 36px;
    letter-spacing: 1px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ================= Buttons ================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 36px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    border: 2px solid transparent;
    letter-spacing: 0.5px;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(178,34,34,0.35);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--secondary);
    transform: translateY(-2px);
}

.btn-submit {
    width: 100%;
    padding: 16px;
    font-size: 1.05rem;
}

/* ================= Stats Section ================= */
.stats {
    background: var(--secondary);
    padding: 60px 0;
}

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

.stat-item {
    text-align: center;
    color: var(--white);
    position: relative;
}

.stat-number,
.stat-text {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--gold);
    display: inline;
}

.stat-suffix {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--gold-light);
    margin-left: 2px;
}

.stat-label {
    margin-top: 8px;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.7);
}

/* ================= Timeline ================= */
.timeline {
    padding: 80px 0;
    background: var(--off-white);
}

.timeline-track {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary), var(--gold));
    transform: translateX(-50%);
    border-radius: 2px;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 48px;
    position: relative;
}

.timeline-item:last-child { margin-bottom: 0; }

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 8px;
    width: 16px;
    height: 16px;
    background: var(--primary);
    border: 4px solid var(--white);
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 2;
    box-shadow: 0 0 0 3px var(--primary);
}

.timeline-content {
    width: calc(50% - 40px);
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
}

.timeline-content:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: auto;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: auto;
}

.timeline-year {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.timeline-content h3 {
    font-size: 1.15rem;
    color: var(--secondary);
    margin-bottom: 6px;
}

.timeline-content p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* ================= Products ================= */
.products {
    padding: 80px 0;
    background: var(--white);
}

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

.product-card {
    background: var(--off-white);
    border-radius: var(--radius);
    padding: 32px 20px;
    text-align: center;
    cursor: default;
    transition: transform var(--transition), box-shadow var(--transition);
    border: 1px solid transparent;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: var(--gold);
    background: var(--white);
}

.product-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
    line-height: 1;
}

.product-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 10px;
}

.product-card p {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.5;
}

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

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

.service-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
}

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

.service-img {
    height: 200px;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.service-card:hover .service-img {
    transform: scale(1.08);
}

.service-body {
    padding: 20px;
}

.service-body h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 8px;
}

.service-body p {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* ================= Cases / Gallery ================= */
.cases {
    padding: 80px 0;
    background: var(--white);
}

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

.case-item {
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    position: relative;
    aspect-ratio: 4 / 3;
}

.case-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.case-item:hover img {
    transform: scale(1.1);
}

.case-item::after {
    content: '+';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 2rem;
    color: var(--white);
    background: rgba(178,34,34,0.8);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    z-index: 2;
}

.case-item:hover::after {
    transform: translate(-50%, -50%) scale(1);
}

/* ================= Vision ================= */
.vision {
    padding: 80px 0;
    background: var(--secondary);
    color: var(--white);
    text-align: center;
}

.vision-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--gold);
}

.vision-content blockquote {
    font-size: 1.4rem;
    font-weight: 600;
    font-style: italic;
    color: var(--gold-light);
    margin-bottom: 28px;
    line-height: 1.5;
    padding: 0 20px;
}

.vision-content p {
    max-width: 700px;
    margin: 0 auto;
    color: rgba(255,255,255,0.8);
    line-height: 1.8;
    font-size: 1rem;
}

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

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: flex-start;
}

.contact-form {
    background: var(--white);
    padding: 36px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--light-gray);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: var(--font);
    transition: border-color var(--transition);
    background: var(--off-white);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    background: var(--white);
}

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

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

.info-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.info-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.info-item strong {
    display: block;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-item a {
    display: block;
    color: var(--primary);
    font-weight: 600;
    font-size: 1.1rem;
    transition: color var(--transition);
}

.info-item a:hover {
    color: var(--primary-dark);
}

.info-item p {
    color: var(--text);
    line-height: 1.5;
}

/* ================= Footer ================= */
.footer {
    background: var(--secondary);
    color: rgba(255,255,255,0.7);
    padding: 32px 0;
    text-align: center;
}

.footer-content p {
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.footer-icp a {
    color: rgba(255,255,255,0.5);
    font-size: 0.8rem;
    transition: color var(--transition);
}

.footer-icp a:hover {
    color: var(--gold);
}

/* ================= Chat Widget ================= */
.chat-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
}

.chat-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(178,34,34,0.4);
    transition: transform var(--transition), box-shadow var(--transition);
    position: relative;
}

.chat-toggle:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 28px rgba(178,34,34,0.5);
}

/* Chat Panel */
.chat-panel {
    position: absolute;
    bottom: 72px;
    right: 0;
    width: 380px;
    max-height: 600px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.chat-widget.open .chat-panel {
    display: flex;
}

.chat-header {
    background: var(--secondary);
    color: var(--white);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-header span {
    font-weight: 700;
    font-size: 1rem;
}

.chat-header small {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
}

.chat-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    max-height: 380px;
    background: #f5f5f5;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Message bubbles */
.message {
    display: flex;
    gap: 8px;
    max-width: 90%;
    animation: msgIn 0.3s ease;
}

@keyframes msgIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

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

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

.msg-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    background: var(--light-gray);
    flex-shrink: 0;
}

.message.user .msg-avatar {
    background: var(--primary);
    color: var(--white);
    font-size: 0.9rem;
}

.msg-bubble {
    background: var(--white);
    padding: 10px 14px;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text);
    max-width: 100%;
    word-break: break-word;
}

.message.user .msg-bubble {
    background: var(--primary);
    color: var(--white);
}

.msg-bubble p {
    margin-bottom: 4px;
}
.msg-bubble p:last-child {
    margin-bottom: 0;
}

/* Markdown styles in chat */
.msg-bubble strong {
    font-weight: 700;
}

.msg-bubble em {
    font-style: italic;
}

.msg-bubble code {
    background: #eee;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.85em;
    font-family: "Courier New", monospace;
}

.message.user .msg-bubble code {
    background: rgba(255,255,255,0.2);
}

.msg-bubble ul {
    margin: 6px 0;
    padding-left: 20px;
    list-style: disc;
}

.msg-bubble li {
    margin-bottom: 2px;
}

.msg-bubble a {
    color: var(--primary);
    text-decoration: underline;
}

.message.user .msg-bubble a {
    color: var(--gold-light);
}

.msg-bubble blockquote {
    border-left: 3px solid var(--primary);
    padding-left: 12px;
    margin: 8px 0;
    color: var(--text-light);
    font-style: italic;
}

.msg-bubble img {
    max-width: 200px;
    border-radius: 8px;
    margin: 6px 0;
    cursor: pointer;
}

.msg-bubble h1,
.msg-bubble h2,
.msg-bubble h3,
.msg-bubble h4 {
    font-size: 1rem;
    margin: 8px 0 4px;
    color: var(--secondary);
}

.message.user .msg-bubble h1,
.message.user .msg-bubble h2,
.message.user .msg-bubble h3,
.message.user .msg-bubble h4 {
    color: var(--white);
}

/* Typing indicator */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: var(--white);
    border-radius: 12px;
    align-self: flex-start;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--mid-gray);
    animation: typingBounce 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40%           { transform: scale(1);   opacity: 1;   }
}

/* Quick replies */
.quick-replies {
    display: flex !important;
    flex-wrap: wrap;
    gap: 6px;
    padding: 4px 0;
}

.quick-btn {
    background: var(--white);
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all var(--transition);
    font-family: var(--font);
}

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

.quick-btn-cta {
    background: var(--primary);
    color: var(--white);
    font-weight: 600;
    border-color: var(--primary);
}

.quick-btn-cta:hover {
    background: #065f46;
    border-color: #065f46;
}

/* Chat Input */
.chat-input-area {
    border-top: 1px solid var(--light-gray);
    padding: 10px 12px;
    background: var(--white);
}

.chat-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.chat-preview-img {
    position: relative;
    width: 64px;
    height: 64px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--light-gray);
}

.chat-preview-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chat-preview-img .preview-remove {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    border: none;
    font-size: 0.7rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: transform var(--transition);
}

.chat-preview-img .preview-remove:hover {
    transform: scale(1.15);
}

.chat-input-row {
    display: flex;
    gap: 8px;
    align-items: flex-end;
}

.chat-input {
    flex: 1;
    border: none;
    resize: none;
    padding: 8px 4px;
    font-size: 0.9rem;
    font-family: var(--font);
    max-height: 100px;
    outline: none;
    line-height: 1.4;
}

.chat-send {
    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;
    flex-shrink: 0;
    transition: background var(--transition), transform var(--transition);
}

.chat-send:hover {
    background: var(--primary-dark);
    transform: scale(1.06);
}

.chat-send:disabled {
    background: var(--mid-gray);
    cursor: not-allowed;
    transform: none;
}

/* ================= Image Modal ================= */
.modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

.modal.open {
    display: flex;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--white);
    font-size: 2.5rem;
    font-weight: 300;
    cursor: pointer;
    transition: color var(--transition);
    line-height: 1;
}

.modal-close:hover {
    color: var(--primary);
}

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

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

/* ================= Responsive - Tablet ================= */
@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cases-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .chat-panel {
        width: 360px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -300px;
        width: 280px;
        height: 100vh;
        background: var(--secondary);
        flex-direction: column;
        padding: 80px 24px 24px;
        gap: 4px;
        transition: right 0.3s ease;
        z-index: 999;
        box-shadow: -4px 0 20px rgba(0,0,0,0.2);
    }

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

    .nav-link {
        color: rgba(255,255,255,0.8) !important;
        padding: 12px 16px;
        font-size: 1.05rem;
        border-radius: var(--radius-sm);
    }

    .nav-link:hover,
    .nav-link.active {
        background: rgba(255,255,255,0.1) !important;
        color: var(--gold) !important;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-cta {
        display: none;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
        margin: 0 auto;
    }

    .cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .timeline-content {
        width: calc(50% - 30px);
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .chat-panel {
        width: calc(100vw - 40px);
        right: 0;
        max-height: 500px;
    }

    .contact-form {
        padding: 24px;
    }
}

/* ================= Responsive - Mobile ================= */
@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr 1fr;
    }

    .cases-grid {
        grid-template-columns: 1fr 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .timeline-content {
        width: calc(100% - 40px);
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 40px;
    }

    .timeline-line {
        left: 20px;
    }

    .timeline-dot {
        left: 20px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 280px;
    }

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

    .stat-number,
    .stat-text {
        font-size: 2rem;
    }
}

/* ================= Accessibility ================= */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* ================= Scrollbar ================= */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: var(--mid-gray);
    border-radius: 2px;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--mid-gray);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #666;
}

/* ================= Form Error States ================= */
.form-group.error input,
.form-group.error textarea {
    border-color: var(--primary);
}

.form-error {
    color: var(--primary);
    font-size: 0.8rem;
    margin-top: 4px;
}

/* ================= Mobile nav overlay ================= */
body.nav-open::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 998;
}

/* ================= Utility ================= */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}