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

html,
body {
    overflow-x: hidden;
    max-width: 100%;
}

/* 防止水平滚动的全局样式 */
.layout_pattern {
    max-width: 100%;
    overflow-x: hidden;
}

.navbar {
    max-width: 100%;
    overflow-x: hidden;
}

/* 确保所有行和列不会超出容器 */
.row {
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
}

.col-md-4,
.col-md-12,
.col-6 {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100%;
}

/* 确保所有section和container不会超出视口 */
section,
.container,
.ftco-footer,
.lowest {
    max-width: 100vw;
    overflow-x: hidden;
}

/* 修复可能的Bootstrap容器问题 */
.container-fluid {
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
}

body {
    font-family:
        'Noto Sans TC',
        -apple-system,
        BlinkMacSystemFont,
        'Segoe UI',
        sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

/* 导航栏样式 - 优化层级 */
.main-header {
    background-color: #ffffff;
    padding: 14px 0;
    border-bottom: 1px solid #e0e0e0;
    position: static;
    top: 0;
    z-index: 100; /* 降低z-index值 */
}

/* 只在大屏幕上使用sticky定位 */
@media (min-width: 769px) {
    .main-header {
        position: sticky;
        z-index: 100; /* 保持较低的层级 */
    }
}

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

.logo a {
    text-decoration: none;
    font-size: 24px;
    font-weight: 700;
    color: #58b5e1; /* 图片中的蓝色 */
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 38px;
}

.main-nav a {
    text-decoration: none;
    color: #2b2118;
    font-size: 16px;
    font-weight: 600;
    padding-bottom: 5px;
    position: relative;
    transition: color 0.3s ease;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: transparent;
    transition: background-color 0.3s ease;
}

.main-nav a:hover {
    color: var(--brand);
}

.main-nav a:hover::after {
    background-color: var(--brand);
}

/* 首頁 hero 樣式見檔案末段「Hero：滿幅背景照片」 */

/* 舊 hero 樣式已移除（元素不存在）；新樣式見檔案末段 */

/* 原有样式 */
.scale-section {
    padding: 100px 0;
    background-color: #ffffff;
}

.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 40px;
}

.section-header {
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 60px;
}

.section-header h2 {
    font-size: 38px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 0;
    line-height: 1.1;
    flex: 0 0 auto;
    max-width: 779px;
}

.section-header p {
    font-size: 16px;
    color: #666;
    max-width: 512px;
    line-height: 1.8;
    flex: 1;
    margin-top: 20px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 80px;
}

.card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    /* box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06); 移除阴影 */
    transition: transform 0.3s ease;
    border: none; /* 明确设置无边框 */
}

.card:hover {
    transform: translateY(-8px);
    /* box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12); 移除悬停阴影 */
}

.card-image {
    height: 280px;
    overflow: hidden;
    position: relative;
    margin-top: 16px;
}

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

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

.card-content {
    padding-top: 16px;
    padding-right: 32px;
    padding-left: 32px;
    padding-bottom: 0px; /* 上边距设为16px */
}

.card-tag {
    display: inline-block;
    font-size: 14px;
    color: #888;
    margin-bottom: 5px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.card-content h3 {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
    line-height: 1.2;
}

.card-content p {
    font-size: 16px;
    color: #666;
    line-height: 1.7;
    letter-spacing: 0.2px;
    min-width: 366px;
}

.section-footer {
    text-align: center;
}

.cta-button {
    display: inline-block;
    background-color: #1a1a1a;
    color: white;
    padding: 18px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(33, 33, 33, 1);
    letter-spacing: 0.5px;
    margin-top: 0;
    -webkit-box-shadow: 0 4px 20px rgba(33, 33, 33, 1);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(66, 133, 244, 0.4);
    background-color: #2d2d2d;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .container {
        padding: 0 30px;
    }

    .section-header {
        flex-direction: column;
        gap: 30px;
    }

    .section-header h2 {
        font-size: 48px;
        max-width: 100%;
    }

    .section-header p {
        max-width: 100%;
        margin-top: 0;
    }
}

