@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+TC:wght@700&display=swap');

/* 基础设置 */
html, body {
    width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* 容器基础样式 */
.container-wrapper,
.intro-section,
.services-section,
.portfolio-section,
.contact-section,
.partners-section {
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
}

.container-wrapper {
    padding: 50px 0;
    position: relative;
    z-index: 1;
}

.container,
.intro-container,
.services-container,
.portfolio-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 100px;
    box-sizing: border-box;
}

.container {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    position: relative;
    z-index: 2;
}

img {
    max-width: 100%;
    height: auto;
}

/* 左侧内容 */
.left-content {
    flex: 1;
    padding-left: 40px;
    position: relative;
    z-index: 2;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.right-content {
    flex: 1;
    position: relative;
    z-index: 2;
}

/* 标题和文本样式 */
h1 {
    font-size: 48px;
    margin-bottom: 10px;
    line-height: 1.2;
    color: #333;
    animation: fadeInUp 1s ease-out;
}

.subtitle {
    font-size: 20px;
    margin-bottom: 30px;
    font-weight: normal;
    position: relative;
    color: #666;
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

.subtitle::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #C37EDB;
    transform: scaleX(0);
    transform-origin: left;
    animation: drawLine 1s ease-out 1s forwards;
}

.description {
    font-size: 16px;
    margin-bottom: 30px;
    line-height: 1.6;
    color: #666;
    animation: fadeInUp 1s ease-out 0.4s backwards;
}

/* 按钮样式 */
.buttons {
    display: flex;
    gap: 20px;
    animation: fadeInUp 1s ease-out 0.6s backwards;
}

.button {
    padding: 12px 35px;
    border: 2px solid #C37EDB;
    border-radius: 25px;
    text-decoration: none;
    color: #C37EDB;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: transparent;
}

.button:hover {
    background-color: #C37EDB;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* 区块标题 */
.section-title {
    font-size: 36px;
    text-align: center;
    margin-bottom: 50px;
    color: #333;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, #C37EDB, #88A3E2);
}

/* ============ 重新設計的介紹區塊 ============ */

/* 介紹區塊主容器 */
.intro-section {
    position: relative;
    min-height: 45vh;
    padding: 35px 20px;
    overflow: hidden;
    background: linear-gradient(135deg, 
        #fafbff 0%, 
        #f0f2ff 25%,
        #e8ecff 50%,
        #f2f4ff 75%,
        #fafcff 100%);
    background-size: 400% 400%;
    animation: subtleGradientShift 20s ease infinite;
}

@keyframes subtleGradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 粒子動畫背景 */
.intro-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.intro-background::before {
    content: '';
    position: absolute;
    width: 300%;
    height: 300%;
    background: 
        radial-gradient(circle at 25% 25%, rgba(139, 69, 219, 0.03) 0%, transparent 25%),
        radial-gradient(circle at 75% 75%, rgba(99, 102, 241, 0.02) 0%, transparent 25%),
        radial-gradient(circle at 50% 50%, rgba(168, 85, 247, 0.01) 0%, transparent 30%);
    animation: floatingParticles 25s linear infinite;
}

@keyframes floatingParticles {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* 裝飾性幾何元素 */
.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(139, 69, 219, 0.02);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(139, 69, 219, 0.05);
    animation: gentleFloat 12s ease-in-out infinite;
}

.shape-1 {
    top: 15%;
    left: 8%;
    width: 40px;
    height: 40px;
    animation-delay: 0s;
}

.shape-2 {
    top: 25%;
    right: 12%;
    width: 60px;
    height: 60px;
    animation-delay: 3s;
}

.shape-3 {
    bottom: 35%;
    left: 10%;
    width: 50px;
    height: 50px;
    animation-delay: 6s;
}

.shape-4 {
    bottom: 20%;
    right: 18%;
    width: 45px;
    height: 45px;
    animation-delay: 9s;
}

@keyframes gentleFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0.2; }
    50% { transform: translateY(-10px) rotate(180deg); opacity: 0.4; }
}

/* 主容器 - 現代卡片設計 */
.intro-container {
    position: relative;
    z-index: 10;
    max-width: 700px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px);
    border-radius: 14px;
    border: 1px solid rgba(139, 69, 219, 0.08);
    box-shadow: 
        0 10px 20px rgba(139, 69, 219, 0.06),
        0 5px 12px rgba(99, 102, 241, 0.04);
    transform: translateY(30px);
    opacity: 0;
    animation: containerReveal 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s forwards;
    overflow: hidden;
}

