* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 性能优化 */
img, canvas {
    max-width: 100%;
    height: auto;
    display: block;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -o-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    pointer-events: auto;
    -webkit-pointer-events: auto;
    -moz-pointer-events: auto;
    -ms-pointer-events: auto;
}

/* 手机端额外保护 */
@media (max-width: 768px) {
    img, canvas {
        -webkit-touch-callout: none !important;
        -webkit-user-select: none !important;
        -khtml-user-select: none !important;
        -moz-user-select: none !important;
        -ms-user-select: none !important;
        user-select: none !important;
        -webkit-tap-highlight-color: transparent !important;
        pointer-events: auto !important;
    }
    
    * {
        -webkit-touch-callout: none !important;
        -webkit-user-select: none !important;
        -khtml-user-select: none !important;
        -moz-user-select: none !important;
        -ms-user-select: none !important;
        user-select: none !important;
    }
    
    /* 订单相关页面允许复制粘贴 */
    #serviceModal input,
    #serviceModal textarea,
    #orderTrackingModal input,
    #orderId,
    .order-info-card,
    .tracking-result,
    .download-section {
        -webkit-touch-callout: auto !important;
        -webkit-user-select: text !important;
        -khtml-user-select: text !important;
        -moz-user-select: text !important;
        -ms-user-select: text !important;
        user-select: text !important;
    }
}

/* 桌面端订单相关页面允许复制粘贴 */
#serviceModal input,
#serviceModal textarea,
#orderTrackingModal input,
#orderId,
.order-info-card,
.tracking-result,
.download-section {
    -webkit-touch-callout: auto;
    -webkit-user-select: text;
    -khtml-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* 减少重绘和回流 */
.floating-card,
.work-item,
.service-card {
    will-change: transform;
}

/* 优化字体渲染和基础样式 */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
}

body {
    font-family: 'Inter', 'Manrope', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    line-height: 1.6;
    color: #2d3748;
    overflow-x: hidden;
    scroll-behavior: smooth; /* 平滑滚动 */
    -webkit-overflow-scrolling: touch; /* iOS滚动优化 */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    position: relative;
    /* 移动端触摸优化 */
    touch-action: pan-y; /* 只允许垂直滚动 */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* 手机端容器优化 */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.5rem;
    }
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #805ad5;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #718096;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #805ad5;
}

.contact-btn {
    background: #805ad5;
    color: white !important;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.contact-btn:hover {
    background: #6b46c1;
}

/* 移动端菜单按钮 */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #6c5ce7;
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

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

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

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

/* 主页面 */
.hero {
    min-height: 100vh;
    height: 100vh; /* 明确高度，便于百分比 top/bottom 计算 */
    display: flex;
    align-items: center;
    position: relative;
    background: #eae8df;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* 极轻白色雾化叠加 + 极轻颗粒纹理 */
    background: linear-gradient(rgba(255,255,255,0.10), rgba(255,255,255,0.10)), url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(0,0,0,0.01)"/><circle cx="75" cy="75" r="1" fill="rgba(0,0,0,0.01)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 1;
    z-index: 2; /* 置于图片之上、文字之下 */
    pointer-events: none; /* 不阻挡下方图片与按钮交互 */
    -webkit-backdrop-filter: blur(1px);
    backdrop-filter: blur(1.5px);
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: static; /* 让 .hero-text 以 .hero 为定位参照，从而水平居中于视窗宽度 */
    z-index: auto;
}

/* 旧的 .hero-text h1 样式已移除，统一在文末新规则中定义 */

.highlight {
    background: linear-gradient(45deg, #ff9a9e, #fecfef); /* 粉桃渐变 */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none; /* 去除阴影 */
  -webkit-text-stroke: 0.1px rgba(0,0,0,0.85); /* 更细的黑色描边 */
}

/* 旧的 .hero-text p 样式已移除，统一在文末新规则中定义 */

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn-primary, .btn-secondary {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-primary {
    background: white;
    color: #805ad5;
}

/* 只在非触摸设备上启用按钮悬停效果 */
@media (hover: hover) and (pointer: fine) {
    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(128, 90, 213, 0.3);
    }
    
    .btn-secondary:hover {
        background: rgba(255,255,255,0.1);
    }
}

.btn-secondary {
    background: transparent;
    color: rgb(0, 0, 0);
    border: 2px solid rgba(255,255,255,0.3);
}

/* 浮动卡片 */
/* 右侧图片直接参与网格，左右各占一半 */
/* 让图片占据屏幕70%宽度，靠右显示 */
.hero-image-right {
    position: relative;
    width: 70vw;

    height: auto;
    object-fit: contain;
    object-position: center;
    display: block;
    margin-left: auto;
    z-index: 1; /* 位于背景层之下 */
}

/* 文字占据50%宽度，在图片上方显示 */
/* 旧的 .hero-text 定位与尺寸已移除，统一在文末新规则中定义 */

.floating-card {
    display: none;
}

.floating-card img {
    display: none;
}

.card-1 {
    display: none;
}

.card-2 {
    display: none;
}

.card-3 {
    display: none;
}

@keyframes float {
    from { opacity: 1; }
    to { opacity: 1; }
}

/* 新的右侧主图样式 */
.hero-main-image { display: none; }

/* 仅等比例缩小的首屏图片（不放大） */
/* 移除仅缩小方案 */
.hero-bg-image { display: none; }

/* 作品展示 */
.works {
    padding: 8rem 0;
    background: #f8f9fa;
}

/* 手机端作品展示区域优化 */
@media (max-width: 768px) {
    .works {
        padding: 4rem 0;
    }
}

@media (max-width: 480px) {
    .works {
        padding: 2rem 0;
    }
}

/* 瀑布流样式 */
.works-grid {
    column-count: 3;
    column-gap: 16px;
    width: 100%;
    max-width: 900px;
    margin: 20px auto;
    padding: 0 16px;
    box-sizing: border-box;
}

.work-item {
    break-inside: avoid;
    margin-bottom: 16px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    cursor: pointer;
}

.work-item .flip-container {
    position: relative;
    width: 100%;
    cursor: pointer;
    /* 移除固定高度，让容器根据图片内容自适应 */
    overflow: hidden; /* 防止内容溢出导致布局跳动 */
}

.flip-container .flip-front,
.flip-container .flip-back {
    position: absolute;
    width: 100%;
    top: 50%;
    left: 0;
    transform-origin: center;
    transition: all 0.4s ease;
    border-radius: 8px;
    overflow: hidden;
}

.flip-container .flip-front {
    position: relative; /* 正面使用相对定位，让容器根据内容自适应高度 */
    top: 0;
    opacity: 1;
    transform: scale(1) translateY(0);
}

.flip-container .flip-back {
    position: absolute; /* 背面使用绝对定位，覆盖在正面上 */
    opacity: 0;
    transform: scale(0.8) translateY(-50%);
    pointer-events: none; /* 防止背面图片干扰滚动 */
}

.work-item.flipped .flip-front {
    opacity: 0;
    transform: scale(0.8) translateY(0);
    pointer-events: none; /* 翻转后正面图片不干扰滚动 */
}

.work-item.flipped .flip-back {
    opacity: 1;
    transform: scale(1) translateY(-50%);
    pointer-events: auto; /* 翻转后背面图片可以交互 */
}

.flip-container img {
    width: 100%;
    height: auto; /* 改为auto，保持图片原始比例 */
    display: block;
    background: #f8f8f8;
    border-radius: 8px;
    touch-action: manipulation; /* 优化触摸交互，防止滚动冲突 */
}

/* 响应式 */
@media (max-width: 768px) {
    .works-grid {
        column-count: 2;
        column-gap: 6px;
        padding: 0 4px;
        max-width: 100%;
        margin: 10px 0;
    }
    
    .work-item {
        margin-bottom: 6px;
    }
}

/* 更小屏幕优化 */
@media (max-width: 480px) {
    .works-grid {
        column-count: 2;
        column-gap: 4px;
        padding: 0 2px;
        max-width: 100%;
        margin: 8px 0;
    }
    
    .work-item {
        margin-bottom: 4px;
        border-radius: 6px;
    }
    
    .flip-container img {
        border-radius: 6px;
    }
}

/* 服务项目 */
.services {
    padding: 8rem 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(1rem, 4vw, 3.5rem);
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 3vw, 2rem);
}

.service-card {
    background: white;
    padding: clamp(1.2rem, 2.5vw, 2.5rem) clamp(1rem, 2vw, 2rem);
    border-radius: clamp(15px, 2vw, 25px);
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
}

.service-card.with-image,
.service-card.with-responsive-image {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    color: white;
    transition: background-image 0.3s ease;
}

.service-card.with-image::before,
.service-card.with-responsive-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.3) 100%);
    z-index: 1;
}