@media (max-width: 768px) {
    .scale-section {
        padding: 60px 0;
    }

    .section-header h2 {
        font-size: 36px;
    }

    .cards-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .card-content {
        padding: 30px 24px;
    }

    .card-content h3 {
        font-size: 24px;
    }
}

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

    .section-header h2 {
        font-size: 28px;
    }

    .card-image {
        height: 220px;
    }

    .card-content {
        padding: 24px 20px;
    }

    .card-content h3 {
        font-size: 20px;
    }
}

/* 新模块样式 - 完全匹配图片 */
.smart-sales-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
    background-color: #f8f9fa;
}

/* 标题区域 */
.hero-section {
    text-align: center;
    margin-bottom: 100px;
}

.main-title {
    font-size: 46px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 30px;
    letter-spacing: 3px;
    font-family: 'Noto Sans TC', sans-serif;
}

.subtitle {
    font-size: 18px;
    color: #666;
    margin-bottom: 50px;
    line-height: 1.8;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.learn-more-btn {
    background-color: #d4a574;
    color: white;
    padding: 18px 45px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Noto Sans TC', sans-serif;
    box-shadow: 0 4px 15px rgba(212, 165, 116, 0.3);
}

.learn-more-btn:hover {
    background-color: #c49564;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 165, 116, 0.4);
}

/* 瀑布滚动图片模块 */
.waterfall-container {
    width: 100%;
    max-width: 1000px;
    height: 420px;
    margin: 0 auto;
    display: flex;
    gap: 20px;
    overflow: hidden;
    border-radius: 16px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.waterfall-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
    animation: waterfallFlow 15s linear infinite;
}

.waterfall-column:nth-child(2) {
    animation-delay: -5s;
    animation-direction: reverse;
}

.waterfall-column:nth-child(3) {
    animation-delay: -10s;
}

.waterfall-column img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.waterfall-column img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* 瀑布流动画 - 逆流效果 */
@keyframes waterfallFlow {
    0% {
        transform: translateY(100%);
    }
    100% {
        transform: translateY(-100%);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .waterfall-container {
        width: 100%;
        max-width: 500px;
        height: 300px;
        gap: 10px;
        padding: 15px;
    }

    .waterfall-column {
        gap: 10px;
    }

    .waterfall-column img {
        height: 120px;
    }
}

@media (max-width: 480px) {
    .waterfall-container {
        height: 250px;
        padding: 10px;
    }

    .waterfall-column img {
        height: 100px;
    }
}

/* 服饰美妆卖家模块 - 智慧銷貨存板块 */
.fashion-beauty-section {
    padding: 120px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    overflow: hidden;
    margin: 80px 0; /* 增加上下边距，确保与其他板块分离 */
    position: relative;
    z-index: 1; /* 确保独立层级 */
}

.fashion-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    gap: 100px;
}

/* 左侧内容区域 - 降低层级 */
.content-area {
    flex: 1;
    max-width: 500px;
    position: relative;
    z-index: 1; /* 降低文字内容层级 */
}

.section-title {
    font-size: 48px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.2;
    margin-bottom: 30px;
    font-family: 'Noto Sans TC', sans-serif;
    letter-spacing: 1px;
    position: relative;
    z-index: 1; /* 降低标题层级 */
}

.section-description {
    font-size: 18px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 50px;
    font-family: 'Noto Sans TC', sans-serif;
    position: relative;
    z-index: 1; /* 降低描述层级 */
}

.action-button {
    background-color: #1a1a1a;
    color: white;
    padding: 18px 45px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Noto Sans TC', sans-serif;
    box-shadow: 0 8px 25px rgba(26, 26, 26, 0.2);
    position: relative;
    z-index: 1; /* 降低按钮层级 */
}

.action-button:hover {
    background-color: #333;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(26, 26, 26, 0.3);
}

/* 右侧图片占位区域 - 提高层级 */
.image-placeholder-area {
    flex: 1;
    position: relative;
    height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5; /* 提高图片区域层级 */
}

.image-placeholder {
    position: absolute;
    width: 100%;
    max-width: 300px;
    height: 500px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 3px dashed #ccc;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.image-placeholder:hover {
    border-color: #666;
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* 第一个占位符 - 提高层级 */
.placeholder-1 {
    top: 50px;
    left: 0;
    z-index: 6; /* 提高后层图片层级 */
    transform: rotate(-5deg);
    background: linear-gradient(135deg, #e3f2fd 0%, #ffffff 100%);
}

/* 第二个占位符 - 提高层级 */
.placeholder-2 {
    top: 0;
    right: 0;
    z-index: 7; /* 提高前层图片层级 */
    transform: rotate(5deg);
    background: linear-gradient(135deg, #fce4ec 0%, #ffffff 100%);
}

.placeholder-content {
    text-align: center;
    color: #666;
}

.placeholder-text {
    font-size: 18px;
    font-weight: 600;
    display: block;
    margin-bottom: 10px;
    font-family: 'Noto Sans TC', sans-serif;
}

.placeholder-size {
    font-size: 14px;
    color: #999;
    margin: 0;
    font-family: 'Noto Sans TC', sans-serif;
}

/* 当需要添加实际图片时，可以使用这些类 */
.image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 17px;
}

.image-placeholder.has-image {
    border: none;
    background: none;
}

.image-placeholder.has-image .placeholder-content {
    display: none;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .fashion-container {
        gap: 60px;
        padding: 0 30px;
    }

    .section-title {
        font-size: 42px;
    }
}

@media (max-width: 768px) {
    .fashion-beauty-section {
        padding: 80px 0;
    }

    .fashion-container {
        flex-direction: column;
        gap: 60px;
        text-align: center;
    }

    .content-area {
        max-width: 100%;
    }

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

    .image-placeholder-area {
        height: 400px;
    }

    .image-placeholder {
        width: 250px;
        height: 400px;
    }

    .placeholder-1 {
        left: -20px;
        top: 30px;
    }

    .placeholder-2 {
        right: -20px;
    }
}

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

    .section-title {
        font-size: 28px;
    }

    .section-description {
        font-size: 16px;
    }

    .image-placeholder-area {
        height: 350px;
    }

    .image-placeholder {
        width: 200px;
        height: 320px;
    }

    .placeholder-1 {
        left: -10px;
        top: 20px;
    }

    .placeholder-2 {
        right: -10px;
    }
}

/* 服务特色模块 - 专业顾问板块 */
.services-features-section {
    padding: 80px 0 100px 0;
    background-color: #ffffff;
    margin: 80px 0;
    position: relative;
    z-index: 3; /* 独立层级，高于智慧销货存 */
    clear: both;
}

.services-features-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    position: relative;
    z-index: 4; /* 容器层级 */
}

.feature-item {
    text-align: left;
    padding: 20px;
    background-color: #ffffff;
    transition: all 0.3s ease;
    position: relative;
    z-index: 5; /* 每个特色项目的层级 */
}

.feature-icon {
    margin-bottom: 20px;
    position: relative;
    z-index: 6; /* 图标层级 */
}

.icon-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 20px; /* 修改为四角半圆 */
    overflow: hidden;
    position: relative;
    z-index: 6; /* 图标占位符层级 */
}