@keyframes containerReveal {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 標題區域設計 */
.intro-title {
    position: relative;
    font-size: 32px;
    font-weight: 800;
    color: #4c1d95;
    text-align: center;
    margin: 25px 0 20px 0;
    letter-spacing: 0.5px;
    line-height: 1.2;
    opacity: 0;
    transform: translateY(20px);
    animation: titleFadeIn 1s ease-out 0.8s forwards;
}

.intro-title::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, 
        rgba(139, 69, 219, 0.3) 0%, 
        rgba(99, 102, 241, 0.2) 50%, 
        rgba(168, 85, 247, 0.3) 100%);
    border-radius: 2px;
    animation: titleLineGlow 3s ease-in-out infinite alternate;
}

.intro-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(139, 69, 219, 0.2) 50%, 
        transparent 100%);
    border-radius: 1px;
}

@keyframes titleFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes titleLineGlow {
    from { opacity: 0.3; transform: translateX(-50%) scaleX(0.8); }
    to { opacity: 0.6; transform: translateX(-50%) scaleX(1); }
}

/* 內容區域重新設計 */
.intro-content {
    padding: 0 30px 20px 30px;
    position: relative;
}

.intro-content p {
    position: relative;
    font-size: 14px;
    line-height: 1.6;
    color: #525866;
    margin-bottom: 12px;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    border-left: 3px solid transparent;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(139, 69, 219, 0.04);
    opacity: 0;
    transform: translateY(25px);
    animation: contentSlideIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    transition: all 0.3s ease;
    letter-spacing: -0.1px;
    word-spacing: -0.3px;
}

.intro-content p:nth-child(1) { 
    animation-delay: 1.2s; 
    border-left-color: rgba(139, 69, 219, 0.3);
}
.intro-content p:nth-child(2) { 
    animation-delay: 1.5s; 
    border-left-color: rgba(99, 102, 241, 0.3);
}
.intro-content p:nth-child(3) { 
    animation-delay: 1.8s; 
    border-left-color: rgba(168, 85, 247, 0.3);
}

.intro-content p:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 69, 219, 0.08);
    background: rgba(255, 255, 255, 0.5);
}

@keyframes contentSlideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 裝飾性圓點指示器 */
.intro-container::before {
    content: '';
    position: absolute;
    top: 20px;
    right: 20px;
    width: 8px;
    height: 8px;
    background: linear-gradient(45deg, rgba(139, 69, 219, 0.4), rgba(99, 102, 241, 0.4));
    border-radius: 50%;
    animation: indicatorPulse 2s ease-in-out infinite;
}

.intro-container::after {
    content: '';
    position: absolute;
    bottom: 20px;
    left: 20px;
    width: 6px;
    height: 6px;
    background: linear-gradient(45deg, rgba(168, 85, 247, 0.3), rgba(139, 69, 219, 0.3));
    border-radius: 50%;
    animation: indicatorPulse 2s ease-in-out infinite 1s;
}

@keyframes indicatorPulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.2); }
}

/* 響應式設計優化 */
@media (max-width: 1200px) {
    .intro-container {
        max-width: 800px;
        margin: 0 20px;
    }
    
    .intro-title {
        font-size: 36px;
    }
    
    .intro-content {
        padding: 0 35px 35px 35px;
    }
    
    .intro-content p {
        font-size: 16px;
        padding: 18px 20px;
    }
}