.service-card.with-image > *,
.service-card.with-responsive-image > * {
    position: relative;
    z-index: 2;
}



.service-card.with-image h3,
.service-card.with-responsive-image h3 {
    color: #ffffff;
    text-shadow: 0 2px 6px rgba(0,0,0,0.9), 0 0 20px rgba(255,255,255,0.3);
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.service-card.with-image p,
.service-card.with-responsive-image p {
    color: #ffffff;
    text-shadow: 0 1px 4px rgba(0,0,0,0.8), 0 0 15px rgba(255,255,255,0.2);
    font-weight: 600;
}

/* 只在非触摸设备上启用悬停效果 */
@media (hover: hover) and (pointer: fine) {
    .service-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    }
}

.service-card.featured {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.service-card.featured.with-image::before,
.service-card.featured.with-responsive-image::before {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.7) 0%, rgba(118, 75, 162, 0.7) 100%);
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    font-weight: 700;
    line-height: 1.3;
    position: relative;
    z-index: 3;
    text-align: center;
    /* 文字自适应：英文长文字自动缩小 */
    font-size: clamp(0.9rem, 2.5vw, 1.4rem);
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.service-card p {
    color: #718096;
    margin-bottom: 1.5rem;
    line-height: 1.5;
    font-size: 0.95rem;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 3;
    /* 文字自适应：英文长文字自动缩小 */
    font-size: clamp(0.65rem, 1.8vw, 0.95rem);
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.service-card.featured p {
    color: #ffffff;
    text-shadow: 0 1px 4px rgba(0,0,0,0.8), 0 0 15px rgba(255,255,255,0.2);
    font-weight: 600;
}

.service-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #805ad5;
    margin-top: auto;
    padding-top: 0.5rem;
    position: relative;
    z-index: 3;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.original-price {
    color: #b0b0b0;
    font-size: 0.95em;
    text-decoration: line-through;
    margin-right: 0.5em;
    font-weight: 400;
}

.price-tag {
  display: inline-block;
  background: rgba(255, 152, 0, 0.8);
  color: #fff;
  font-size: 1.05em;
  font-weight: 700;
  border-radius: 16px;
  padding: 0.18em 0.9em;
  margin-left: 0.2em;
  letter-spacing: 1px;
  box-shadow: 0 2px 8px rgba(255,152,0,0.08);
  vertical-align: middle;
  /* 文字自适应：英文长文字自动缩小 */
  font-size: clamp(0.8em, 2.5vw, 1.05em);
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  line-height: 1.2;
  max-width: 100%;
}

.price-tag-gray {
  display: inline-block;
  background: rgba(60,60,60,0.92);
  color: #fff;
  font-size: 1.05em;
  font-weight: 700;
  border-radius: 16px;
  padding: 0.18em 0.9em;
  margin-left: 0.2em;
  letter-spacing: 1px;
  box-shadow: 0 2px 8px rgba(60,60,60,0.10);
  vertical-align: middle;
  /* 文字自适应：英文长文字自动缩小 */
  font-size: clamp(0.8em, 2.5vw, 1.05em);
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  line-height: 1.2;
  max-width: 100%;
}

.service-card.featured .service-price {
    color: #ffffff;
    text-shadow: 0 1px 4px rgba(0,0,0,0.8), 0 0 15px rgba(255,255,255,0.2);
    font-weight: 700;
}

.service-card.disabled {
    color: #6c757d;
    cursor: not-allowed;
    opacity: 0.7;
    transform: none;
    pointer-events: none;
}

.service-card.disabled.with-image,
.service-card.disabled.with-responsive-image {
    position: relative;
}

.service-card.disabled.with-image::before,
.service-card.disabled.with-responsive-image::before {
    background: linear-gradient(135deg, rgba(108, 117, 125, 0.8) 0%, rgba(108, 117, 125, 0.6) 100%);
}

.service-card.disabled.with-image h3,
.service-card.disabled.with-image p,
.service-card.disabled.with-responsive-image h3,
.service-card.disabled.with-responsive-image p {
    color: rgba(255, 255, 255, 0.9);
}

.service-card.disabled:hover {
    transform: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.service-card.disabled .service-icon {
    opacity: 0.5;
}

.service-card.disabled .service-price {
    color: #95a5a6;
    font-weight: 600;
}



/* 联系我们 */
.contact {
    padding: 8rem 0;
    background: #2d3436;
    color: white;
}

.contact-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 800px;
    width: 100%;
}

.contact-item {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
}

.contact-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #74b9ff;
}

