
/* 基本樣式 */
body {
    font-family: kaiu,'Segoe UI', 'Microsoft JhengHei', sans-serif;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}
.hide {
    display: none;
}

h1, h2, h3 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 30px;
}
p {
    margin-bottom: 1em;
}
a {
    color: #007bff;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* .hover:hover{
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);    
} */

/* .transition-color{ */
    /* transition: color 0.5s ease; */
    /* transition: background-color 0.5s ease-in; */
    /* transition: all 0.5s ease; */
/* } */
/* .transition-color:hover{ */
    /* background-color: yellow; */
    /* color: black; */
/* } */

/* .transform-y {
    transition: transform 0.5s ease;
} */
/* .transform-y:hover{
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
} */

/* Header */
header {
    /* background: linear-gradient(135deg, #37ff00 0%, #15ec11 100%);  */
    /* background-color: #f3cc57; */
    background: linear-gradient(135deg, #f1f65a 0%,  #f3cc57 100%); /* 漸變背景 */
    padding: 10px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}
.navbar {
    /* display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px,400px)); 
    justify-content: space-between;
    align-items: center; */
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;    
    padding: 0px;
}
@media screen and (max-width: 960px) {
    .navbar {
        flex-direction: column;
    }
}
.logo {
    font-size: 20px;
    font-weight: bold;
    color: #007bff; /* 主品牌色 */
    padding: 10px 20px;
    text-align: center;
    /* margin-bottom: 20px; */
}
.logo span,
.logo img {
    height: 40px; /* 調整您的Logo圖片大小 */
    vertical-align: middle;
    /* margin-right: 10px; */
}

.nav-links ul {
    list-style: none;
    margin: 0;
    padding: 10px 20px;
    display: flex;
    text-align: center;
}
.nav-links li {
    margin-left: 12px;
}
.nav-links a {
    color: #007bff;
    font-weight: bold;
    font-size: 16px;
    transition: color 0.5s ease;
}
.nav-links a:hover {
    color: red;
    background-color: yellow;;
}
.nav-links .btn {
    background-color: #007bff;
    color: #fff;
    padding: 8px 20px;
    border-radius: 5px;
    transition: background-color 0.5s ease;
}
.nav-links .btn:hover {
    background-color: #e6db44;
    text-decoration: none;
}

/* @media only screen and (max-width: 960px) {
    .nav-links {
        display: none; 
    }
} */

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: #fff;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden; /* 確保圖片不溢出 */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
}
.hero::before { /* 為了讓背景圖層與漸變色更融合 */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* 替換成您的主視覺圖片 */
    /* background-image: url('../images/logo1.png');  */
    background-size: cover;
    background-position: center;
    opacity: 0.3; /* 調整透明度 */
    z-index: 0;
}
.hero-content {
    position: relative;
    z-index: 1;
}
.hero h1 {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #fff;
    line-height: 1.2;
}
.hero h2 {
    font-size: 2.4em;
    margin-bottom: 20px;
    color: #fff;
    line-height: 1.2;
}

.hero p {
    font-size: 1.4em;
    color: #e9ecef;
}
.hero .cta-buttons a {
    display: inline-block;
    background-color: #28a745; /* 次要行動呼籲色 */
    color: #fff;
    padding: 15px 30px;
    border-radius: 50px;
    margin: 0 10px;
    font-size: 1.2em;
    font-weight: bold;
    transition: background-color 0.5s ease, transform 0.2s ease;
}
.hero .cta-buttons a:hover {
    background-color: #218838;
    transform: translateY(-5px);
    text-decoration: none;
}
.hero .cta-buttons a:last-child {
    background-color: #007bff; /* 主要行動呼籲色 */
}
.hero .cta-buttons a:last-child:hover {
    background-color: #0056b3;
}

/* Features Section */
.features {
    padding: 80px 0;
    text-align: center;
    /* background-color: #92c2f3; */
    background: linear-gradient(135deg, #f5786c 0%, #e1170c 100%);
}

.features h2 {
    font-size: 3em;
    margin-bottom: 60px;
}
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.feature-item {
    background-color: #ffffff;
    padding: 40px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
}
.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}
.feature-item i {
    font-size: 3.5em;
    color: #007bff;
    margin-bottom: 20px;
}
.feature-item h3 {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #34495e;
}
.feature-item p {
    font-size: 1.2em;
    color: #333;
}

.feature-item .btn {
    background-color: #007bff;
    color: #fff;
    font-size: large;
    padding: 16px 40px;
    border-radius: 40px;
    border: none;
    transition: all 0.5s ease;
}
.feature-item .btn:hover {
    background-color: yellow;
    color: blue;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    /* transform: translateY(-5px); */
}