.icon-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px; /* 确保图片也应用此圆角 */
}

.feature-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 12px;
    line-height: 1.3;
    font-family: 'Noto Sans TC', sans-serif;
    position: relative;
    z-index: 10; /* 适中的层级 */
}

.feature-description {
    font-size: 14px;
    color: #666666;
    line-height: 1.6;
    margin: 0;
    font-family: 'Noto Sans TC', sans-serif;
    position: relative;
    z-index: 10; /* 适中的层级 */
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .services-features-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 30px;
    }
}

@media (max-width: 768px) {
    .services-features-section {
        padding: 40px 0;
    }

    .services-features-container {
        gap: 30px;
    }

    .feature-item {
        padding: 15px;
    }

    .icon-placeholder {
        width: 55px;
        height: 55px;
        border-radius: 18px; /* 响应式调整 */
    }
    .icon-placeholder img {
        border-radius: 18px;
    }
}

@media (max-width: 480px) {
    .icon-placeholder {
        width: 50px;
        height: 50px;
        border-radius: 15px; /* 响应式调整 */
    }
    .icon-placeholder img {
        border-radius: 15px;
    }

    .feature-title {
        font-size: 16px;
    }

    .feature-description {
        font-size: 13px;
    }
}

/* 系统合作夥伴部分样式 */
.partners-section {
    /* padding: 40px 0; */
    background-color: #ffffff;
}