/* 手機版優化設定 */
@media (max-width: 768px) {
    html, body {
        margin: 0;
        padding: 0;
        width: 100vw;
        overflow-x: hidden;
    }
    
    .intro-section {
        min-height: auto;
        padding: 20px 0;
        width: 100vw;
        margin: 0;
        box-sizing: border-box;
    }
    
    .intro-container {
        width: calc(100vw - 10px);
        max-width: 100%;
        margin: 0 5px;
        box-sizing: border-box;
        padding: 0;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.5);
        box-shadow: 
            0 8px 20px rgba(139, 69, 219, 0.08),
            0 4px 12px rgba(99, 102, 241, 0.06);
    }
    
    .intro-title {
        font-size: 20px;
        margin: 15px 0 12px 0;
        color: #553c9a;
        letter-spacing: 0.2px;
        padding: 0 8px;
        text-align: center;
        box-sizing: border-box;
    }
    
    .intro-title::before {
        width: 35px;
        height: 2px;
        top: -6px;
    }
    
    .intro-title::after {
        display: none;
    }
    
    .container,
    .intro-container,
    .services-container,
    .portfolio-container {
        padding: 0 8px;
    }

    .intro-content { 
        padding: 0 4px 12px;
    }
    
    .intro-content p {
        width: 100%;
        margin: 5px 0;
        padding: 8px 6px;
        font-size: 14px;
        line-height: 1.4;
        border-left-width: 2px;
        border-left: 2px solid rgba(139, 69, 219, 0.3);
        letter-spacing: -0.1px;
        word-spacing: -0.3px;
        text-align: justify;
        text-justify: inter-ideograph;
        background: rgba(255, 255, 255, 0.4);
        backdrop-filter: blur(8px);
        box-shadow: 0 2px 6px rgba(139, 69, 219, 0.06);
        border-radius: 6px;
        box-sizing: border-box;
        color: #525866;
    }
    
    .intro-content p:hover {
        background: rgba(255, 255, 255, 0.6);
        box-shadow: 0 3px 10px rgba(139, 69, 219, 0.08);
    }
    
    .shape {
        display: none;
    }
    
    .intro-container::before,
    .intro-container::after {
        display: none;
    }
    
    .curved-text-overlay {
        position: absolute;
        top: -5%;
        left: -5%;
        width: 110%;
        height: 110%;
        pointer-events: none;
        z-index: 20;
        animation: rotate 20s linear infinite;
    }
    
    .curved-text-overlay svg {
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        left: 0;
        overflow: visible;
    }
    
    .curved-text-overlay text {
        fill: #C37EDB;
        font-size: 0.13em;
        font-weight: bold;
        letter-spacing: 0.5px;
    }

    /* 修復case區塊手機版圖片佈局 */
    .case-image-2 div[style*="height: 300px"] {
        height: 200px !important;
    }
    
    .case-image-2 .img-bottom[style*="transform: scale(0.5)"] {
        transform: scale(0.3) !important;
        top: 50px !important;
        left: 10px !important;
    }
    
    .case-image-2 .img-top[style*="transform: scale(0.25)"] {
        transform: scale(0.2) !important;
        top: 10px !important;
        left: 120px !important;
    }
    
    .case-image-2 .img-bottom[style*="top: 155px"] {
        transform: scale(0.2) !important;
        top: 120px !important;
        left: 120px !important;
    }
    
    /* 修復手機版影片顯示問題 */
    .video-bottom {
        display: block !important;
        width: 70% !important;
        height: auto !important;
        top: 25% !important;
        left: 15% !important;
        z-index: 5;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .case-image-7 {
        position: relative;
        width: 100%;
        height: 250px;
    }
    .case-image-7 .video-bottom{
  position: absolute;
  top: 0%;
  left: 20%;
  width: 75%;
  height: auto;
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 10;            /* 壓過背景圖與 GIF */
  pointer-events: none;   /* 避免遮到其他可點元素（可移除） */
  -webkit-transform: translateZ(0); /* iOS 偶爾不渲染的保險 */
}
}

