/* ==================== 基础样式 ==================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #7c9a92;
    --primary-dark: #5d7e75;
    --primary-light: #edf3f1;
    --secondary: #c4a35a;
    --accent: #d4a853;
    --danger: #c0706b;
    --text: #3a3a3a;
    --text-secondary: #6b6b6b;
    --text-light: #a0a0a0;
    --bg: #faf8f5;
    --bg-alt: #f2ede7;
    --bg-dark: #3d3d3d;
    --border: #e5ddd4;
    --shadow: 0 2px 12px rgba(120, 100, 80, 0.07);
    --shadow-lg: 0 8px 30px rgba(120, 100, 80, 0.10);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --max-width: 1200px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB',
        'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

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

/* ==================== 导航栏 ==================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
    background: transparent;
}

.header.scrolled {
    background: rgba(250, 248, 245, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow);
    padding: 10px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.logo-icon {
    font-size: 28px;
    color: var(--primary);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.logo-text {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
}

.header.scrolled .logo-text {
    color: var(--text);
}

.nav-list {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-link {
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    transition: var(--transition);
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
    border-radius: 2px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.header.scrolled .nav-link:hover,
.header.scrolled .nav-link.active {
    color: var(--primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

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

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

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ==================== 首页横幅 ==================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(135deg, #5d7e75 0%, #7c9a92 40%, #a8c5bb 70%, #d4c5a0 100%);
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.particles {
    position: absolute;
    inset: 0;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.10);
    border-radius: 50%;
    animation: floatUp linear infinite;
}

@keyframes floatUp {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-10vh) scale(1);
        opacity: 0;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 24px;
    animation: fadeInUp 1s ease;
}

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

.hero-subtitle {
    font-size: 14px;
    letter-spacing: 4px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 16px;
    text-transform: uppercase;
}

.hero-title {
    font-size: clamp(40px, 8vw, 72px);
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 24px;
}

.hero-title .highlight {
    background: linear-gradient(135deg, #f0e6cc, #d4a853);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
}

.hero-desc {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    line-height: 1.8;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(124, 154, 146, 0.35);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 154, 146, 0.45);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.35);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #fff;
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s ease-in-out infinite;
}

.scroll-indicator span {
    display: block;
    width: 24px;
    height: 24px;
    border-right: 2px solid rgba(255, 255, 255, 0.5);
    border-bottom: 2px solid rgba(255, 255, 255, 0.5);
    transform: rotate(45deg);
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* ==================== 通用区块 ==================== */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--primary);
    margin-bottom: 12px;
    text-transform: uppercase;
}

.section-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
}

.section-desc {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ==================== 关于我们 ==================== */
.about {
    background: var(--bg);
}

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

.about-image .image-wrapper {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.placeholder-img svg {
    width: 100%;
    height: auto;
    display: block;
}

.about-content h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text);
}

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

.about-grid-single {
    grid-template-columns: 1fr !important;
    max-width: 900px;
    margin: 0 auto;
}

.about-content-full {
    text-align: center;
}

.about-content-full h3 {
    text-align: center;
}

.about-content-full p {
    text-align: left;
}

.about-industries {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.industry-item {
    aspect-ratio: 1 / 1;
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow);
    border: 2px solid transparent;
}

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

.industry-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.industry-item:hover img {
    transform: scale(1.05);
}

/* ==================== 服务 ==================== */
.services {
    background: var(--bg-alt);
}

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

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

.services-grid-2col {
    grid-template-columns: repeat(2, 1fr);
    max-width: 800px;
    margin: 0 auto;
}

.service-card {
    background: var(--bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid transparent;
    display: flex;
    align-items: stretch;
}

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

.service-card-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 36px 28px;
    text-decoration: none;
    color: inherit;
    width: 100%;
    min-height: 100%;
}

.service-icon {
    font-size: 40px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: var(--primary-light);
    border-radius: 50%;
}

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

.service-card p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ==================== 团队 ==================== */
.team {
    background: var(--bg);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px 40px;
}

.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 20px;
    background: var(--bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid transparent;
    min-height: 100px;
}

.partner-logo:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.partner-logo img {
    max-width: 160px;
    max-height: 70px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(0%);
    opacity: 0.85;
    transition: var(--transition);
}

.partner-logo:hover img {
    opacity: 1;
    filter: grayscale(0%);
}

/* ==================== 案例 ==================== */
.cases {
    background: var(--bg-alt);
}

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

.case-card {
    background: var(--bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.case-image svg {
    width: 100%;
    height: auto;
    display: block;
}

.case-info {
    padding: 24px;
}

.case-tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 12px;
}

.case-info h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.case-info p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ==================== 联系我们 ==================== */
.contact {
    background: var(--bg);
}

.contact-grid {
    display: flex;
    justify-content: center;
    gap: 48px;
    align-items: start;
}

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

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

.contact-icon {
    font-size: 24px;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    border-radius: var(--radius-sm);
}

.contact-item h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.contact-item p {
    font-size: 14px;
    color: var(--text-secondary);
}

.contact-form {
    background: var(--bg);
    padding: 36px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

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

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    background: var(--bg-alt);
    font-family: inherit;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
    background: var(--bg);
}

.form-group textarea {
    resize: vertical;
}

/* ==================== 页脚 ==================== */
.footer {
    background: var(--bg);
    color: var(--text-secondary);
    padding: 60px 0 0;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border);
}

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