/* Testimonials Section */
.testimonials {
    padding: 80px 0;
    background-color: #7dd2c1;
    background: linear-gradient(135deg, #f56fcf 0%, #cb43f4 100%);

}
.testimonials h2 {
    font-size: 2.8em;
    margin-bottom: 60px;
    text-align: center;
}
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}
.testimonial-item {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.5s ease;
}
.testimonial-item:hover{
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
.testimonial-item .quote-icon {
    font-size: 3em;
    color: #007bff;
    margin-bottom: 15px;
}
.testimonial-item p {
    font-style: italic;
    color: #333;
    font-size: 1.2em;
    margin-bottom: 20px;
    flex-grow: 1; /* 讓不同長度的引言區塊高度一致 */
}
.testimonial-item .client-info {
    margin-top: auto; /* 將客戶資訊推到底部 */
}
.testimonial-item .client-logo {
    max-width: 100px;
    margin-bottom: 10px;
}
.testimonial-item .client-name {
    font-weight: bold;
    color: #333;
}
.testimonial-item .client-title {
    color: #777;
    font-size: 0.9em;
}

/* AI 人工智慧分析說明 */
.ai-analysis {
    padding: 80px 0;
    background-color: #f6ddf2; /* 淡藍色背景 */
    background: linear-gradient(135deg, #f5f4f5 0%, #09e792 100%);
    background: linear-gradient(135deg, #89f3de 0%, #2bf482 100%);    
}
.ai-analysis h2 {
    font-size: 2.8em;
    margin-bottom: 60px;
    text-align: center;
}
.ai-analysis-grid  {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax( 300px, 1fr));
    gap: 40px;
}
.ai-analysis-item {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
    text-align: center;
    transition: all 0.5s ease;
}
.ai-analysis-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
.ai-analysis-item i {
    font-size: 4em;
    color: #007bff;
    margin-bottom: 25px;
}
.ai-analysis-item h3 {
    font-size: 2em;
    margin-bottom: 15px;
    color: #2c3e50;
}
.ai-analysis-item p {
    color: #555;
    font-size: 1.2em;
}


/* Advantages Section */
.advantages {
    padding: 80px 0;
    background-color: #f6ddf2; /* 淡藍色背景 */
    background: linear-gradient(135deg, #f3c3eb 0%, #ea60f6 100%);
    background: linear-gradient(135deg, #89f3de 0%, #2bf482 100%);        
}
.advantages h2 {
    font-size: 2.8em;
    margin-bottom: 60px;
    text-align: center;
}
.advantage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}
.advantage-item {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
    text-align: center;
    transition: all 0.5s ease;
}
.advantage-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
.advantage-item i {
    font-size: 4em;
    color: #007bff;
    margin-bottom: 25px;
}
.advantage-item h3 {
    font-size: 2em;
    margin-bottom: 15px;
    color: #2c3e50;
}
.advantage-item p {
    color: #555;
    font-size: 1.2em;
}


/* CTA Section */
.cta-section {
    background: linear-gradient(90deg, #007bff 0%, #0056b3 100%);
    color: #fff;
    padding: 80px 0;
    text-align: center;
}
.cta-section h2 {
    font-size: 2.8em;
    margin-bottom: 30px;
    color: #fff;
}
.cta-section h3 {
    font-size: 1.8em;
    margin-bottom: 30px;
    color: #fff;
}

/* Pricing Section */
.cta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.cta-item {
    background-color: #ffffff;
    padding: 30px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}
.cta-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}
.cta-item i {
    font-size: 3.5em;
    color: #007bff;
}
.cta-item p {
    font-size: 1.4em;
    color: #007bff;
    font-weight: bold;;
}

.cta-item .btn {
    background-color: #28a745;
    color: #fff;
    padding: 16px 40px;
    width: auto;
    border-radius: 50px;
    font-size: large;
    font-weight: bold;
    transition: background-color 0.5s ease;
}
.cta-item .btn:hover {
    background-color: #218838;
    text-decoration: none;
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 60px 0;
    font-size: 1.1em;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.footer-col .logo{
    text-align: left;
    padding: 0;
}
.footer-col h2 {
    font-size: 1.8em;
    color: #fff;
    margin-bottom: 20px;
    text-align: left;
}

.footer-col h4 {
    color: #fff;
    font-size: 1.2em;
    margin-bottom: 20px;
}
.footer-col ul {
    list-style: none;
    padding: 0;
}
.footer-col ul li {
    margin-bottom: 10px;
}
.footer-col a {
    color: #bdc3c7;
    transition: color 0.3s ease;
}
.footer-col a:hover {
    color: #fff;
    text-decoration: none;
}
.footer-col .social-icons a {
    font-size: 1.5em;
    margin-right: 15px;
    color: #bdc3c7;
}
.footer-col .contact-info p {
    margin-bottom: 10px;
    color: #bdc3c7;
}
.footer-bottom {
    text-align: center;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #4a627a;
}

.modal {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    align-items: center;
    justify-content: center;
}
.modal-feature {
    z-index: 1000;
}
.modal-image{
    z-index: 2000;
}

.modal-content {
    /* position: relative; */
    max-width: 95%;
    max-height: 95%;
    overflow: hidden;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    animation: zoomIn 0.75s;
    /* box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19); */
}

@keyframes zoomIn {
    from {transform: scale(0.5);}
    to {transform: scale(1);}
}

.modal-header {
    /* background-color: #007bff; */
    color: white;
    width: 100%;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}   

.modal-caption {
    font-size: 1.5em;
    font-weight: bold;
    padding: 0 10px;
    color: #007bff;
}

.modal-close {
    font-size: 1.5em;
    font-weight: bold;
    width: 40px;
    text-align: center;
    color: #333;
}
.modal-close:hover,
.modal-close:focus {
    color: black;
    /* text-decoration: none; */
    cursor: pointer;
    background-color: yellow;
}

.modal-body {
    padding: 10px 20px;
    overflow-y: auto;
    background-color: #e9f5ff;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px; 
}

.modal-body dl dt {
    font-weight: bold;
    display: block;
    padding: 8px;
    border-bottom: 1px solid #007bff;
    background-color: #28a745;
    border-radius: 5px;
    color: white;
    margin-bottom: 8px;
}
.modal-body dl dd {
    padding: 8px;
    background-color: #7dd2c1;
    border: 1px solid #007bff;
    color: #007bff;
    border-radius: 5px;
    font-weight: bold;
    margin-bottom: 8px;
} 

.modal-image .image,
.modal-image img {
    width: 100%;
    height: auto;
    min-width: 300px;
    min-height: 300px;
    background-color: white;
}

.modal-content dl dd:hover {
    cursor: pointer;
    background-color: yellow;
    font-weight: bold;
}
.hr-features{
    display: none;
    z-index: -100;
}