@media (max-width: 480px) {
    .intro-section {
        padding: 30px 0;
    }
    
    .intro-container {
        width: calc(100vw - 6px);
        margin: 0 3px;
        border-radius: 16px;
    }
    
    .intro-title {
        font-size: 22px;
        margin: 18px 0 14px 0;
        line-height: 1.3;
        padding: 0 6px;
    }
    
    .intro-title::before {
        width: 35px;
        height: 2px;
        top: -8px;
    }
    
    .container,
    .services-container,
    .portfolio-container,
    .intro-container {
        padding: 0 6px;
    }
    
    .intro-content {
        padding: 0 3px 14px;
    }
    
    .intro-content p {
        padding: 7px 5px;
        font-size: 14px;
        line-height: 1.35;
        margin: 5px 0;
        letter-spacing: -0.1px;
        word-spacing: -0.3px;
    }
    
    .curved-text-overlay {
        top: -8%;
        left: -8%;
        width: 116%;
        height: 116%;
    }
    
    .curved-text-overlay text {
        font-size: 0.12em;
    }
}

/* ============ 以下为其他区块的原有样式 ============ */

/* 服务区块 */
.services-section {
    padding: 80px 20px;
    background-color: #fff;
    text-align: center;
    position: relative;
    z-index: 1;
}

.perspective-container {
    max-width: 1400px;
    height: 200px;
    margin: 100px auto 0;
    padding: 0 20px;
    perspective: 1200px;
}

.shelf {
    position: relative;
    transform-style: preserve-3d;
    transform: rotateX(20deg);
    height: 100%;
    display: flex;
    justify-content: space-between;
}

.shelf-item {
    width: 18%;
    height: 250px;
    position: relative;
    transform-style: preserve-3d;
    transform: translateZ(20px);
    transition: transform 0.5s ease;
    cursor: default;
    opacity: 0;
    animation: appearFromBottom 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.shelf-item:nth-child(1) { animation-delay: 0.1s; }
.shelf-item:nth-child(2) { animation-delay: 0.3s; }
.shelf-item:nth-child(3) { animation-delay: 0.5s; }
.shelf-item:nth-child(4) { animation-delay: 0.7s; }
.shelf-item:nth-child(5) { animation-delay: 0.9s; }

.shelf-item:hover {
    transform: translateZ(50px) translateY(-20px);
}

.item-content {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: white;
    border-radius: 15px;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    backface-visibility: hidden;
}

.item-shadow {
    position: absolute;
    width: 90%;
    height: 20px;
    bottom: -20px;
    left: 5%;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0) 70%);
    transform: rotateX(90deg);
    transform-origin: center bottom;
}

.service-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.service-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
    text-align: center;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-description {
    font-size: 14px;
    line-height: 1.5;
    color: #666;
    text-align: center;
    height: auto;
    opacity: 1;
    max-height: none;
    margin-top: 0;
}

/* 幻灯片样式 */
.slideshow-container {
    position: relative;
    width: 400px;
    height: 400px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 50%;
    z-index: 1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.dots-container {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 5;
}

.dot {
    cursor: pointer;
    height: 10px;
    width: 10px;
    margin: 0 4px;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.dot.active, .dot:hover {
    background-color: white;
}

.curved-text-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 20;
    animation: rotate 20s linear infinite;
}

.curved-text-overlay svg {
    width: 120%;
    height: 120%;
    position: absolute;
    top: -10%;
    left: -10%;
    overflow: visible;
}

.curved-text-overlay text {
    fill: #C37EDB;
    font-size: 0.2em;
    font-weight: bold;
    letter-spacing: 1px;
}

/* 作品集区块 */
.portfolio-section {
    background-color: #fff;
    padding: 0px 0;
    overflow: hidden;
    position: relative;
}

.portfolio-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    position: relative;
}

.case {
    width: calc(29%);
    margin-bottom: 80px;
    position: relative;
    transition: transform 0.3s ease;
}