.partners-header {
    text-align: center;
    margin-bottom: 60px;
}

.partners-title {
    font-size: 36px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.3;
}

.partners-subtitle {
    font-size: 20px;
    color: #666;
    margin-bottom: 15px;
    font-weight: 500;
}

.partners-description {
    font-size: 16px;
    color: #888;
    line-height: 1.6;
}

/* 合作伙伴滚动行样式 */
.partners-row {
    /* margin-bottom: 30px; */
    position: relative;
}

.partners-scroll {
    display: flex;
    align-items: center;
    gap: 40px;
    animation: scroll-left 30s linear infinite;
    width: max-content;
    padding: 20px 0;
    /* 确保滚动流畅 */
    will-change: transform;
}

.partners-scroll.second-row {
    animation: scroll-left 25s linear infinite;
    animation-delay: -15s;
    /* 确保滚动流畅 */
    will-change: transform;
}

/* 移除鼠标悬停暂停效果，让滚动持续进行 */

/* 滚动动画 */
@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.partner-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
    min-width: 120px;
}

/* 简化悬停效果，只保留轻微的上移 */
.partner-item:hover {
    transform: translateY(-3px);
}

.partner-logo {
    width: 100%;
    max-width: 250px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.partner-logo:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border-color: #e0e0e0;
}

.logo-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: all 0.3s ease;
}

/* 移除logo图片的缩放效果 */

/* 响应式设计 */
@media (max-width: 768px) {
    .partners-section {
        /* padding: 30px 0; */
    }

    .partners-title {
        font-size: 28px;
    }

    .partners-subtitle {
        font-size: 18px;
    }

    .partners-scroll {
        gap: 30px;
    }

    .partner-logo {
        width: 100px;
        height: 70px;
        padding: 12px;
    }

    .partners-scroll {
        animation-duration: 20s;
    }

    .partners-scroll.second-row {
        animation-duration: 18s;
    }
}

@media (max-width: 480px) {
    .partners-scroll {
        gap: 20px;
    }

    .partner-logo {
        width: 80px;
        height: 60px;
        padding: 10px;
    }

    .partners-scroll {
        animation-duration: 15s;
    }

    .partners-scroll.second-row {
        animation-duration: 13s;
    }
}

