/* 產品服務頁面樣式 */
body {
    background: #f8f9fa;
}

.footer {
    margin-top: 0;
}

/* Hero 區塊 */
.hero-section {
    position: relative;
    height: 60vh;
    min-height: 400px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/assets/images/pro-bg.jpg') center/cover no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
}

.hero-content {
    text-align: center;
    width: 100%;
    color: white;
    padding: 0 20px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s 0.2s forwards;
}

.hero-subtitle {
    font-size: 20px;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s 0.4s forwards;
}

/* 標題樣式 */
.section-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 36px;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* 產品分類展示 */
.product-categories-section {
    padding: 80px 0;
}

/* 標題和搜索框的佈局 */
.section-header {
    position: relative;
    text-align: center;
    margin-bottom: 50px;
}

.section-header .section-title {
    margin-bottom: 0;
    text-align: center;
}

.section-header .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

/* 搜索容器樣式 */
.search-container {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 260px;
}

.search-input {
    flex: 1;
    padding: 12px 50px 12px 16px;
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
    background: white;
    width: 100%;
}

.search-input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(32, 178, 170, 0.1);
}

.search-input::placeholder {
    color: #999;
}

.search-button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    padding: 8px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.search-button:hover {
    background: var(--accent-color);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(32, 178, 170, 0.3);
}

.search-button i {
    font-size: 16px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    cursor: pointer;
}

.product-item.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.product-image {
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.product-item h4 {
    font-family: var(--font-heading);
    font-size: 18px;
    color: var(--primary-color);
    margin: 20px 20px 10px;
}

.product-item p {
    color: #666;
    margin: 0 20px 20px;
    line-height: 1.5;
}

/* 產品推薦 */
.product-recommendation-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.recommendation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.recommendation-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.recommendation-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.15);
}