.case-title {
    font-size: 24px;
    margin-bottom: 10px;
    text-align: center;
    color: #333;
}

.case-description {
    font-size: 16px;
    color: #666;
    text-align: center;
}

/* 案例样式 */
.case-background02 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../cooperation/images/備審/備審+背景.png');
    transition: transform 0.5s ease;
    border-radius: 30px;
    z-index: 0;
    background-repeat: no-repeat;
}

.case-image-2 {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.case-image-2 .img-bottom {
    position: absolute;
    width: 90%;
    height: auto;
    bottom: 0%;
    left: 20px;
    transition: transform 1s ease, bottom 1s ease;
    transform: scale(1);
    z-index: 1;
}

.case-image-2:hover .img-bottom {
    transform: translateY(-10%);
    opacity: 1;
}

.case-image-2 .img-top {
    position: absolute;
    width: 90%;
    height: auto;
    top: 1%;
    transition: transform 1s ease, top 1s ease;
    transform: translateX(20px);
    z-index: 2;
}

.case-image-2:hover .img-top {
    transform: translateX(20px) translateY(18px);
    opacity: 1;
}

.case-background03 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../cooperation/images/走讀/英文走讀_背景1.png');
    transition: transform 0.5s ease;
    border-radius: 30px;
    z-index: 0;
    background-repeat: no-repeat;
}

.case-image-3 {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 300px;
}

.case-image-3 .img-bottom {
    position: absolute;
    width: 100%;
    height: auto;
    left: 0%;
    top: 5%;
    transition: transform 1s ease, bottom 1s ease;
    transform: scale(1);
    z-index: 2;
}

.case-image-3:hover .img-bottom {
    transform: translateY(3%);
    opacity: 1;
}

.case-image-3 .img-top {
    position: absolute;
    width: 100%;
    height: auto;
    top: 10%;
    transition: transform 2s ease, top 2s ease;
    transform: scale(1.2);
    left: 0%;
    z-index: 1;
}

.case-image-3:hover .img-top {
    transform: translateY(-10%) scale(1.2);
    opacity: 1;
}

.case-background07 {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url('../cooperation/images/萬國/萬國通路_背景.png');
    border-radius: 30px;
    z-index: 0;
    background-repeat: no-repeat;
}

.case-image-7 {
    position: relative;
    width: 100%;
    height: 300px;
}

.case-image-7 .img-bottom {
    position: absolute;
    width: 100%;
    height: auto;
    left: 0%;
    top: 0%;
    transition: transform 1s ease, bottom 1s ease;
    transform: scale(1);
    z-index: 2;
}

.video-bottom {
    position: absolute;
    width: 74%;
    height: auto;
    top: 20%;
    left: 14%;
    z-index: 5;
    transition: clip-path 1s ease-in-out;
}

.gif-container7 {
    width: 200%;
    height: 200%;
    bottom: 60%;
    left: -20%;
    position: relative;
    z-index: 20;
}

.gif7 {
    width: 100%;
    height: 100%;
    display: block;
}

.case-image-7 .img-top {
    position: absolute;
    width: 20%;
    height: auto;
    bottom: -10%;
    left: -5%;
    transition: transform 1s ease;
    transform: scale(1);
    z-index: 2;
}

.case-image-7:hover .img-top {
    animation: bounce 3s ease-out forwards;
    opacity: 1;
}

.portfolio-button {
    display: inline-block;
    margin-top: 50px;
    padding: 15px 40px;
    background: linear-gradient(45deg, #C37EDB, #88A3E2);
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-size: 18px;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 5px 15px rgba(195, 126, 219, 0.4);
    position: relative;
    overflow: hidden;
    z-index: 2;
}

.portfolio-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(195, 126, 219, 0.6);
}

.portfolio-button::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255,255,255,0.2);
    transform: rotate(45deg);
    z-index: -1;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.portfolio-button:hover::before {
    left: 100%;
}

/* 联系表单 */
.contact-section {
    padding: 60px 20px;
    background-color: #f9f9f9;
    position: relative;
}

