/* 全局樣式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --accent-color: #3498db;
    --text-color: #2c3e50;
    --light-gray: #ecf0f1;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    --border-radius: 6px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Noto Sans HK', 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
}

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

/* 導航欄 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.99);
    box-shadow: 0 8px 35px rgba(0, 0, 0, 0.15);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 85px;
}

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

.logo-img {
    width: 100%;
    height: 89px;
}



.nav-menu {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-contact {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* 在线报价按钮样式 */
.nav-quote-btn {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    white-space: nowrap;
}

.nav-quote-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(44, 62, 80, 0.3);
}

.nav-quote-btn i {
    font-size: 1.1rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 1.25rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 8px 15px;
    border-radius: 25px;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 25px;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.nav-link:hover {
    color: var(--white);
    transform: translateY(-2px);
}

.nav-link:hover::before {
    opacity: 1;
    transform: scale(1);
}

.nav-link.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    box-shadow: 0 6px 20px rgba(44, 62, 80, 0.3);
    transform: translateY(-2px);
}

.nav-link.active::before {
    opacity: 1;
    transform: scale(1);
}

.contact-btn {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.3);
    font-size: 1.25rem;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

/* 導航：下載報價單按鈕，與聯絡按鈕風格協調 */
.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 10px 18px;
    border-radius: 24px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    box-shadow: 0 6px 18px rgba(44, 62, 80, 0.2);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(44, 62, 80, 0.28);
    color: var(--white);
}

.download-btn i {
    font-size: 1rem;
}

.contact-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.contact-btn:hover::before {
    left: 100%;
}

.contact-btn:hover {
    background: linear-gradient(135deg, #c0392b, #e74c3c);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 30px rgba(231, 76, 60, 0.4);
}

.contact-btn i {
    font-size: 1.1rem;
    animation: pulse 2s infinite;
    color: var(--white);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    margin: 3px 0;
    transition: var(--transition);
}

/* 首屏輪播 */
.hero-section {
    margin-top: 70px;
    position: relative;
    height: 50vh;
    overflow: hidden;
}

.hero-slider {
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    transform: scale(1.05);
}

.slide.active {
    opacity: 1;
    transform: scale(1);
}

.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: var(--primary-color);
    z-index: 2;
    max-width: 600px;
    padding: 0 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.slide-content h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.slide-content p {
    font-size: 1rem;
    margin-bottom: 25px;
    color: var(--secondary-color);
    line-height: 1.6;
}

.cta-btn {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 12px 25px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.cta-btn:hover {
    background: #1a252f;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(44, 62, 80, 0.3);
}

.slider-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
    z-index: 3;
}

.prev-btn,
.next-btn {
    background: rgba(255, 255, 255, 0.95);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    font-size: 1.2rem;
    transition: var(--transition);
}

.prev-btn:hover,
.next-btn:hover {
    background: var(--white);
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

/* 服務優勢 */
.features-section {
    padding: 40px 0 80px 0;
    background: var(--light-gray);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 50px;
    color: var(--text-color);
}

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

.feature-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: var(--white);
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-color);
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* 熱門服務 */
.services-section {
    padding: 80px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.service-card {
    background: var(--white);
    padding: 25px 20px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(227, 25, 55, 0.1);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--light-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.6rem;
    color: var(--primary-color);
}

.service-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-color);
}

.service-card p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
    font-size: 0.95rem;
}

.service-btn {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 8px 16px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
}

.service-btn:hover {
    background: #1a252f;
    transform: translateY(-2px);
}

/* 客戶評價 */
.testimonials-section {
    padding: 80px 0;
    background: var(--light-gray);
}

.testimonials-slider {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding: 20px 0;
    scroll-snap-type: x mandatory;
}

.testimonial-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    min-width: 350px;
    scroll-snap-align: start;
    transition: var(--transition);
}

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

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 20px;
}

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

.stars {
    color: var(--accent-color);
    margin-bottom: 15px;
}

.testimonial-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
    font-style: italic;
}

.testimonial-content h4 {
    color: var(--accent-color);
    font-weight: 600;
}