/* 新增底部内容样式 */
.lowest {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 60px 0;
    margin-top: 0px;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.lowest h2 {
    color: #333;
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.lowest p {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 15px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.lowest .btn-primary {
    background: linear-gradient(45deg, #007bff, #0056b3);
    border: none;
    padding: 12px 30px;
    font-size: 1.1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.lowest .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

/* Footer样式 */
.ftco-footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #ecf0f1;
    padding: 60px 0 30px;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.ftco-footer h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: 600;
    position: relative;
}

.ftco-footer h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(45deg, #3498db, #2980b9);
    border-radius: 2px;
}

.ftco-footer p {
    color: #bdc3c7;
    line-height: 1.6;
    margin-bottom: 15px;
}

.ftco-footer ul {
    margin: 0;
    padding: 0;
}

.ftco-footer li {
    color: #bdc3c7;
    margin-bottom: 8px;
    padding-left: 15px;
    position: relative;
}

.ftco-footer li::before {
    content: '•';
    color: #3498db;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.ftco-footer hr {
    border-color: #34495e;
    margin: 40px 0 30px;
}

.ftco-footer .text-center p {
    color: #95a5a6;
    font-size: 0.9rem;
    text-align: center;
}

/* 容器样式 */
.container {
    /* max-width: 100%; */
    padding-left: 15px;
    padding-right: 15px;
    margin: 0 auto;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .lowest h2 {
        font-size: 2rem;
    }

    .lowest p {
        font-size: 1rem;
    }

    .ftco-footer {
        padding: 40px 0 20px;
    }

    .ftco-footer .col-md-4 {
        margin-bottom: 30px;
    }
}
/* 2020-08-26新增 */

.lowest {
    background-image: url(../images/bg4.jpg);
    background-position: center;
    /* background-attachment: fixed; */
    background-size: cover;
    background-repeat: no-repeat;
}

.lowest .block {
    padding: 0 15px;
    color: #fff;
}

.lowest p {
    color: #fff;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.lowest .block h3 {
    color: #fff;
}

.lowest .logo {
    width: 170px;
}

@media screen and (min-width: 1024px) {
    .lowest .container {
        display: flex;
        justify-content: space-between;
    }

    .lowest .block {
        width: 25%;
    }

    .lowest .block:first-child {
        width: 79%;
    }
}

.ftco-footer {
    font-size: 16px;
    background: #38373c;
    padding: 1em 0;
    z-index: 0;
}

.ftco-footer .ftco-footer-logo {
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.ftco-footer .ftco-footer-widget h2 {
    font-weight: normal;
    color: #fff;
    margin-bottom: 40px;
    font-size: 22px;
    font-weight: 600;
}

.ftco-footer p {
    color: #eee;
    margin: 0 auto;
    font-size: 12px;
}

.ftco-footer a {
    color: rgba(255, 255, 255, 0.7);
}

.ftco-footer a:hover {
    color: #fff;
}

.ftco-footer-social li {
    list-style: none;
    margin: 0 10px 0 0;
    display: inline-block;
}

.ftco-footer-social li a {
    height: 50px;
    width: 50px;
    display: block;
    float: left;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    position: relative;
}

.ftco-footer-social li a span {
    position: absolute;
    font-size: 26px;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}

.ftco-footer-social li a:hover {
    color: #fff;
}

.footer-small-nav > li {
    display: inline-block;
}

.footer-small-nav > li a {
    margin: 0 10px 10px 0;
}

.footer-small-nav > li a:hover,
.footer-small-nav > li a:focus {
    color: #6e5773;
}

.media .ftco-icon {
    width: 100px;
}

.media .ftco-icon span {
    color: #6e5773;
}

/* 移动端响应式调整 */
@media (max-width: 768px) {
    .main-header {
        position: static;
        z-index: auto;
    }

    .fashion-beauty-section {
        padding: 80px 0;
    }

    .fashion-container {
        flex-direction: column;
        gap: 60px;
        padding: 0 20px;
    }

    .content-area {
        text-align: center;
        z-index: 10; /* 移动端文字层级更高 */
    }

    .section-title {
        font-size: 36px;
        z-index: 11;
    }

    .section-description {
        font-size: 16px;
        z-index: 11;
    }

    .action-button {
        z-index: 12;
    }

    .image-placeholder-area {
        height: 400px;
        z-index: 8; /* 移动端图片区域层级 */
    }

    .services-features-section {
        padding: 40px 0;
        z-index: 13; /* 移动端专业顾问板块层级 */
    }

    .services-features-container {
        gap: 30px;
        z-index: 14;
    }

    .feature-item {
        padding: 15px;
        z-index: 15;
    }

    .feature-title {
        z-index: 16;
    }

    .feature-description {
        z-index: 16;
    }
}

@media (max-width: 480px) {
    .main-header {
        position: relative;
        z-index: auto;
        padding: 15px 0;
    }

    .fashion-beauty-section {
        padding: 60px 0;
        margin: 40px 0;
    }

    .services-features-section {
        padding: 40px 0 60px 0;
        margin: 40px 0;
    }

    .services-features-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .image-placeholder {
        height: 320px;
    }

    .placeholder-1 {
        left: -10px;
        top: 20px;
    }

    .placeholder-2 {
        right: -10px;
    }
}

/* 移除可能导致模糊的filter效果 */
* {
    filter: none !important; /* 强制移除所有filter效果 */
}

/* 添加板块间的视觉分隔 */
.fashion-beauty-section::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ddd, transparent);
}

.services-features-section::before {
    content: '';
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ddd, transparent);
}

/* ===== 導覽列（依設計稿）===== */
:root {
    --brand: #cb4d40;
    --brand-dark: #b03f34;
}

.main-header {
    background-color: #fff;
    position: relative;
    z-index: 10;
}

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

/* 4 個選單靠右，緊鄰「註冊申請」按鈕 */
.main-nav {
    margin-left: auto;
}

/* Logo：購物車圖示 + 站名 + 標語（線條深灰、車斗橙紅格紋、站名黑、標語橙紅） */
.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #4a4a4a;
}

.logo-icon {
    display: flex;
    align-items: center;
    color: #4a4a4a;
}

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

.logo-text strong {
    font-size: 22px;
    font-weight: 800;
    color: #1a1a1a;
}

.logo-text small {
    font-size: 11px;
    color: #e8704f;
    letter-spacing: 0.5px;
}

.main-nav ul {
    align-items: center;
    height: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0;
}

/* 註冊申請：紅色圓角按鈕 */
.nav-cta {
    display: flex;
    align-items: center;
    height: 46px;
    background-color: var(--brand);
    color: #fff;
    padding: 0 26px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
    transition: background-color 0.3s ease;
}

.nav-cta:hover {
    background-color: var(--brand-dark);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    height: 2px;
    width: 22px;
    margin: 0 auto;
    background-color: #333;
}

/* ===== Hero：滿幅背景照片，文字疊在左側淺色留白處 ===== */
.hero-banner {
    position: relative;
    padding: 0;
    background-image: url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    min-height: 660px;
    display: flex;
    align-items: center;
}

.hero-banner::before,
.hero-banner::after {
    display: none;
}

.hero-banner .container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

/* 左側文案 */
.hero-copy {
    max-width: 46%;
    padding: 60px 0;
}

/* 右側「一支手機就能做」 */
.hero-features {
    max-width: 46%;
    padding: 60px 0;
    text-align: center;
}

.hero-features-title {
    font-size: 34px;
    font-weight: 800;
    color: #2b2118;
    margin: 0 0 26px;
    letter-spacing: 0.5px;
}

.hero-eyebrow {
    font-size: 17px;
    font-weight: 700;
    color: var(--brand);
    margin: 0 0 16px;
    letter-spacing: 0.5px;
    min-height: 1.6em; /* 打字機逐字出現時版面不跳動 */
}

.hero-headline {
    font-size: 46px;
    font-weight: 800;
    line-height: 1.28;
    color: #2b2118;
    margin: 0 0 16px;
}

.hero-headline span {
    display: block;
}

/* 灰色副標：打造屬於你的商店 */
.hero-sub {
    font-size: 19px;
    font-weight: 500;
    color: #8a7d76;
    margin: 0 0 30px;
    letter-spacing: 0.5px;
    min-height: 1.6em;
}

/* 紅色方框勾選項：依設計稿 2×2 排列（先左欄再右欄）並置中 */
.hero-points {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline-grid;
    grid-template-rows: repeat(2, auto);
    grid-auto-flow: column;
    gap: 16px 40px;
    justify-content: center;
}

.hero-points li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
    color: #3d3128;
}

