/* ============================================================
   YESWAY 源之微自动化 · 网站样式
   ============================================================ */
:root {
    --primary: #0056b3;
    --primary-dark: #004494;
    --accent: #00d2ff;
    --accent-dark: #00a8cc;
    --dark: #0f172a;
    --dark-soft: #1e293b;
    --text: #334155;
    --muted: #64748b;
    --light: #f8fafc;
    --border: #e2e8f0;
    --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 20px 45px rgba(15, 23, 42, 0.14);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', Roboto, sans-serif;
    color: var(--text);
    line-height: 1.7;
    background: var(--light);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ---------- Navigation ---------- */
nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: background 0.3s;
}
.nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 5%;
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo img { height: 40px; width: auto; object-fit: contain; }
.logo-text { color: #fff; font-weight: 600; font-size: 1rem; letter-spacing: 0.5px; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a {
    color: #cbd5e1;
    font-size: 0.95rem;
    padding: 26px 0;
    position: relative;
    transition: color 0.25s;
}
.nav-links a::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 3px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform 0.25s;
}
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.nav-links a.active::after { transform: scaleX(1); }
.nav-toggle { display: none; background: none; border: 0; color: #fff; font-size: 1.6rem; cursor: pointer; }

/* ---------- Hero (animated glider over mountains) ---------- */
.hero {
    position: relative;
    margin-top: 76px;
    height: 560px;
    overflow: hidden;
    background: #0f172a url('images/hero-bg.jpg') center/cover no-repeat;
}
.hero-glider {
    position: absolute;
    top: 6%;
    left: 0;
    width: clamp(200px, 26vw, 420px);
    height: auto;
    z-index: 1;
    filter: drop-shadow(6px 12px 14px rgba(0,0,0,0.28));
    animation: glide 22s ease-in-out infinite alternate;
}
@keyframes glide {
    0%   { transform: translate(-8%, 18px) rotate(-2deg); }
    50%  { transform: translate(120%, -10px) rotate(1deg); }
    100% { transform: translate(300%, 8px) rotate(-1deg); }
}
.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15,23,42,0.12) 0%, rgba(15,23,42,0.02) 45%, rgba(15,23,42,0.45) 100%);
    pointer-events: none;
    z-index: 2;
}
.hero-content {
    position: absolute;
    right: 6%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    max-width: 620px;
    text-align: right;
    color: #fff;
}
.hero-content h1 {
    font-size: clamp(1.75rem, 3.5vw, 3.1rem);
    line-height: 1.3;
    letter-spacing: 2px;
    text-shadow: 0 4px 18px rgba(0,0,0,0.55);
    margin-bottom: 0.6rem;
    white-space: nowrap;
}
.hero-slogan {
    font-size: clamp(1.15rem, 2.2vw, 1.75rem);
    letter-spacing: 3px;
    color: #fff;
    font-weight: 600;
    margin-bottom: 1rem;
    white-space: nowrap;
    text-shadow: 0 3px 14px rgba(0,0,0,0.55);
    position: relative;
    padding-bottom: 0.9rem;
}
.hero-slogan::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    width: 72px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}
.hero-content .hero-en {
    font-size: 0.9rem;
    letter-spacing: 2px;
    color: #e2e8f0;
    margin-bottom: 0.9rem;
}
.hero-content .hero-desc {
    font-size: 1rem;
    color: #f1f5f9;
    line-height: 1.9;
    margin-bottom: 1.8rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.hero-cta { z-index: 3; }
.hero-cta .btn { box-shadow: 0 8px 24px rgba(0, 210, 255, 0.35); }

@media (max-width: 900px) {
    .hero { height: 440px; }
    .hero-content { right: 6%; left: 6%; max-width: none; }
    .hero-glider { width: 200px; top: 4%; }
    .hero-content h1 { font-size: clamp(1.35rem, 5.6vw, 2rem); letter-spacing: 1px; }
    .hero-slogan { font-size: clamp(1rem, 4vw, 1.35rem); letter-spacing: 2px; }
    .hero-content .hero-desc { font-size: 0.9rem; }
}
@media (max-width: 420px) {
    .hero-content h1, .hero-slogan { white-space: normal; }
}

/* ---------- Inner page banner ---------- */
.page-banner {
    position: relative;
    margin-top: 76px;
    height: 320px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}
.page-banner img {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center;
}
.page-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15,23,42,0.88), rgba(0,86,179,0.65));
}
.page-banner-content { position: relative; z-index: 2; padding: 0 20px; }
.page-banner h1 { font-size: 2.6rem; letter-spacing: 2px; margin-bottom: 0.6rem; }
.page-banner p { color: #e2e8f0; font-size: 1.05rem; letter-spacing: 1px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 13px 32px;
    background: var(--accent);
    color: var(--dark);
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}
.btn:hover {
    background: #fff;
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(0, 210, 255, 0.3);
}
.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { background: var(--primary); color: #fff; box-shadow: 0 12px 24px rgba(0,86,179,0.25); }

/* ---------- Sections ---------- */
section { padding: 5rem 10%; }
.section-title {
    text-align: center;
    font-size: 2.2rem;
    color: var(--dark);
    margin-bottom: 0.8rem;
    letter-spacing: 1px;
}
.section-sub {
    text-align: center;
    color: var(--muted);
    margin-bottom: 3rem;
    font-size: 1rem;
}
.section-title::after {
    content: '';
    display: block;
    width: 60px; height: 4px;
    background: var(--accent);
    margin: 14px auto 0;
    border-radius: 2px;
}

/* ---------- Stats ---------- */
.stats { background: #fff; padding: 3rem 10%; }
.stats-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
}
.stat-item h2 { color: var(--primary); font-size: 2.8rem; line-height: 1.2; }
.stat-item p { color: var(--muted); margin-top: 0.4rem; }

/* ---------- Cards ---------- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}
.card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}
.card-img {
    height: 220px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
}
.card-img img {
    max-height: 100%;
    width: auto;
    object-fit: contain;
    transition: transform 0.4s;
}
.card:hover .card-img img { transform: scale(1.06); }
.card-body { padding: 1.8rem; }
.card-body h3 { color: var(--dark); font-size: 1.25rem; margin-bottom: 0.7rem; }
.card-body p { color: var(--muted); font-size: 0.95rem; }
.tag {
    display: inline-block;
    padding: 4px 11px;
    background: #e0f2fe;
    color: var(--primary);
    font-size: 0.78rem;
    border-radius: 20px;
    margin: 0 5px 8px 0;
}

/* ---------- Split section ---------- */
.split {
    display: flex;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}
.split > div { flex: 1 1 420px; }
.split h2 { font-size: 2rem; color: var(--dark); margin-bottom: 1.2rem; }
.split p { color: var(--muted); margin-bottom: 1rem; }
.split img {
    width: 100%;
    border-radius: 18px;
    box-shadow: var(--shadow-lg);
    object-fit: cover;
    min-height: 320px;
}
.bg-soft { background: #f1f5f9; }
.bg-white { background: #fff; }

/* ---------- Feature strip ---------- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; margin-top: 3rem; }
.feature {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.4rem;
    background: #fff;
    border-radius: 12px;
    border: 1px solid var(--border);
}
.feature .num {
    flex: 0 0 42px; height: 42px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
}
.feature h4 { color: var(--dark); margin-bottom: 0.3rem; }
.feature p { font-size: 0.9rem; color: var(--muted); }

/* ---------- About page ---------- */
.about-text p { margin-bottom: 1.2rem; color: var(--muted); }
.about-text h2 { color: var(--dark); font-size: 2rem; margin-bottom: 1.4rem; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 2rem; }
.value-card {
    background: #fff;
    padding: 2rem 1.5rem;
    text-align: center;
    border-radius: 14px;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--accent);
}
.value-card h3 { color: var(--primary); margin-bottom: 0.6rem; font-size: 1.2rem; }
.value-card p { color: var(--muted); font-size: 0.93rem; }
.info-panel {
    background: #fff;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
}
.info-panel h2 { color: var(--dark); margin-bottom: 1.4rem; font-size: 1.8rem; }
.info-list li { padding: 0.75rem 0; border-bottom: 1px dashed var(--border); }
.info-list li:last-child { border-bottom: 0; }
.info-list strong { color: var(--dark); }

/* ---------- Contact page ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    max-width: 1100px;
    margin: 0 auto;
}
.info-card, .form-card {
    background: #fff;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
}
.info-item { margin-bottom: 1.8rem; }
.info-item:last-child { margin-bottom: 0; }
.info-item h4 { color: var(--primary); margin-bottom: 0.35rem; font-size: 1rem; }
.info-item p { color: var(--muted); }
.info-item a { color: var(--primary); }
form { display: flex; flex-direction: column; gap: 1rem; }
form label { color: var(--dark); font-size: 0.9rem; font-weight: 600; }
input, textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus, textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 210, 255, 0.15);
}
button[type="submit"] { margin-top: 0.5rem; }

/* ---------- Footer ---------- */
footer {
    background: var(--dark);
    color: #94a3b8;
    padding: 3.5rem 10% 2rem;
    text-align: center;
}
.footer-logo { height: 44px; margin: 0 auto 1rem; }
footer p { margin-bottom: 0.4rem; font-size: 0.92rem; }
footer a { color: var(--accent); }
.footer-bottom {
    margin-top: 1.8rem;
    padding-top: 1.4rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.85rem;
}

/* ---------- Hero shimmer overlay ---------- */
.hero-shimmer {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 25%, rgba(255,255,255,0.16) 48%, transparent 72%);
    background-size: 220% 100%;
    animation: shimmer 9s ease-in-out infinite;
    pointer-events: none;
}
@keyframes shimmer {
    0% { background-position: 180% 0; }
    100% { background-position: -80% 0; }
}

/* ---------- Featured flow meter ---------- */
.featured {
    background: linear-gradient(135deg, #0f172a 0%, #0d2137 55%, #0a2b45 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.featured::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(0,210,255,0.05) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(0,210,255,0.05) 1px, transparent 1px);
    background-size: 46px 46px;
    pointer-events: none;
}
.featured > * { position: relative; z-index: 1; }
.featured .section-title { color: #fff; }
.featured .section-sub { color: #94a3b8; }
.badge-new {
    display: inline-block;
    background: linear-gradient(135deg, #00d2ff, #0077b6);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 50px;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}
.flow-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto 3rem;
}
.flow-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(0,210,255,0.25);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: transform 0.3s, border-color 0.3s, background 0.3s;
}
.flow-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
    background: rgba(255,255,255,0.08);
}
.flow-card img {
    width: 130px;
    height: 130px;
    object-fit: contain;
    flex: 0 0 130px;
    background: #fff;
    border-radius: 10px;
    padding: 8px;
}
.flow-card h3 { color: #fff; font-size: 1.15rem; margin-bottom: 0.5rem; }
.flow-card p { color: #cbd5e1; font-size: 0.9rem; margin: 0; }
.flow-card .tag { background: rgba(0,210,255,0.15); color: #7dd3fc; margin-top: 0.6rem; }

.app-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}
.app-card {
    position: relative;
    height: 300px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(0,0,0,0.35);
}
.app-card img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}
.app-card:hover img { transform: scale(1.08); }
.app-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15,23,42,0.05) 30%, rgba(15,23,42,0.92) 100%);
}
.app-card-content {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    z-index: 2;
    padding: 1.8rem;
}
.app-card-content h3 { color: #fff; font-size: 1.3rem; margin-bottom: 0.4rem; }
.app-card-content p { color: #cbd5e1; font-size: 0.9rem; margin: 0; }

@media (max-width: 760px) {
    .flow-grid, .app-grid { grid-template-columns: 1fr; }
    .flow-card { flex-direction: column; text-align: center; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .nav-links {
        position: absolute;
        top: 76px; left: 0; right: 0;
        background: var(--dark);
        flex-direction: column;
        gap: 0;
        padding: 0 5%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s;
    }
    .nav-links.open { max-height: 400px; padding: 1rem 5%; }
    .nav-links a { padding: 12px 0; }
    .nav-toggle { display: block; }
    section { padding: 3.5rem 6%; }
    .page-banner { height: 260px; }
    .page-banner h1 { font-size: 2rem; }
    .stats-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .values { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .split { gap: 2rem; }
    .hero-cta { left: 6%; bottom: 8%; }
}
@media (max-width: 480px) {
    .hero-cta .btn { padding: 10px 22px; font-size: 0.85rem; }
    .section-title { font-size: 1.7rem; }
    .card-img { height: 180px; }
}