.contact-item p {
    font-size: 1rem;
    color: #ddd;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-info p {
    font-size: 1.25rem;
    color: #94a3b8;
    margin-bottom: 3rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-method .icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    background: #805ad5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-method h4 {
    margin-bottom: 0.25rem;
}

.contact-method p {
    color: #94a3b8;
    margin: 0;
}

.contact-form {
    background: #636e72;
    padding: 3rem;
    border-radius: 20px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    background: #74b9ff;
    border: none;
    padding: 1rem;
    border-radius: 10px;
    color: white;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255,255,255,0.7);
}

.submit-btn {
    width: 100%;
    background: #805ad5;
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.submit-btn:hover {
    background: #6b46c1;
}

/* 图文介绍区域 */
.about-process {
    padding: 8rem 0;
    background: #fafafa;
}

.process-item {
    margin-bottom: 6rem;
}

.process-content {
    position: relative;
}

.process-number {
    font-size: 4rem;
    font-weight: 700;
    color: #e5e7eb;
    position: absolute;
    top: -3rem;
    left: -1rem;
    z-index: 1;
}

.process-content h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.process-content p {
    font-size: 1.1rem;
    color: #6b7280;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.process-content ul {
    list-style: none;
    padding: 0;
}

.process-content li {
    padding: 0.5rem 0;
    color: #374151;
    position: relative;
    padding-left: 2rem;
}

.process-content li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

.process-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 10px;
    background: white;
}

.process-image.single {
    grid-template-columns: 1fr;
    padding: 0;
}

.process-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 10px;
}

.process-image.single img {
    height: 400px;
    border-radius: 20px;
}

.process-image img:hover {
    transform: scale(1.05);
}

/* 流程区域响应式 - 平板端 */
@media (min-width: 768px) and (max-width: 1024px) {
    .process-number {
        font-size: 3.5rem;
        top: -2rem;
        left: -0.5rem;
    }
}

/* 流程区域响应式 - 移动端 */
@media (max-width: 767px) {
    .process-item {
        display: block !important;
        margin-bottom: 4rem;
    }
    
    .process-item.reverse {
        display: block !important;
    }
    
    .process-content {
        margin: 0 0 2rem 0;
        text-align: left;
    }
    
    .process-number {
        font-size: 3rem;
        top: -2.5rem;
        left: 0;
    }
    
    .process-image-grid,
    .process-image-rows {
        margin: 0 auto;
        max-width: 95vw;
    }
}

/* 图片放大模态框样式 */
.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease-in-out;
}

.image-modal-content {
    position: relative;
    margin: auto;
    padding: 0;
    width: 90%;
    max-width: 1200px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.image-modal-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease-in-out;
}

.image-modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    transition: color 0.3s ease;
}

.image-modal-close:hover,
.image-modal-close:focus {
    color: #ccc;
    text-decoration: none;
}



/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from { 
        opacity: 0;
        transform: scale(0.8);
    }
    to { 
        opacity: 1;
        transform: scale(1);
    }
}

/* 流程区域图片悬停效果 */
.process-image-grid img,
.process-image-rows img,
.process-image-grid canvas,
.process-image-rows canvas {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* 移动端触摸优化 */
    touch-action: manipulation;
}

/* 只在非触摸设备上启用悬停效果 */
@media (hover: hover) and (pointer: fine) {
    .process-image-grid img:hover,
    .process-image-rows img:hover,
    .process-image-grid canvas:hover,
    .process-image-rows canvas:hover {
        transform: scale(1.05);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }
}

/* 移动端适配 */
@media (max-width: 768px) {
    .image-modal-content {
        width: 95%;
        padding: 20px;
    }
    
    .image-modal-content img {
        max-height: 80vh;
    }
    
    .image-modal-close {
        top: 10px;
        right: 20px;
        font-size: 30px;
    }
    
    /* 移动端滚动优化 */
    * {
        -webkit-tap-highlight-color: transparent; /* 移除点击高亮 */
    }
    
    /* 禁用移动端不必要的动画以提高性能 */
    .floating-card {
        animation: none !important;
    }
    
    /* 优化触摸滚动 */
    .container {
        -webkit-overflow-scrolling: touch;
    }
}

/* 移动端性能优化 */
@media (max-width: 768px) {
    /* 减少不必要的变换和过渡 */
    .service-card,
    .btn-primary,
    .btn-secondary {
        transition: none !important;
        transform: none !important;
    }
    
    /* 确保移动端背景图片正确显示 */
    .service-card.with-responsive-image {
        background-size: cover !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
        background-attachment: scroll !important;
    }
    
    /* 优化滚动性能 */
    .hero,
    .about-process,
    .services,
    .works {
        will-change: auto;
        transform: translateZ(0); /* 启用硬件加速 */
    }
    
    /* 减少重绘 */
    .process-image-grid img,
    .process-image-rows img {
        will-change: auto;
    }
}

/* 大屏幕优化 */
@media (min-width: 1400px) {
    .services-grid {
        gap: clamp(2.5rem, 5vw, 4rem);
        max-width: 1600px;
    }
}

/* 中等大屏幕 */
@media (max-width: 1200px) {
    .services-grid {
        gap: clamp(1.8rem, 3.5vw, 3rem);
        max-width: 1000px;
    }
}