.hero-points li::before {
    content: '';
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    border-radius: 3px;
    background-color: var(--brand);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-size: 16px 16px;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-cta {
    display: inline-block;
    padding: 16px 46px;
    border-radius: 999px; /* 設計稿為藥丸形按鈕 */
    background-color: var(--brand);
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 22px rgba(203, 77, 64, 0.3);
    transition:
        background-color 0.3s ease,
        transform 0.3s ease;
}

.hero-cta:hover {
    background-color: var(--brand-dark);
    transform: translateY(-2px);
}

/* 進場動效：由下淡入，依 --d 逐項延遲 */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    animation: reveal-up 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
    animation-delay: var(--d, 0s);
}

@keyframes reveal-up {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 左側標題／按鈕：等打字機打完再由 JS 加上 .is-in 淡入 */
.js .hero-anim {
    opacity: 0;
    transform: translateY(18px);
    transition:
        opacity 0.6s ease,
        transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.js .hero-anim.is-in {
    opacity: 1;
    transform: translateY(0);
}

/* 打字機游標 */
[data-typing] {
    white-space: pre-wrap;
}

[data-typing].is-typing::after {
    content: '';
    display: inline-block;
    width: 2px;
    height: 1.05em;
    margin-left: 4px;
    vertical-align: -0.18em;
    background-color: currentColor;
    animation: typing-caret 0.75s step-end infinite;
}

@keyframes typing-caret {
    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* 尊重使用者的減少動態偏好 */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        animation: none;
    }

    .js .hero-anim {
        opacity: 1;
        transform: none;
        transition: none;
    }

    [data-typing].is-typing::after {
        display: none;
    }
}

/* ===== 底部整張視覺 ===== */
.bottom-banner {
    display: block;
    line-height: 0;
}

.bottom-banner img {
    width: 100%;
    height: auto;
    display: block;
}

/* ===== 窄螢幕 ===== */
@media (max-width: 900px) {
    .nav-toggle {
        display: flex;
    }

    .main-header .container {
        flex-wrap: wrap;
        gap: 12px;
    }

    .main-nav {
        order: 3;
        flex-basis: 100%;
        display: none;
    }

    .main-nav.is-open {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 4px;
        padding: 6px 0 10px;
    }

    .main-nav a {
        display: block;
        padding: 10px 2px;
    }

    .main-nav a::after {
        display: none;
    }

    .hero-banner {
        min-height: auto;
        padding: 28px 0;
        /* 窄螢幕：照片改為上方區塊，文字在下不壓字 */
        background-position: center top;
    }

    /* 窄螢幕改為單欄：文案在上、「一支手機就能做」在下，共用一張白色底卡 */
    .hero-banner .container {
        flex-direction: column;
        align-items: stretch;
        gap: 26px;
        padding: 26px 22px;
        background: rgba(255, 255, 255, 0.85);
        border-radius: 12px;
    }

    .hero-copy,
    .hero-features {
        max-width: 100%;
        padding: 0;
    }
}

@media (max-width: 768px) {
    .nav-cta {
        height: 40px;
        padding: 0 16px;
        font-size: 14px;
    }

    .logo-text strong {
        font-size: 18px;
    }

    .logo-text small {
        font-size: 10px;
    }

    .hero-eyebrow {
        font-size: 14px;
        margin-bottom: 12px;
    }

    .hero-headline {
        font-size: 27px;
        margin-bottom: 14px;
    }

    .hero-sub {
        font-size: 15px;
        margin-bottom: 22px;
    }

    .hero-features-title {
        font-size: 22px;
        margin-bottom: 18px;
    }

    .hero-points {
        grid-template-rows: none;
        grid-template-columns: max-content;
        grid-auto-flow: row;
        gap: 12px;
        margin-bottom: 0;
    }

    .hero-points li {
        font-size: 15px;
    }

    .hero-cta {
        padding: 14px 32px;
        font-size: 15px;
    }
}
