/* syuzen.css */
/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "微軟正黑體", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 主导航栏样式 */
.main-nav {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

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

.logo-img {
    display: none;
    width: 60px;
    height: auto;
}

.logo-text h1 {
    font-size: 24px;
    margin: 0;
}

.logo-text p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* 导航菜单 */
nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav ul li {
    position: relative;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    padding: 10px 0;
    display: block;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #007BFF;
}

/* 下拉菜单 */
.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

nav ul li:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu li a {
    padding: 10px 20px;
    font-size: 14px;
}

/* 主视觉区域 */
.hero-section {
    margin-top: 0;
    height: 40vh;
    background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)),
                url('hero-image.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    text-align: center;
}

.hero-content {
    width: 100%;
    padding: 0 20px;
}

.hero-content h2 {
    font-size: 42px;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 10px;
}

.cta-button {
    display: inline-block;
    padding: 15px 30px;
    background: #007BFF;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 20px;
    transition: background 0.3s;
}

.cta-button:hover {
    background: #0056b3;
}

/* 内容区块样式 */
section {
    padding: 80px 0;
}

section h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

/* 服务项目样式 */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    padding: 40px 30px;
    text-align: center;
}

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

.service-logo {
    margin-bottom: 20px;
    background-color: #fff;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo-circle {
    width: 150px;
    height: 150px;
    object-fit: contain;
    border-radius: 50%;
}

.service-item h3 {
    font-size: 32px;
    margin: 15px 0 5px;
    color: #E86A33;
}

.service-subtitle {
    font-size: 20px;
    color: #4B3621; /* CS logo的棕色 */
    margin-bottom: 15px;
    text-transform: lowercase;
}

.service-description {
    font-size: 16px;
    color: #333;
    margin-bottom: 25px;
}

.service-social {
    margin-top: 20px;
}

.service-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px;
    background: #E86A33;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.service-button:hover {
    background: #d55a25;
    transform: translateY(-2px);
}

.service-button i {
    font-size: 20px;
}

/* 联络我们样式 */
.contact-section {
    background-color: #f8f9fa;
    padding: 80px 0;
}

.contact-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    padding: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

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

.contact-item i {
    font-size: 20px;
    color: #007BFF;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,123,255,0.1);
    border-radius: 50%;
}

.contact-text {
    flex: 1;
}

.contact-text h3 {
    color: #333;
    margin-bottom: 5px;
    font-size: 16px;
}

.contact-text p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.contact-text a {
    color: #007BFF;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-text a:hover {
    color: #0056b3;
}

.contact-text .en {
    font-size: 12px;
    color: #888;
    margin-top: 3px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .contact-wrapper {
        padding: 20px;
    }

    .contact-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 15px;
    }

    .contact-item i {
        margin-bottom: 10px;
    }

    .service-item {
        padding: 20px;
    }

    .service-logo {
        width: 140px;
        height: 140px;
    }

    .logo-circle {
        width: 120px;
        height: 120px;
    }

    .service-item h3 {
        font-size: 28px;
    }

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

    .logo {
        gap: 0;
    }
    
    .logo-text {
        text-align: left;
    }
}

/* 页脚样式 */
footer {
    background: #333;
    color: white;
    padding: 30px 0;
    text-align: center;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .main-nav .container {
        flex-direction: column;
        padding: 10px;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: transparent;
    }

    .hero-content h2 {
        font-size: 32px;
    }

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

/* 双语内容样式 */
.zh {
    font-size: 16px;
    margin-bottom: 5px;
}

.en {
    font-size: 14px;
    color: #666;
    font-style: italic;
}

/* 调整联络我们标题大小 */
.contact-section h2 {
    font-size: 28px;
    margin-bottom: 30px;
}

/* 回到顶部按钮样式 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: rgba(51, 51, 51, 0.8); /* 半透明深灰色 */
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top::before {
    content: '';
    width: 12px;
    height: 12px;
    border-left: 2px solid #fff;
    border-top: 2px solid #fff;
    transform: rotate(45deg) translate(1px, 1px);
    display: block;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: rgba(51, 51, 51, 0.95);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }

    .back-to-top::before {
        width: 10px;
        height: 10px;
    }
}

/* 轮播图样式 */
.slider-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    width: 100%;
    height: 100%;
    position: absolute;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    z-index: 2;
    width: 80%;
    max-width: 800px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    border-radius: 15px;
}

.slide-content h2 {
    font-size: 42px;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    text-transform: none;
}

.slide-content p {
    font-size: 18px;
    margin-bottom: 10px;
    color: #fff;
}

/* 导航按钮 */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 15px 20px;
    border: none;
    cursor: pointer;
    font-size: 24px;
    transition: background 0.3s;
    z-index: 3;
}

.slider-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