.footer-brand p {
    margin-top: 16px;
    font-size: 14px;
    line-height: 1.8;
}

.footer-links h4,
.footer-social h4 {
    color: var(--text);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    font-size: 14px;
    color: var(--text-secondary);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    border-radius: 50%;
    font-size: 18px;
    color: var(--primary);
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

.footer-bottom {
    padding: 24px 0;
    text-align: center;
    font-size: 13px;
    color: var(--text-light);
}

/* ==================== ODM页面 ==================== */
.page-hero {
    background: linear-gradient(135deg, #5d7e75, #7c9a92, #a8c5bb);
    color: #fff;
    padding: 80px 0 50px;
    text-align: center;
}

.page-hero h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
}

.page-hero p {
    font-size: 16px;
    opacity: 0.85;
}

.page-content.section {
    padding: 60px 0;
}

.odm-section {
    margin-bottom: 60px;
}

.odm-section:last-child {
    margin-bottom: 0;
}

.odm-section h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--primary);
    display: inline-block;
}

/* ==================== 设备展示 ==================== */
.equipment-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.equipment-card {
    background: var(--bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid transparent;
}

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

.equipment-img {
    margin-bottom: 16px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--bg-alt);
}

.equipment-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.equipment-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.equipment-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

@media (max-width: 640px) {
    .equipment-grid {
        grid-template-columns: 1fr;
    }
}

.odm-image-placeholder {
    width: 100%;
    min-height: 300px;
    background: var(--bg-alt);
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

.odm-image-placeholder img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius);
}