/* 頁腳 */
.footer {
    background: var(--secondary-color);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 20px;
    color: var(--white);
}

.footer-section p {
    margin-bottom: 10px;
    color: #ccc;
}

.footer-section i {
    margin-right: 10px;
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: #1a252f;
    transform: translateY(-2px);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #ccc;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .nav-container {
        height: 75px;
        padding: 0 20px;
    }
    
    .nav-logo {
        gap: 12px;
    }
    
    .logo-img {
        width: 65px;
        height: 65px;
    }
    

    
    .nav-menu {
        position: fixed;
        top: 75px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 75px);
        background: rgba(255, 255, 255, 0.99);
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 60px;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
        gap: 20px;
    }

    /* 手機：縮小導航報價按鈕尺寸以避免擁擠 */
    .nav-contact .nav-quote-btn {
        padding: 8px 12px;
        font-size: 0.85rem;
        border-radius: 20px;
    }

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

    .nav-link {
        padding: 18px 35px;
        border-radius: 30px;
        font-size: 1.4rem;
        margin: 10px 0;
        font-weight: 700;
        width: 80%;
        text-align: center;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .nav-link:hover {
        transform: translateY(-3px) scale(1.05);
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    .contact-btn {
        padding: 10px 20px;
        font-size: 1.1rem;
    }

    .hero-section {
        height: 40vh;
    }

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

    .features-section {
        padding: 30px 0 60px 0;
    }

    .slide-content h1 {
        font-size: 1.6rem;
    }

    .slide-content p {
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 2rem;
    }

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

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .testimonials-slider {
        gap: 20px;
    }

    .testimonial-card {
        min-width: 300px;
    }

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

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

    .nav-container {
        height: 70px;
        padding: 0 15px;
    }
    
    .nav-logo {
        gap: 10px;
    }
    
    .logo-img {
        width: 55px;
        height: 55px;
    }
    


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

    .slide-content h1 {
        font-size: 1.3rem;
    }

    .features-section {
        padding: 25px 0 50px 0;
    }

    .cta-btn {
        padding: 12px 25px;
        font-size: 1rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .feature-card,
    .service-card {
        padding: 25px 20px;
    }

    .testimonial-card {
        min-width: 280px;
        padding: 25px 20px;
    }
}

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

.feature-card,
.service-card,
.testimonial-card {
    animation: fadeIn 0.6s ease-out;
}

/* 滾動條樣式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #c41230;
}

/* 报价弹窗样式 */
.quote-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.quote-modal.active {
    opacity: 1;
    visibility: visible;
}

.quote-modal-content {
    background: var(--white);
    border-radius: 12px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.quote-modal.active .quote-modal-content {
    transform: scale(1);
}

.quote-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid var(--light-gray);
    background: var(--light-gray);
}

.quote-modal-header h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

.quote-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.quote-modal-close:hover {
    background: #f0f0f0;
    color: var(--text-color);
}

.quote-modal-body {
    padding: 4px;
    max-height: calc(90vh - 100px);
    overflow-y: auto;
}

.quote-modal-body iframe {
    border: none;
    border-radius: 8px;
    background: var(--white);
}

/* 弹窗响应式设计 */
@media (max-width: 768px) {
    .quote-modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .quote-modal-header {
        padding: 15px 20px;
    }
    
    .quote-modal-header h3 {
        font-size: 1.2rem;
    }
    
    .quote-modal-body {
        padding: 20px;
        max-height: calc(95vh - 80px);
    }
    
    .quote-modal-body iframe {
        height: 500px;
    }
}

@media (max-width: 480px) {
    .quote-modal-content {
        width: 98%;
        max-height: 98vh;
    }
    
    .quote-modal-header {
        padding: 12px 15px;
    }
    
    .quote-modal-header h3 {
        font-size: 1.1rem;
    }
    
    .quote-modal-body {
        padding: 15px;
        max-height: calc(98vh - 70px);
    }
    
    .quote-modal-body iframe {
        height: 400px;
    }
    
    .nav-quote-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
} 