/* 指示点 */
.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: #fff;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .slide-content h2 {
        font-size: 32px;
    }

    .slide-content p {
        font-size: 16px;
    }

    .slider-btn {
        padding: 10px 15px;
        font-size: 20px;
    }
}

/* 滾動式圖片區域 */
.slider-section {
    margin-top: 80px;
    height: 60vh;
}

/* 調整滑動圖片樣式 */
.slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 或者使用 contain，視圖片比例而定 */
    object-position: center;
}

/* 確保第一張圖片的文字清晰可見 */
.slide:first-child .slide-content {
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* 基础响应式设计 */
@media (max-width: 768px) {
    /* 导航栏调整 */
    .main-nav {
        padding: 5px 0;
        background: rgba(255, 255, 255, 0.98);
    }

    .main-nav .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 5px 15px;
        gap: 10px;
    }

    .logo {
        flex-direction: row;
        align-items: center;
        gap: 10px;
        scale: 0.8;
        transform-origin: left center;
    }

    .logo-img {
        width: 40px;
        height: auto;
    }

    .logo-text {
        text-align: left;
    }

    .logo-text h1 {
        font-size: 16px;
        line-height: 1.2;
    }

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

    nav ul {
        flex-direction: column;
        width: 100%;
        text-align: center;
        gap: 5px;
    }

    /* 下拉菜单移动端优化 */
    .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: transparent;
        width: 100%;
        padding: 5px 0;
    }

    nav ul li:hover .submenu {
        transform: none;
    }

    /* 滚动图片区域调整 */
    .slider-section {
        margin-top: 60px;
        height: 50vh;
    }

    .slide-content {
        width: 95%;
        padding: 20px;
    }

    .slide-content h2 {
        font-size: 28px;
        margin-bottom: 15px;
    }

    .slide-content p {
        font-size: 16px;
        margin-bottom: 8px;
    }

    /* 主视觉区域调整 */
    .hero-section {
        height: auto;
        padding: 40px 0;
    }

    .hero-content h2 {
        font-size: 28px;
    }

    .hero-content p {
        font-size: 16px;
    }

    /* 服务项目调整 */
    .service-grid {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }

    .service-item {
        padding: 20px;
    }

    .service-logo {
        width: 120px;
        height: 120px;
    }

    .logo-circle {
        width: 100px;
        height: 100px;
    }

    .service-item h3 {
        font-size: 24px;
    }

    .service-subtitle {
        font-size: 16px;
    }

    .service-description {
        font-size: 14px;
    }

    .service-button {
        padding: 10px 20px;
        font-size: 14px;
    }

    /* 联络我们区域调整 */
    .contact-wrapper {
        padding: 20px;
        margin: 0 15px;
    }

    .contact-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 15px;
    }

    .contact-text h3 {
        font-size: 16px;
    }

    .contact-text p {
        font-size: 14px;
    }

    /* 漢堡選單按鈕位置調整 */
    .menu-toggle {
        padding: 5px;
        margin-left: auto;
    }

    .menu-toggle span {
        width: 20px;
        height: 2px;
        margin: 4px 0;
    }
}

/* 更小屏幕的调整 */
@media (max-width: 480px) {
    .container {
        width: 95%;
        padding: 0 10px;
    }

    section {
        padding: 40px 0;
    }

    section h2 {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .slider-section {
        margin-top: 50px;
        height: 45vh;
    }

    .slide-content h2 {
        font-size: 24px;
    }

    .slide-content p {
        font-size: 14px;
    }

    /* 导航按钮调整 */
    .slider-btn {
        padding: 8px 12px;
        font-size: 16px;
    }

    .prev {
        left: 10px;
    }

    .next {
        right: 10px;
    }

    /* 指示点调整 */
    .slider-dots {
        bottom: 10px;
    }

    .dot {
        width: 8px;
        height: 8px;
    }

    .logo {
        scale: 0.7;
    }
}

/* 横屏模式调整 */
@media (max-height: 500px) and (orientation: landscape) {
    .slider-section {
        height: 70vh;
    }

    .hero-section {
        height: auto;
        padding: 30px 0;
    }

    .main-nav {
        position: absolute;
    }
}

/* 漢堡選單按鈕樣式 */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: #333;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* 移動端導航樣式調整 */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: white;
        padding: 80px 20px 20px;
        transition: right 0.3s ease;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    }

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

    /* 漢堡選單動畫 */
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

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

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

    /* 導航項目樣式 */
    nav ul {
        flex-direction: column;
        align-items: flex-start;
    }

    nav ul li {
        width: 100%;
        border-bottom: 1px solid #eee;
    }

    nav ul li a {
        padding: 15px 0;
    }

    .submenu {
        position: static;
        width: 100%;
        padding-left: 20px;
        background: #f8f9fa;
        display: none;
    }

    .submenu.active {
        display: block;
    }
}