/* 平板端响应式 */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: clamp(1.5rem, 3vw, 2.5rem);
        max-width: 700px;
        padding: 0 clamp(1.5rem, 2.5vw, 2rem);
    }
    
    .service-card {
        padding: clamp(1.5rem, 2.2vw, 2rem) clamp(1.2rem, 1.8vw, 1.5rem);
    }
    
    /* 确保平板端背景图片正确显示 */
    .service-card.with-responsive-image {
        background-size: cover !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
        background-attachment: scroll !important;
    }
    
    .service-card h3 {
        font-size: 1.3rem;
        margin-bottom: 0.7rem;
    }
    
    .service-card p {
        font-size: 0.9rem;
        margin-bottom: 1.2rem;
    }
    
    /* 所有容器自适应 */
    .image-row:first-child,
    .image-row:nth-child(2),
    .image-row:nth-child(3) {
        width: auto;
        height: auto;
        padding: 0; /* 移除屏幕左右边距 */
        gap: 4px; /* 图像之间的边距4px */
    }
    
    .image-row:first-child img,
    .image-row:nth-child(2) img,
    .image-row:nth-child(3) img {
        width: calc((100% - 8px) / 3); /* 修正：使用100%而不是100vw */
        height: auto; /* 高度自适应 */
        object-fit: contain;
    }
    
    /* 修正符号定位 */
    .image-row:first-child .plus-sign-overlay {
        left: calc(33.33% - 2px); /* 考虑间距调整位置 */
    }
    
    .image-row:first-child .equal-sign-overlay {
        left: calc(66.66% - 2px); /* 考虑间距调整位置 */
    }
    
    .image-row .plus-sign-overlay {
        left: calc(33.33% - 2px); /* 考虑间距调整位置 */
    }
    
    .image-row .equal-sign-overlay {
        left: calc(66.66% - 2px); /* 考虑间距调整位置 */
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    /* 移动端导航栏样式 - 直接显示在同一排 */
    .mobile-menu-toggle {
        display: none !important; /* 完全隐藏汉堡菜单 */
    }
    
    .nav-container {
        padding: 0 1rem; /* 减小左右内边距 */
    }
    
    .nav-links {
        position: static; /* 恢复正常文档流 */
        display: flex;
        flex-direction: row;
        justify-content: flex-end;
        align-items: center;
        gap: 0.3rem; /* 进一步减小间距 */
        width: auto;
        height: auto;
        background: none;
        backdrop-filter: none;
        padding: 0;
        transform: none;
        transition: none;
        z-index: auto;
        flex-wrap: wrap; /* 允许换行 */
    }
    
    .nav-links a {
        font-size: 0.75rem; /* 进一步缩小字体 */
        padding: 0.3rem 0.5rem; /* 减小内边距 */
        width: auto;
        text-align: center;
        border-radius: 4px;
        transition: all 0.3s ease;
        white-space: nowrap; /* 防止文字换行 */
        min-width: fit-content; /* 确保按钮不会被压缩 */
    }
    
    .contact-btn {
        font-size: 0.75rem !important;
        padding: 0.3rem 0.6rem !important;
        width: auto;
        text-align: center;
    }

    /* 移动端首屏高度限制为70vh */
    .hero {
        min-height: 70vh;
        height: 70vh;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        height: 100%;
        justify-content: center;
    }
    
    /* 移除旧的移动端 .hero-text 尺寸与负外边距设置，使用文末统一规则 */
    
    .hero-image-right { 
        width: 100vw; 
        max-width: none; 
        border-radius: 12px; 
        object-fit: contain;
        margin-top: auto;
        align-self: flex-end;
    }
    
    .card-1, .card-2, .card-3 { display: none; }
    
    .works-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    
    .work-item.large,
    .work-item.wide {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: clamp(1rem, 2.5vw, 1.5rem);
        max-width: 420px;
        padding: 0 clamp(1rem, 2vw, 1.5rem);
    }
    
    .service-card {
        padding: clamp(1rem, 2vw, 1.5rem) clamp(0.8rem, 1.5vw, 1rem);
    }
    
    .service-card h3 {
        font-size: 1.1rem;
        margin-bottom: 0.6rem;
        line-height: 1.2;
        position: relative;
        z-index: 3;
    }
    
    .service-card p {
        font-size: 0.85rem;
        line-height: 1.3;
        margin-bottom: 1rem;
        position: relative;
        z-index: 3;
        text-align: center;
    }
    
    .service-price {
        font-size: 0.95rem;
    }
    

    

}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 3.5rem;
    font-weight: 700;
    color: #2d3436;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.section-header p {
    font-size: 1.4rem;
    color: #636e72;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* 响应式标题 */
@media (max-width: 768px) {
    .section-header h2 {
        font-size: 2.5rem;
    }
    
    .section-header p {
        font-size: 1.2rem;
    }
}

/* 弹窗样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 2% auto;
    padding: 2rem;
    border-radius: 15px;
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.close-btn {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #999;
    transition: color 0.3s;
}

.close-btn:hover {
    color: #333;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
    width: 100%;
}

.id-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.copy-btn {
    padding: 0.4rem 0.8rem;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
}

.upload-area {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    min-height: 60px;
}

.upload-area:hover {
    border-color: #007bff;
    background: #f0f8ff;
}

.upload-area p {
    margin: 0;
    font-size: 1rem;
    color: #333;
    font-weight: 500;
}

.upload-area small {
    color: #666;
    font-size: 0.85rem;
    margin-left: 0.5rem;
}

.preview-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.image-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.image-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
}

.delete-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(255, 68, 68, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#requirements {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    resize: vertical;
}

#contact {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
}

.form-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

.btn-cancel, .btn-submit {
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-cancel {
    background: #6c757d;
    color: white;
}

.btn-cancel:hover {
    background: #5a6268;
}

.btn-submit {
    background: #007bff;
    color: white;
}

.btn-submit:hover {
    background: #0056b3;
}

/* 订单查询样式 */
.tracking-search {
    margin-bottom: 2rem;
}

.search-box {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.search-box input {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
}

.search-btn {
    padding: 0.8rem 1.5rem;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    white-space: nowrap;
    transition: background 0.3s;
}

.search-btn:hover {
    background: #0056b3;
}

.tracking-result {
    animation: fadeIn 0.3s ease-in;
}

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

.order-info-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid #e9ecef;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.order-header h3 {
    margin: 0;
    color: #2d3436;
    font-size: 1.2rem;
}

.status-badges {
    display: flex;
    gap: 0.5rem;
}

.status-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.pending {
    background: #fff3cd;
    color: #856404;
}

.status-badge.in_progress {
    background: #d1ecf1;
    color: #0c5460;
}

.status-badge.completed {
    background: #d4edda;
    color: #155724;
}

.status-badge.payment-pending {
    background: #f8d7da;
    color: #721c24;
}

.status-badge.payment-completed {
    background: #d4edda;
    color: #155724;
}

.order-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.detail-item .label {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
}

.detail-item span:last-child {
    font-weight: 600;
    color: #2d3436;
}

.progress-section {
    margin-bottom: 1.5rem;
}

.progress-section h4 {
    margin-bottom: 1rem;
    color: #2d3436;
}