/* 星星圖標 */
.star-icon {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 10;
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.star-icon.active {
    color: #FF6B35;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.recommendation-card:hover .star-icon {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.recommendation-card:hover .star-icon.active {
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
}

/* 更多圖標 */
.more-icon {
    position: absolute;
    bottom: 15px;
    right: 15px;
    z-index: 10;
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.more-icon:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.recommendation-image {
    height: 250px;
    overflow: hidden;
    padding: 20px;
    border-bottom: 1px solid var(--primary-color);
}

.recommendation-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

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

.recommendation-content {
    padding: 20px;
}

.recommendation-content h3 {
    font-family: var(--font-heading);
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.recommendation-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 15px;
}

.recommendation-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.feature-tag {
    background: var(--primary-color);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
}

/* SHINDO 工藝展示 */
.craftsmanship-section {
    padding: 120px 0;
    background: white;
    position: relative;
    overflow: hidden;
}

.craftsmanship-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 60%;
    background: linear-gradient(135deg, #20B2AA 0%, #006400 100%);
    border-radius: 50%;
    opacity: 0.1;
    z-index: 0;
}

.craftsmanship-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.craftsmanship-text {
    text-align: center;
}

.craftsmanship-title {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 30px;
    line-height: 1.2;
}

.craftsmanship-description {
    font-size: 20px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.craftsmanship-btn {
    display: inline-block;
    padding: 12px 30px;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 40px;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 16px;
}

.craftsmanship-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.craftsmanship-images {
    position: relative;
    height: 600px;
}

.craft-image {
    position: absolute;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.craft-image:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

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

.craft-image-1 {
    top: 0;
    left: 0;
    width: 300px;
    height: 200px;
    z-index: 3;
}

.craft-image-2 {
    top: 50px;
    right: 0;
    width: 280px;
    height: 180px;
    z-index: 2;
}

.craft-image-3 {
    bottom: 150px;
    left: 50px;
    width: 200px;
    height: 150px;
    z-index: 4;
}

.craft-image-4 {
    bottom: 100px;
    right: 100px;
    width: 220px;
    height: 160px;
    z-index: 3;
}

.craft-image-5 {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 320px;
    height: 200px;
    z-index: 1;
}

/* 響應式設計 */
@media (max-width: 1024px) {
    .craftsmanship-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

    .craftsmanship-description {
        font-size: 18px;
    }

    .craftsmanship-images {
        height: 500px;
    }

    .craft-image-1 {
        width: 250px;
        height: 160px;
    }

    .craft-image-2 {
        width: 230px;
        height: 150px;
    }

    .craft-image-3 {
        width: 180px;
        height: 120px;
    }

    .craft-image-4 {
        width: 200px;
        height: 140px;
    }

    .craft-image-5 {
        width: 280px;
        height: 180px;
    }

    .recommendation-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 30px;
    }
}

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

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

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

    .craftsmanship-images {
        height: 400px;
    }

    .craft-image-1 {
        width: 200px;
        height: 130px;
        top: 20px;
        left: 20px;
    }

    .craft-image-2 {
        width: 180px;
        height: 120px;
        top: 40px;
        right: 20px;
    }

    .craft-image-3 {
        width: 150px;
        height: 100px;
        bottom: 120px;
        left: 30px;
    }

    .craft-image-4 {
        width: 170px;
        height: 110px;
        bottom: 80px;
        right: 60px;
    }

    .craft-image-5 {
        width: 240px;
        height: 150px;
        bottom: 20px;
    }

    .recommendation-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-top: 40px;
    }

    .recommendation-content {
        padding: 25px;
    }

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

    .star-icon {
        width: 28px;
        height: 28px;
        top: 12px;
        left: 12px;
    }

    .star-icon svg {
        width: 16px;
        height: 16px;
    }

    .more-icon {
        width: 36px;
        height: 36px;
        bottom: 12px;
        right: 12px;
    }

    .more-icon svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .craftsmanship-section {
        padding: 40px 0;
    }

    .craftsmanship-title {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .craftsmanship-description {
        font-size: 15px;
        margin-bottom: 20px;
    }

    .craftsmanship-btn{
        padding: 10px 30px;
        font-size: 15px;
    }

    .craftsmanship-images {
        height: 300px;
    }

    .craft-image-1 {
        width: 150px;
        height: 100px;
    }

    .craft-image-2 {
        width: 130px;
        height: 90px;
    }

    .craft-image-3 {
        width: 110px;
        height: 80px;
    }

    .craft-image-4 {
        width: 130px;
        height: 90px;
    }

    .craft-image-5 {
        width: 200px;
        height: 120px;
    }

    .recommendation-content {
        padding: 20px;
    }

    .recommendation-content h3 {
        font-size: 18px;
    }

    .recommendation-features {
        gap: 8px;
    }

    .feature-tag {
        font-size: 12px;
        padding: 4px 10px;
    }

    .star-icon {
        /* width: 24px;
        height: 24px; */
        top: 10px;
        left: 10px;
    }

    .star-icon svg {
        width: 14px;
        height: 14px;
    }

    .more-icon {
        /* width: 32px;
        height: 32px; */
        bottom: 10px;
        right: 10px;
    }

    /* .more-icon svg {
        width: 18px;
        height: 18px;
    } */
}

/* 響應式設計 */
@media (max-width: 768px) {
    .hero-title {
        font-size: 36px;
    }

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

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

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .process-flow {
        grid-template-columns: 1fr;
    }

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

    .digital-books {
        grid-template-columns: 1fr;
    }

    /* 移動端搜索佈局 */
    .section-header {
        position: relative;
        text-align: center;
        margin-bottom: 40px;
    }

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

    .section-header .section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .search-container {
        position: static;
        transform: none;
        display: flex;
        justify-content: center;
    }

    .search-input-wrapper {
        min-width: auto;
        width: 100%;
        max-width: 400px;
        margin-top: 20px;
    }

    .product-categories-section{
        padding: 40px 0;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }

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

    .news-content {
        padding: 20px;
    }

    .news-content h3 {
        font-size: 16px;
    }

    /* 小屏幕搜索佈局 */
    .search-container {
        flex-direction: column;
        gap: 15px;
        display: none;
    }

    .search-input,
    .search-button {
        /* width: 100%; */
        text-align: center;
    }
}

/* 動畫效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Instagram 聯繫 */
.instagram-section {
    padding: 80px 0;
    background: #fff;
}

.instagram-content {
    margin-top: 60px;
}

.instagram-intro {
    text-align: center;
    margin-bottom: 50px;
}

.instagram-intro p {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.instagram-btn {
    display: inline-block;
    padding: 15px 30px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.instagram-btn:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

.digital-books {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 40px;
}

.digital-books a {
    background: white;
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    max-width: 220px;
}

.digital-book {
    transition: all 0.3s ease;
}

.digital-books a:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.digital-book img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.digital-book h4 {
    font-family: var(--font-heading);
    font-size: 18px;
    color: var(--primary-color);
    margin: 20px;
    text-align: center;
}

/* 最新資訊 */
.news-section {
    padding: 80px 0;
}

.news-swiper-container {
    position: relative;
    max-width: 1200px;
    margin: 60px auto 0;
}

.news-swiper {
    padding: 20px 0;
}

.swiper-slide {
    height: auto;
}

.news-card {
    cursor: pointer;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-image {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.news-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-date {
    font-size: 14px;
    color: #999;
    margin-bottom: 10px;
}

.news-content h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 15px;
    line-height: 1.4;
    flex: 1;
}

.news-tags {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.tag {
    background: var(--accent-color);
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.news-more {
    text-align: center;
    margin-top: 50px;
}

.read-more-btn {
    display: inline-block;
    padding: 10px 40px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

/* Swiper導航按鈕樣式 */
.swiper-button-next,
.swiper-button-prev {
    background: white;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.swiper-button-next {
    right: -100px;
}

.swiper-button-prev {
    left: -100px;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.05);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 18px;
    font-weight: bold;
}

.news-pagination{
    display: none;
}

/* 響應式設計 */
@media (max-width: 1024px) {
    .news-swiper-container {
        max-width: 900px;
    }

    .news-image {
        height: 200px;
    }

    .news-content h3 {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .news-swiper-container {
        max-width: 600px;
    }

    .swiper-button-next,
    .swiper-button-prev {
        width: 40px;
        height: 40px;
    }

    .swiper-button-next::after,
    .swiper-button-prev::after {
        font-size: 16px;
    }

    .news-image {
        height: 180px;
    }

    .news-content {
        padding: 20px;
    }

    .news-content h3 {
        font-size: 16px;
    }

    .hero-section{
        min-height: 220px;
        height: 20vh;
    }
    .hero-content{
        padding: 0;
    }
    .hero-title{
        font-size: 24px;
        margin-bottom: 5px;
    }
    .hero-subtitle{
        font-size: 14px;
    }
    .hero-overlay{
        background: rgba(0, 0, 0, 0.3);
    }

    .product-recommendation-section{
        padding: 30px 0;
    }

    .section-title::after{
        width: 60px;
    }

    .news-swiper-container {
        max-width: 600px;
        width: 100%;
        margin: 30px auto;
    }

    .news-swiper {
        padding: 0 20px 0px 20px;
    }

    .news-next,
    .news-prev {
        display: none;
    }

    .news-card{
        height: auto;
    }

    .news-image {
        height: 180px;
    }

    .news-content {
        padding: 20px;
    }

    .news-content h3 {
        font-size: 16px;
    }

    .news-pagination {
        display: block;
        bottom: -30px !important;
    }

    .news-pagination .swiper-pagination-bullet {
        width: 10px;
        height: 10px;
        background: var(--primary-color);
    }

    .read-more-btn {
        padding: 10px 40px;
        font-size: 16px;
    }

    .news-section{
        padding: 40px 0;
    }

    .instagram-section {
        padding: 40px 20px;
        margin-top: 0;
    }

    .instagram-content {
        margin-top: 30px;
    }

    .instagram-intro {
        margin-bottom: 30px;
    }

    .digital-books {
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .news-image {
        height: 160px;
    }

    .news-content {
        padding: 15px;
    }

    .news-content h3 {
        font-size: 14px;
    }
}