.contact-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 30px;
}

.contact-form {
    flex: 1;
    min-width: 300px;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    box-sizing: border-box;
}

.contact-info {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-buttons {
    margin-top: 20px;
}

.form-buttons button {
    background-color: #4a5cb9;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.form-buttons button:hover {
    background-color: #3a4ba9;
}

.contact-info p {
    margin-bottom: 20px;
    line-height: 1.6;
}

/* 合作伙伴区块 */
.partners-section {
    padding: 10px 20px;
    background-color: #f9f9f9;
    text-align: center;
    position: relative;
    z-index: 1;
}

.partners-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.partner-item {
    flex: 1 1 calc(20% - 10px);
    max-width: calc(20% - 10px);
    margin-bottom: 20px;
    text-align: center;
}

.partner-logo {
    width: 50%;
    height: auto;
    transition: transform 0.3s ease;
}

.partner-logo:hover {
    transform: scale(1.1);
}

/* LINE按钮 */
.line-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #00c300;
    color: white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
    z-index: 100;
}

.line-button:hover {
    transform: scale(1.1);
}

/* 动画定义 */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 195, 0, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(0, 195, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 195, 0, 0); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(10px, -10px); }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes drawLine {
    to { transform: scaleX(1); }
}

@keyframes appearFromBottom {
    from {
        opacity: 0;
        transform: translateZ(-50px) translateY(100px);
    }
    to {
        opacity: 1;
        transform: translateZ(20px) translateY(0);
    }
}

@keyframes bounce {
    0% {
        transform: translateY(0) translateX(0px) rotate(0deg);
    }
    15% {
        transform: translateY(-60px) translateX(30px) rotate(90deg);
    }
    30% {
        transform: translateY(-40px) translateX(60px) rotate(180deg);
    }
    45% {
        transform: translateY(0) translateX(90px) rotate(270deg);
    }
    60% {
        transform: translateY(-30px) translateX(120px) rotate(360deg);
    }
    75% {
        transform: translateY(-15px) translateX(150px) rotate(450deg);
    }
    90% {
        transform: translateY(0) translateX(180px) rotate(540deg);
    }
    100% {
        transform: translateY(0px) translateX(210px) rotate(630deg);
    }
}

/* 桌面端样式 */
@media (min-width: 1025px) {
    .services-container {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 0;
        padding: 0;
        margin: 0 auto;
        max-width: 1200px;
    }

    .service-item {
        width: 100%;
        height: 100%;
        margin: 0;
        padding: 20px;
        box-sizing: border-box;
        background-color: #f0f0f0;
        border-radius: 0;
    }
}

/* 平板端样式 */
@media (max-width: 1024px) {
    .perspective-container {
        height: 350px;
    }
    
    .shelf-item {
        width: 19%;
        height: 220px;
    }
    
    .service-icon {
        font-size: 36px;
    }
    
    .service-title {
        font-size: 16px;
    }
    
    .service-description {
        font-size: 13px;
    }

    .services-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0;
        padding: 0;
    }

    .service-item {
        width: 100%;
        margin: 0;
        padding: 20px;
        box-sizing: border-box;
        background-color: #f0f0f0;
        border-radius: 0;
    }

    .partners-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .partner-item {
        flex: 0 0 calc(33.333% - 10px);
        max-width: calc(33.333% - 10px);
        margin-bottom: 15px;
    }

    .partner-logo {
        max-width: 80px;
        width: 100%;
        height: auto;
    }
}