.progress-timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin: 2rem 0;
}

.progress-timeline::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 30px;
    right: 30px;
    height: 2px;
    background: #e9ecef;
    z-index: 1;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 2;
    flex: 1;
}

.step-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.progress-step.active .step-icon {
    background: #007bff;
    color: white;
}

.progress-step.completed .step-icon {
    background: #28a745;
    color: white;
}

.step-content {
    max-width: 120px;
}

.step-title {
    font-weight: 600;
    color: #2d3436;
    margin-bottom: 0;
    font-size: 0.9rem;
}

.time-info-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.time-info-card h4 {
    margin-bottom: 1rem;
    color: #2d3436;
}

.time-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
    border-bottom: 1px solid #f8f9fa;
}

.time-info-item:last-child {
    border-bottom: none;
}

.time-label {
    font-weight: 500;
    color: #6c757d;
}

.time-value {
    font-weight: 600;
    color: #2d3436;
}

.time-value.warning {
    color: #dc3545;
}

.time-value.success {
    color: #28a745;
}

.countdown-timer {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    margin: 1rem 0;
}

.countdown-timer.warning {
    background: linear-gradient(135deg, #ffc107, #e0a800);
    color: #212529;
}

.countdown-timer.danger {
    background: linear-gradient(135deg, #dc3545, #c82333);
}

.countdown-number {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.countdown-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.download-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.download-section h4 {
    margin-bottom: 1rem;
    color: #2d3436;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.download-item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
}

.download-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.download-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.download-name {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2d3436;
}

.download-size {
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

.download-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.download-btn:hover {
    background: #218838;
}

.tracking-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.order-not-found {
    text-align: center;
    padding: 3rem 1rem;
}

.not-found-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.order-not-found h3 {
    color: #6c757d;
    margin-bottom: 1rem;
}

.order-not-found p {
    color: #6c757d;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.not-found-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .modal-content {
        margin: 5% auto;
        padding: 1.5rem;
        width: 95%;
    }
    
    .form-buttons {
        flex-direction: column;
    }
    
    .btn-cancel, .btn-submit {
        width: 100%;
    }
    
    .search-box {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .search-btn {
        width: 100%;
    }
    
    .order-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }
    
    .order-details {
        grid-template-columns: 1fr;
    }
    
    .progress-timeline {
        flex-direction: column;
        gap: 1rem;
    }
    
    .progress-timeline::before {
        display: none;
    }
    
    .progress-step {
        flex-direction: row;
        text-align: left;
        gap: 1rem;
    }
    
    .step-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        margin-bottom: 0;
    }
    
    .step-content {
        max-width: none;
    }
    
    .tracking-actions {
        flex-direction: column;
    }
    
    .not-found-actions {
        flex-direction: column;
    }
    
    .download-grid {
        grid-template-columns: 1fr;
    }
    
    .upload-area {
        padding: 0.8rem 1rem;
        min-height: 50px;
        gap: 0.6rem;
    }
    
    .upload-area p {
        font-size: 0.9rem;
    }
    
    .upload-area small {
        font-size: 0.8rem;
    }
}

/* 更小屏幕适配 (480px以下) */
@media (max-width: 480px) {
    /* 超小屏手机导航栏优化 */
    .nav-container {
        padding: 0 0.5rem; /* 进一步减小内边距 */
    }
    
    .nav-links {
        gap: 0.2rem; /* 最小间距 */
    }
    
    .nav-links a {
        font-size: 0.7rem; /* 最小字体 */
        padding: 0.25rem 0.4rem; /* 最小内边距 */
        border-radius: 3px;
    }
    
    .contact-btn {
        font-size: 0.7rem !important;
        padding: 0.25rem 0.5rem !important;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: clamp(0.8rem, 2vw, 1.2rem);
        max-width: 400px;
        padding: 0 clamp(0.5rem, 1.5vw, 1rem);
    }
    
    .service-card {
        padding: clamp(1rem, 2vw, 1.5rem) clamp(0.6rem, 1.5vw, 1rem);
        aspect-ratio: 3/4;
    }
    
    /* 确保小屏幕背景图片正确显示 */
    .service-card.with-responsive-image {
        background-size: cover !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
        background-attachment: scroll !important;
    }
    
    .service-card h3 {
        font-size: clamp(0.9rem, 2.5vw, 1.1rem);
        margin-bottom: 0.5rem;
        line-height: 1.2;
    }
    
    .service-card p {
        font-size: clamp(0.75rem, 2vw, 0.85rem);
        line-height: 1.3;
        margin-bottom: 0.8rem;
    }
    
    .service-price {
        font-size: clamp(0.8rem, 2vw, 0.9rem);
        padding-top: 0.5rem;
    }
    

    

}

/* 流程三图片行布局 - 三个独立的行容器，紧凑布局 */
.process-image-rows {
    display: flex;
    flex-direction: column;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.image-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0; /* 图片贴到一起，无间距 */
    padding: 0 clamp(0.3rem, 1vw, 0.8rem); /* 只有左右边距 */
}

.image-row img {
    flex: 1;
    max-width: 33.333%; /* 每张图片占1/3，无间距损失 */
    height: auto;
    object-fit: contain; /* 保持图片原始比例 */
    background: transparent;
    border: none;
}

/* 第一排容器的特殊样式 */
.image-row:first-child {
    gap: 4px; /* 轻微间距 */
    padding: 0; /* 移除左右边距 */
    position: relative; /* 为加号定位提供参考 */
}

.image-row:first-child img {
    flex: 1; /* 平分宽度 */
    max-width: calc(33.333% - 2.67px); /* 考虑4px间距的1/3宽度 */
    height: auto; /* 高度自适应 */
    object-fit: contain; /* 最大限度展示图片 */
}

/* 第一排加号样式 */
.image-row:first-child .plus-sign-overlay {
    position: absolute;
    left: 33.33%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: #22c55e;
    font-size: 2.2rem;
    font-weight: bold;
    text-shadow: 0 0 8px #fff, 0 4px 12px rgba(0,0,0,0.25);
    z-index: 2;
    pointer-events: none;
    opacity: 1;
}

/* 第一排等号样式 */
.image-row:first-child .equal-sign-overlay {
    position: absolute;
    left: 66.66%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: #22c55e;
    font-size: 2.2rem;
    font-weight: bold;
    text-shadow: 0 0 8px #fff, 0 4px 12px rgba(0,0,0,0.25);
    z-index: 2;
    pointer-events: none;
    opacity: 1;
}

/* 所有排的加号样式 */
.image-row .plus-sign-overlay {
    position: absolute;
    left: 33.33%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: #22c55e;
    font-size: 2.2rem;
    font-weight: bold;
    text-shadow: 0 0 8px #fff, 0 4px 12px rgba(0,0,0,0.25);
    z-index: 2;
    pointer-events: none;
    opacity: 1;
}

/* 所有排的等号样式 */
.image-row .equal-sign-overlay {
    position: absolute;
    left: 66.66%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: #22c55e;
    font-size: 2.2rem;
    font-weight: bold;
    text-shadow: 0 0 8px #fff, 0 4px 12px rgba(0,0,0,0.25);
    z-index: 2;
    pointer-events: none;
    opacity: 1;
}

/* 不等号样式 */
.image-row .not-equal-sign-overlay {
    position: absolute;
    left: 66.66%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: #ef4444;
    font-size: 2.2rem;
    font-weight: bold;
    text-shadow: 0 0 8px #fff, 0 4px 12px rgba(0,0,0,0.25);
    z-index: 2;
    pointer-events: none;
    opacity: 1;
}

/* 第二排容器的特殊样式 */
.image-row:nth-child(2) {
    gap: 4px; /* 轻微间距 */
    padding: 0; /* 移除左右边距 */
    position: relative; /* 为符号定位提供参考 */
}

.image-row:nth-child(2) img {
    flex: 1; /* 平分宽度 */
    max-width: calc(33.333% - 2.67px); /* 考虑4px间距的1/3宽度 */
    height: auto; /* 高度自适应 */
    object-fit: contain; /* 最大限度展示图片 */
}

/* 第三排容器的特殊样式 */
.image-row:nth-child(3) {
    gap: 4px; /* 轻微间距 */
    padding: 0; /* 移除左右边距 */
    position: relative; /* 为符号定位提供参考 */
}

.image-row:nth-child(3) img {
    flex: 1; /* 平分宽度 */
    max-width: calc(33.333% - 2.67px); /* 考虑4px间距的1/3宽度 */
    height: auto; /* 高度自适应 */
    object-fit: contain; /* 最大限度展示图片 */
}



/* 移动端优化 - 手机端第一排图片占满屏幕宽度 */
@media (max-width: 767px) {
    /* 第一排容器 - 占满屏幕宽度，自适应比例 */
    .process-image-grid {
        width: 100vw; /* 占满整个屏幕宽度 */
        max-width: none; /* 移除最大宽度限制 */
        aspect-ratio: unset; /* 移除固定比例，让容器自适应 */
        margin: 0 -2rem; /* 抵消外层容器的padding */
        gap: 2px; /* 图片间距 */
        border-radius: 0; /* 移除圆角 */
        grid-template-rows: repeat(2, 1fr); /* 显示两行 */
        grid-template-columns: repeat(3, 1fr); /* 三列等宽 */
    }
    
    /* 显示所有图片 - 移除隐藏第二行的规则 */
    
    /* 第一行图片样式 */
    .process-image-grid .image-with-check {
        aspect-ratio: unset; /* 移除固定1:1比例 */
        border-radius: 0; /* 移除圆角 */
        height: auto; /* 自适应高度 */
    }
    
    .process-image-grid .image-with-check img {
        border-radius: 0; /* 移除圆角 */
        height: auto; /* 自适应高度 */
        max-height: none; /* 移除高度限制 */
    }
    
    /* 其他行的样式保持不变 */
    .process-image-rows {
        gap: clamp(1rem, 2.5vw, 1.5rem);
        max-width: 100%;
    }
    
    .image-row {
        flex-direction: row;
        gap: 0;
        padding: 0 0.1rem;
    }
    
    .image-row img {
        flex: 1;
        max-width: 33.333%;
        height: auto;
    }
    
    /* 所有容器自适应 */
    .image-row:first-child,
    .image-row:nth-child(2),
    .image-row:nth-child(3) {
        width: auto; /* 容器宽度自适应 */
        height: auto; /* 容器高度自适应 */
        padding: 0; /* 移除屏幕左右边距 */
        gap: 4px; /* 图像之间的边距4px */
    }
    
    .image-row:first-child img,
    .image-row:nth-child(2) img,
    .image-row:nth-child(3) img {
        width: calc((100% - 8px) / 3); /* 修正：使用100%而不是100vw */
        height: auto; /* 高度自适应 */
        object-fit: contain; /* 保持原始比例，适应容器 */
    }

}

@media (max-width: 480px) {
    /* 第一排容器 - 占满屏幕宽度，自适应比例 */
    .process-image-grid {
        width: 100vw; /* 占满整个屏幕宽度 */
        max-width: none; /* 移除最大宽度限制 */
        aspect-ratio: unset; /* 移除固定比例，让容器自适应 */
        margin: 0 -2rem; /* 抵消外层容器的padding */
        gap: 2px; /* 图片间距 */
        border-radius: 0; /* 移除圆角 */
        grid-template-rows: repeat(2, 1fr); /* 显示两行 */
        grid-template-columns: repeat(3, 1fr); /* 三列等宽 */
    }
    
    /* 显示所有图片 - 移除隐藏第二行的规则 */
    
    /* 第一行图片样式 */
    .process-image-grid .image-with-check {
        aspect-ratio: unset; /* 移除固定1:1比例 */
        border-radius: 0; /* 移除圆角 */
        height: auto; /* 自适应高度 */
    }
    
    .process-image-grid .image-with-check img {
        border-radius: 0; /* 移除圆角 */
        height: auto; /* 自适应高度 */
        max-height: none; /* 移除高度限制 */
    }
    
    /* 其他行的样式 */
    .process-image-rows {
        gap: clamp(1rem, 2.5vw, 1.5rem);
    }
    
    .image-row {
        flex-direction: row;
        padding: 0 0.05rem;
        gap: 0;
    }
    
    .image-row img {
        flex: 1;
        max-width: 33.333%;
    }
    
    /* 所有容器自适应 */
    .image-row:first-child,
    .image-row:nth-child(2),
    .image-row:nth-child(3) {
        width: auto; /* 容器宽度自适应 */
        height: auto; /* 容器高度自适应 */
        padding: 0; /* 移除屏幕左右边距 */
        gap: 4px; /* 图像之间的边距4px */
    }
    
    .image-row:first-child img,
    .image-row:nth-child(2) img,
    .image-row:nth-child(3) img {
        width: calc((100% - 8px) / 3); /* 修正：使用100%而不是100vw */
        height: auto; /* 高度自适应 */
        object-fit: contain; /* 保持原始比例，适应容器 */
    }
    
    /* 移动端第一排加号样式 */
    .image-row:first-child .plus-sign-overlay {
        font-size: 2.2rem;
        color: #22c55e;
        text-shadow: 0 0 6px #fff, 0 3px 8px rgba(0,0,0,0.25);
        opacity: 1;
    }
    
    /* 移动端第一排等号样式 */
    .image-row:first-child .equal-sign-overlay {
        font-size: 2.2rem;
        color: #22c55e;
        text-shadow: 0 0 6px #fff, 0 3px 8px rgba(0,0,0,0.25);
        opacity: 1;
    }
    
    /* 移动端所有排的加号样式 */
    .image-row .plus-sign-overlay {
        font-size: 2.2rem;
        color: #22c55e;
        text-shadow: 0 0 6px #fff, 0 3px 8px rgba(0,0,0,0.25);
        opacity: 1;
    }
    
    /* 移动端所有排的等号样式 */
    .image-row .equal-sign-overlay {
        font-size: 2.2rem;
        color: #22c55e;
        text-shadow: 0 0 6px #fff, 0 3px 8px rgba(0,0,0,0.25);
        opacity: 1;
    }
    
    /* 移动端不等号样式 */
    .image-row .not-equal-sign-overlay {
        font-size: 2.2rem;
        color: #ef4444;
        text-shadow: 0 0 6px #fff, 0 3px 8px rgba(0,0,0,0.25);
        opacity: 1;
    }
}

/* 确保在所有屏幕尺寸下都保持3x3布局和3:4比例 */
@media (max-width: 768px) {
    .process-image-grid-simple {
        width: clamp(280px, 90vw, 400px);
        aspect-ratio: 3/4; /* 保持3:4比例 */
        gap: clamp(0.3rem, 1vw, 0.8rem);
        padding: clamp(0.3rem, 1vw, 0.8rem);
    }
}

@media (max-width: 480px) {
    .process-image-grid-simple {
        width: clamp(250px, 95vw, 350px);
        aspect-ratio: 3/4; /* 保持3:4比例 */
        gap: clamp(0.2rem, 0.8vw, 0.6rem);
        padding: clamp(0.2rem, 0.8vw, 0.6rem);
    }
}

/* ===== 仅针对首屏文字的可读性与跨语言换行优化（不改动图片布局） ===== */
/* 桌面端文字在 100vh 内；移动端文字在 70vh 内。避免导航遮挡，不留无意义空白。*/

/* 通用：跨语言稳定换行 + 行长控制，仅作用于文字层 */
.hero-text {
  position: absolute;
  left: 5vw;                    /* 左 5% */
  right: 5vw;                   /* 右 5% */
  top: 10%;                     /* 上 10% */
  bottom: 10%;                  /* 下 10% */
  transform: none;              /* 不再使用位移 */
  width: auto;
  max-width: none;              /* 宽度由左右 5vw 约束 */
  z-index: 3;

  display: flex;
  flex-direction: column;
  align-items: center;          /* 水平居中内部元素 */
  justify-content: center;      /* 在可用高度内垂直居中 */
  text-align: center;           /* 文本水平居中 */

  /* 跨语言换行与断词策略 */
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
  line-break: loose;
  hyphens: auto;
}

/* 桌面端：文字在 100vh 内，避开导航并垂直居中 */
@media (min-width: 769px) {
  .hero-text {
    max-width: none;            /* 桌面同样由 5vw 边距约束 */
    margin: 0;
  }
}

/* 移动端：文字在 70vh 内，避开导航与底部留距；不贴死底部，不留大空白 */
@media (max-width: 768px) {
  .hero-text {
    left: 5vw;
    right: 5vw;
    top: 10%;
    bottom: 10%;
    transform: none;
    width: auto; /* 覆盖旧的 width:100% */
    max-width: none;            /* 移动端同样由 5vw 边距约束 */
    margin: 0; /* 覆盖原负外边距等 */
  }
}

/* 仅在文字后方加局部幕布，增强对比，不影响图片 */
.hero-text::before {
  content: none !important;
  display: none !important;
}

/* 自适应字号与行长（封面感 + 可读） */
.hero-text h1 {
  font-size: clamp(40px, 7.5vw, 72px);
  line-height: 1.5;           /* 拉大行高 */
  letter-spacing: 0.22em;      /* 增大字距 */
  font-weight: 1000;            /* 更具设计感的粗度 */
  font-family: 'PingFang SC', 'Noto Sans SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
  color: transparent;
  background: linear-gradient(180deg, #1fb0b5 0%, #27c6bb 50%, #7fd4e9 100%); /* 略微回调后的青绿渐变 */
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none; /* 去除阴影 */
  -webkit-text-stroke: 0.1px rgba(0,0,0,0.85); /* 更细的黑色描边 */
  text-wrap: balance;
  margin-bottom: 1.8rem;       /* 增大与段落的间距 */
}

.hero-text p {
  font-size: clamp(30px, 2.6vw, 26px);
  line-height: 1.9;            /* 拉大段落行高 */
  max-width: 42ch;             /* 稍长行长以匹配居中视觉 */
  font-family: 'Manrope', 'Noto Sans SC', 'PingFang SC', sans-serif;
  color: #f5c000; /* 略微回调后的黄色 */
  text-shadow: none; /* 去除阴影 */
  -webkit-text-stroke: 0.05px rgba(107, 103, 103, 0.8); /* 更细的黑色描边 */
  margin-bottom: 1.25rem;      /* 增大段落下间距 */
}

.hero-buttons {
  display: flex;
  gap: 0.9rem;   /* 增大按钮间距 */
  flex-wrap: wrap;
  justify-content: center; /* 居中按钮 */
}

/* 移动端：针对字号和间距再做适配放大 */
@media (max-width: 768px) {
  .hero-text h1 {
    font-size: clamp(28px, 9vw, 36px);
    line-height: 1.28;
    letter-spacing: 0.2em;   /* 移动端略小的字距 */
    margin-bottom: 0.9rem;
  }
  .hero-text p {
    font-size: clamp(16px, 4.5vw, 20px);
    line-height: 1.85;
    max-width: 100%;
    margin-bottom: 1.1rem;
  }
  .hero-buttons { gap: 0.9rem; }
}

/* CJK 兜底（不中断加连字符） */
.hero-text:lang(zh),
.hero-text:lang(ja),
.hero-text:lang(ko) {
  hyphens: manual;
  word-break: break-word;
}

/* 对创作流程第一步图片加对号的样式 */
.image-with-check {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 8px;
}
.image-with-check img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.checkmark {
    color: #22c55e;
    font-size: 2.5rem;
    font-weight: bold;
    margin-top: 0.5rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.12);
    line-height: 1;
    display: block;
    text-align: center;
}

/* 创作流程图片网格固定2行3列，整体3:2比例 */
.process-image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 2px;
    width: 100%;
    max-width: 600px;
    aspect-ratio: 3/2;
    background: #f8f9fa;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    margin: 0 auto;
    align-items: center;
    justify-items: center;
}
.image-with-check {
    width: 100%;
    aspect-ratio: 1/1;
    background: #fff;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.image-with-check img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: block;
}
.checkmark {
    position: absolute;
    left: 50%;
    bottom: 8%;
    transform: translateX(-50%);
    color: #22c55e;
    font-size: 2.2rem;
    font-weight: bold;
    text-shadow: 0 2px 8px rgba(0,0,0,0.12);
    line-height: 1;
    pointer-events: none;
    z-index: 2;
}
.image-with-check.empty .checkmark {
    display: none;
}
.wrongmark {
    position: absolute;
    left: 50%;
    bottom: 8%;
    transform: translateX(-50%);
    color: #ef4444;
    font-size: 2.2rem;
    font-weight: bold;
    text-shadow: 0 2px 8px rgba(0,0,0,0.12);
    line-height: 1;
    pointer-events: none;
    z-index: 2;
}
.image-with-check.empty .wrongmark {
    display: none;
}
/* 流程区域响应式 - 桌面端 */
@media (min-width: 768px) {
    .process-item {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 4rem;
    }
    
    /* 第二个流程项：右文左图 */
    .process-item.reverse {
        flex-direction: row-reverse;
    }
    
    .process-content {
        flex: 1 1 50%;
        margin: 0;
    }
    
    .process-image-grid,
    .process-image-rows {
        flex: 1 1 50%;
        margin: 0;
        max-width: 500px;
    }
    
    /* 确保reverse布局中的内容对齐 */
    .process-item.reverse .process-content {
        text-align: left;
    }
}

/* 流程3数学式图片区域 */
.process-image-math {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  max-width: 720px;
  aspect-ratio: 9/4;
  margin: 0 auto;
  justify-content: center;
  align-items: center;
}
.math-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 100%;
}
.image-math-cell {
  flex: 1 1 0;
  aspect-ratio: 3/4;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  min-width: 0;
}
.image-math-cell img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
  display: block;
}
.plus-sign {
  color: #222;
  font-size: 1rem;
  font-weight: bold;
  margin: 0 1px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.equal-sign {
  color: #22c55e;
  font-size: 1rem;
  font-weight: bold;
  margin: 0 1px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.math-row-relative {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 0;
  margin-bottom: 12px;
}
.math-row-relative .image-math-cell {
  flex: 1 1 0;
  aspect-ratio: 3/4;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  min-width: 0;
  margin: 0;
}
.plus-sign-overlay {
  position: absolute;
  left: 33.33%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: #222;
  font-size: 2.2rem;
  font-weight: bold;
  text-shadow: 0 0 6px #fff, 0 2px 8px rgba(0,0,0,0.18);
  z-index: 2;
  pointer-events: none;
  opacity: 0.95;
}
.equal-sign-overlay {
  position: absolute;
  left: 66.66%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: #22c55e;
  font-size: 2.2rem;
  font-weight: bold;
  text-shadow: 0 0 6px #fff, 0 2px 8px rgba(0,0,0,0.18);
  z-index: 2;
  pointer-events: none;
  opacity: 0.95;
}
@media (max-width: 767px) {
  .process-image-math {
    max-width: 100%;
    width: 100%;
    padding: 0;
    aspect-ratio: 9/4;
    gap: 4px;
    box-sizing: border-box;
  }
  .math-row {
    gap: 1px;
  }
  .plus-sign, .equal-sign {
    font-size: 0.9rem;
    margin: 0 0.5vw;
  }
  .plus-sign-overlay, .equal-sign-overlay {
    font-size: 1.4rem;
  }
  .math-row-relative {
    margin-bottom: 6px;
    width: 100%;
  }
  .image-math-cell {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
  }
}

/* 悬浮在线客服按钮 */
.floating-chat-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #00b894, #00a085);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 184, 148, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    animation: float 3s ease-in-out infinite;
}

.floating-chat-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 184, 148, 0.4);
    background: linear-gradient(135deg, #00a085, #008f7a);
}