/* ==================== 响应式 ==================== */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

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

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

    .nav-link {
        color: var(--text) !important;
        font-size: 18px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-industries {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

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

    .partners-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

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

    .contact-grid {
        flex-direction: column;
        align-items: center;
    }

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

    .hero-title {
        font-size: 36px;
    }

    .section {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

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

    .partners-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .partner-logo img {
        max-width: 120px;
        max-height: 50px;
    }
}

/* ==================== 动画类 ==================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Toast消息 */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 14px 24px;
    background: var(--secondary);
    color: #fff;
    border-radius: var(--radius-sm);
    font-weight: 500;
    z-index: 9999;
    animation: slideInRight 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.toast.error {
    background: var(--danger);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ==================== 交互式流程图 ==================== */
.flow-hint {
    text-align: center;
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 24px;
    font-style: italic;
}

/* ===== 流程图1: 产品开发流程（灰圆 + 蓝箭头 + 绿箭头 + 详情白框） ===== */
.flow1-wrap {
    overflow-x: auto;
    padding: 30px 0 40px;
}
.flow1-row {
    display: flex;
    align-items: flex-start;
    min-width: max-content;
    padding: 0 20px;
    position: relative;
}
/* 每个阶段列 */
.flow1-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    width: 140px;
    cursor: grab;
    user-select: none;
    transition: transform 0.15s;
}
.flow1-stage:active { cursor: grabbing; }
.flow1-stage.dragging { opacity: 0.35; transform: scale(0.95); }
.flow1-stage.drag-over .flow1-circle { box-shadow: 0 0 0 3px var(--secondary); }

/* 灰色圆形 */
.flow1-circle {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: #d5d5d5;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    padding: 12px;
    transition: background 0.2s, box-shadow 0.2s;
    position: relative;
    z-index: 2;
}
.flow1-stage:hover .flow1-circle { background: #c8c8c8; }
.flow1-stage.active .flow1-circle {
    background: #b0b0b0;
    box-shadow: 0 0 0 3px var(--secondary);
}

/* 蓝色右箭头（圆之间） */
.flow1-barrow {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    padding-top: 38px; /* 对齐圆形垂直中心 */
    width: 36px;
}
.flow1-barrow svg { width: 28px; height: 14px; }

/* 绿色下箭头 */
.flow1-garrow {
    display: flex;
    justify-content: center;
    padding: 4px 0;
}
.flow1-garrow svg { width: 14px; height: 24px; }

/* 详情白框（始终可见） */
.flow1-box {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 12px 14px;
    width: 140px;
    margin-top: 2px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    transition: box-shadow 0.2s, border-color 0.2s;
}
.flow1-stage.active .flow1-box {
    border-color: var(--secondary);
    box-shadow: 0 2px 10px rgba(196,163,90,0.2);
}
.flow1-box-item {
    font-size: 13px;
    color: #444;
    line-height: 1.7;
    padding-left: 12px;
    position: relative;
}
.flow1-box-item::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #888;
}

/* ===== 流程图2: 产品开发周期（彩色箭头块） ===== */
.flow2-wrap {
    overflow-x: auto;
    padding: 30px 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.flow2-row {
    display: flex;
    align-items: stretch;
    min-width: max-content;
    padding: 0 20px;
    justify-content: center;
}
.flow2-step {
    flex-shrink: 0;
    cursor: grab;
    user-select: none;
    transition: transform 0.15s;
    position: relative;
}
.flow2-step:active { cursor: grabbing; }
.flow2-step.dragging { opacity: 0.35; transform: scale(0.95); }
.flow2-step.drag-over { transform: scale(1.06); }

.flow2-chev {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 32px 20px 20px;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    /* 箭头形状：右侧尖，左侧凹 */
    clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 0 100%, 18px 50%);
    min-width: 170px;
    transition: filter 0.2s, transform 0.2s;
    position: relative;
}
.flow2-step:first-child .flow2-chev {
    clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 0 100%);
    padding-left: 16px;
}
.flow2-step:hover .flow2-chev { filter: brightness(0.92); }
.flow2-step.active .flow2-chev { box-shadow: inset 0 0 0 3px rgba(0,0,0,0.15); }

/* 精确匹配原图配色 */
.flow2-chev.c1 { background: #B8A0D2; color: #fff; }
.flow2-chev.c2 { background: #E8D4C4; color: #666; }
.flow2-chev.c3 { background: #7AC943; color: #fff; }
.flow2-chev.c4 { background: #7B83D9; color: #fff; }
.flow2-chev.c5 { background: #8C8C8C; color: #fff; }

/* 括号 + 说明 */
.flow2-bracket-area {
    min-width: max-content;
    padding: 0 20px;
    display: flex;
    justify-content: center;
}
.flow2-bracket-row {
    display: flex;
    margin-top: 16px;
    padding-left: 170px; /* 跳过第一个chev */
}
.flow2-bracket-line {
    width: calc((170px * 3) + (32px * 3));
    height: 28px;
    border-left: 2px solid #888;
    border-right: 2px solid #888;
    border-bottom: 2px solid #888;
    border-radius: 0 0 6px 6px;
    position: relative;
}
.flow2-bracket-line::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    width: 2px;
    height: 8px;
    background: #888;
    transform: translateX(-50%);
}
.flow2-note {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ===== 流程图3: 工艺流程（双行 + 中间栏 + 反馈弧线） ===== */
.flow3-wrap {
    overflow-x: auto;
    padding: 20px 0 40px;
    display: flex;
    justify-content: center;
}
.flow3-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: max-content;
    padding: 0 20px;
    position: relative;
    width: 100%;
    max-width: 1400px;
}

/* 行 */
.flow3-line {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}
.flow3-line + .flow3-line { margin-top: 20px; }

/* 节点（浅灰圆角矩形） */
.flow3-node {
    flex-shrink: 0;
    background: #e8e8e8;
    border: none;
    border-radius: 8px;
    padding: 20px 32px;
    font-size: 17px;
    font-weight: 600;
    color: #333;
    cursor: grab;
    user-select: none;
    white-space: nowrap;
    transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
    position: relative;
    z-index: 2;
}
.flow3-node:active { cursor: grabbing; }
.flow3-node:hover { background: #ddd; }
.flow3-node.active {
    background: #d0d0d0;
    box-shadow: 0 0 0 3px var(--secondary);
}
.flow3-node.dragging { opacity: 0.35; transform: scale(0.95); }
.flow3-node.drag-over { box-shadow: 0 0 0 3px var(--secondary); }

/* 深蓝右箭头 */
.flow3-darrow {
    flex-shrink: 0;
    width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.flow3-darrow svg { width: 40px; height: 22px; }

/* 中间深色栏 */
.flow3-center {
    background: #505050;
    color: #fff;
    padding: 20px 52px;
    border-radius: 6px;
    font-size: 19px;
    font-weight: 700;
    text-align: center;
    letter-spacing: 3px;
    margin: 16px 0;
    max-width: 700px;
    cursor: grab;
    user-select: none;
    transition: background 0.2s;
}
.flow3-center:hover { background: #444; }
.flow3-center.dragging { opacity: 0.35; }

/* 反馈标注 */
.flow3-fb-label {
    font-size: 11px;
    color: #2a4a7a;
    font-weight: 500;
}

/* --- 流程图响应式 --- */
@media (max-width: 768px) {
    .flow1-stage { width: 110px; }
    .flow1-circle { width: 90px; height: 90px; font-size: 11px; padding: 8px; }
    .flow1-barrow { padding-top: 30px; width: 24px; }
    .flow1-box { width: 110px; padding: 8px 10px; }
    .flow1-box-item { font-size: 11px; }

    .flow2-chev { padding: 16px 24px 16px 14px; font-size: 13px; min-width: 130px; }
    .flow2-step:first-child .flow2-chev { padding-left: 12px; }

    .flow3-node { padding: 12px 20px; font-size: 14px; }
    .flow3-center { padding: 16px 32px; font-size: 15px; max-width: 90vw; }
    .flow3-darrow { width: 30px; }
    .flow3-darrow svg { width: 24px; height: 14px; }
}