/* 手机端样式 */
@media (max-width: 768px) {
    .container {
        flex-direction: column-reverse;
        align-items: center;
        padding: 0 20px;
    }
    
    .left-content {
        width: 100%;
        position: relative;
        top: 0;
        left: 0;
        padding-left: 0;
        text-align: center;
        margin-bottom: 30px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    
    .right-content {
        width: 100%;
        position: relative;
        top: 0;
        display: flex;
        justify-content: center;
    }
    
    h1 {
        font-size: 35px;
        text-align: center;
        width: 100%;
    }
    
    .subtitle {
        font-size: 18px;
        text-align: center;
        width: 100%;
    }
    
    .description {
        font-size: 14px;
        text-align: center;
        width: 100%;
    }
    
    .button {
        width: 200px;
        text-align: center;
        font-size: 14px;
        padding: 12px 35px;
        border: 2px solid #C37EDB;
        border-radius: 25px;
        text-decoration: none;
        color: #C37EDB;
        transition: all 0.3s ease;
        background-color: transparent;
        box-sizing: border-box;
        display: inline-block;
    }

    .buttons {
        display: flex;
        flex-direction: column;
        gap: 15px;
        align-items: center;
        justify-content: center;
        width: 100%;
        margin: 0 auto;
        animation: fadeInUp 1s ease-out 0.6s backwards;
    }

    .slideshow-container {
        width: 300px;
        height: 300px;
        margin: 0 auto;
    }

    .perspective-container {
        height: auto;
        margin-top: 50px;
        perspective: none;
    }
    
    .shelf {
        flex-direction: column;
        align-items: center;
        transform: none;
    }
    
    .shelf-item {
        width: 80%;
        max-width: 300px;
        height: 200px;
        margin-bottom: 40px;
        transform: none !important;
    }
    
    .shelf-item:hover {
        transform: translateY(-10px) !important;
    }
    
    .item-shadow {
        display: none;
    }

    .portfolio-grid {
        justify-content: center;
    }

    .case {
        width: calc(100% - 10px);
        margin-bottom: 80px;
    }

    .case-title {
        font-size: 20px;
        text-align: center;
    }

    .case-description {
        font-size: 14px;
        text-align: left;
    }

    .portfolio-container {
        width: 100%;
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
        box-sizing: border-box;
        text-align: center;
    }

    /* 联系表单手机端优化 */
    .contact-section {
        padding: 40px 15px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .contact-content {
        flex-direction: column;
        max-width: 100%;
        margin: 0;
        gap: 20px;
        padding: 0;
        box-sizing: border-box;
    }
    
    .contact-form {
        width: 100%;
        min-width: auto;
        max-width: 100%;
        padding: 20px;
        box-sizing: border-box;
        margin: 0;
    }
    
    .contact-info {
        width: 100%;
        min-width: auto;
        max-width: 100%;
        padding: 15px;
        box-sizing: border-box;
        margin: 0;
    }
    
    .form-group {
        margin-bottom: 15px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        width: 100%;
        max-width: 100%;
        padding: 12px;
        font-size: 16px;
        box-sizing: border-box;
        margin: 0;
    }
    
    .form-group textarea {
        min-height: 100px;
    }
    
    .form-buttons {
        margin-top: 15px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .form-buttons button {
        padding: 14px 24px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .contact-info p {
        margin-bottom: 15px;
        font-size: 16px;
    }

    .services-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 0;
        padding: 0;
    }

    .service-item {
        width: 100%;
        margin: 0;
        padding: 15px;
        box-sizing: border-box;
        background-color: #f0f0f0;
        border-radius: 0;
    }

    .partners-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .partner-item {
        flex: 0 0 calc(33.333% - 10px);
        max-width: calc(33.333% - 10px);
        margin-bottom: 15px;
    }

    .partner-logo {
        max-width: 80px;
        width: 100%;
        height: auto;
    }
}

/* 超小屏幕优化 */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .slideshow-container {
        width: 250px;
        height: 250px;
    }
    
    h1 {
        font-size: 28px;
        line-height: 1.3;
    }
    
    .subtitle {
        font-size: 16px;
    }
    
    .description {
        font-size: 14px;
        margin-bottom: 25px;
    }
    
    .buttons {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }
    
    .button {
        width: 180px;
        font-size: 13px;
        padding: 10px 25px;
    }

    .contact-section {
        padding: 30px 10px;
    }
    
    .contact-form {
        padding: 15px;
        border-radius: 8px;
    }
    
    .contact-info {
        padding: 10px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px;
        font-size: 16px;
    }
    
    .contact-info p {
        font-size: 15px;
        margin-bottom: 12px;
    }

    .case {
        width: calc(100% - 10px);
    }

    .partner-item {
        flex: 0 0 calc(50% - 10px);
        max-width: calc(50% - 10px);
    }

    .partner-logo {
        max-width: 70px;
    }
}
/* 针对 iPad Air（直立） - 820px */
@media (max-width: 820px) {
    .cases {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between; /* 保持元素左右对齐 */
        gap: 3%; /* 缩小列之间的间距 */
    }
    
    .case {
        width: calc(47%); /* 增加项目的宽度，减少空白区域 */
        margin-bottom: 80px;
        position: relative;
        transition: transform 0.3s ease;
    }
    
    .page-title-container,
    .category-tabs {
        padding-left: 10px; /* 在平板设备上减小与左边的距离 */
    }
    .page-title{
        font-size: 22px;
        margin-left: 10px;
    }
}
@media (max-width: 600px) {
    .cases {
        display: flex;
        flex-wrap: wrap;
        justify-content: center; /* 在手机上居中对齐 */
        margin-left: 0%;
    }

    .case {
        width: calc(100% - 10px); /* 每行显示一个项目，左右留10px空白 */
        margin-bottom: 80px;
    }

    /* 调整文本大小和对齐方式 */
    .case-title {
        font-size: 20px;
        text-align: center; /* 居中文本 */
    }

    .case-description {
        font-size: 14px;
        text-align: left; /* 居中文本 */
    }

    .case-tags {
        justify-content: center; /* 标签居中 */
        margin-bottom: 10px;
    }

    .page-title-container,
    .category-tabs {
        padding-left: 10px; /* 在平板设备上减小与左边的距离 */
    }
    .page-title{
        font-size: 22px;
        margin-left: 10px;
    }
}

@media (max-width: 1180px) {
    .page-title-container,
    .category-tabs {
        padding-left: 15px; /* 在平板设备上减小与左边的距离 */
    }
    .page-title{
        font-size: 22px;
        margin-left: 15px;
    }
}

/* 畫布：固定比例，整塊等比縮放 */
.ar-canvas{
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;      /* 依你的視覺需求可微調比例 */
  overflow: visible;        /* 想裁切就改成 hidden */
}

/* 共用：三張圖都用絕對定位 + 百分比尺寸/位置 */
.ar-img{
  position: absolute;
  display: block;
  height: auto;
  /* 確保不會被父層陰影或圓角裁掉可視需求調整 */
  max-width: none;
}

/* 下面三組是把你原本的 px/scale 換算成百分比，大致對齊原構圖 */
.ar-main{
  width: 48%;   /* 原 50% -> 稍微縮小 */
  left: 7%;
  top: 24%;
}

/* 上面的那張：往上拉一點，並小放大一點以免看起來太遠 */
.ar-top{
  width: 26%;   /* 原 25% */
  right: 7%;
  top: -10%;     /* 原 2% -> 提高到 -3%（更靠上） */
}

/* 下面的那張：往下拉開 */
.ar-bottom{
  width: 26%;   /* 原 25% */
  right: 7%;
  top: 64%;     /* 原 52% -> 拉到 64%（更靠下） */
}

/* 手機不需要額外寫定位，因為是等比縮放；
   只調整外圍留白即可 */
@media (max-width: 768px){
  .case-image-2{ padding: 0 8px; box-sizing: border-box; }
  .ar-canvas{ max-width: 100%; margin: 0 auto; }
  .ar-main{
  width: 48%;   /* 原 50% -> 稍微縮小 */
  left: 7%;
  top: 12%;
}

.case-image-7 { height: 250px; }   /* 讓容器真的有高度 */
  .case-image-7 .video-bottom{
    top: 20%;
    left: 10%;
    width: 100%;
  }
}