.floating-chat-btn:active {
    transform: scale(0.95);
}

.chat-icon {
    font-size: 24px;
    color: white;
}

.chat-tooltip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.chat-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border-left: 6px solid rgba(0, 0, 0, 0.8);
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}

.floating-chat-btn:hover .chat-tooltip {
    opacity: 1;
    visibility: visible;
}

/* 悬浮动画 */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .floating-chat-btn {
        bottom: 15vh !important;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    
    .chat-icon {
        font-size: 20px;
    }
    
    .chat-tooltip {
        font-size: 12px;
        padding: 6px 10px;
    }
}

/* 智能字体大小调整 - 根据文字长度自动调整 */
.service-card h3[data-text-length="long"] {
    font-size: clamp(0.7rem, 1.8vw, 1.1rem);
}

.service-card h3[data-text-length="medium"] {
    font-size: clamp(0.9rem, 2vw, 1.3rem);
}

.service-card h3[data-text-length="short"] {
    font-size: clamp(1.1rem, 2.3vw, 1.4rem);
}

/* 价格标签智能调整 */
.service-card .price-tag[data-text-length="long"] {
    font-size: clamp(0.6em, 1.8vw, 0.8em);
}

.service-card .price-tag[data-text-length="medium"] {
    font-size: clamp(0.7em, 2vw, 0.9em);
}

.service-card .price-tag[data-text-length="short"] {
    font-size: clamp(0.8em, 2.2vw, 1.05em);
}

/* 英文版本特色卡片的文字位置调整 */
html[lang="en"] .service-card.featured h3,
html[lang="en"] .service-card.featured p {
    transform: translateY(-8px);
}

html[lang="en"] .service-card.featured .service-price {
    transform: translateY(-8px);
}
