* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #0a0a0a;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.logo {
    font-size: 2rem;
    font-weight: bold;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo img {
    max-height: 50px;
}

nav ul,
.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a,
.main-nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

nav a:hover,
.main-nav a:hover {
    color: #667eea;
    transform: translateY(-2px);
}

nav a::after,
.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: width 0.3s ease;
}

/* 下拉選單連接區域已移至 .has-dropdown::before */

nav a:hover::after,
.main-nav a:hover::after {
    width: 100%;
}

/* 手機版漢堡菜單 */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

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

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

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

/* 下拉選單樣式 */
.has-dropdown {
    position: relative;
}

.has-dropdown > a {
    position: relative;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1rem 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    pointer-events: none;
}

/* 為主選單項目添加懸停區域 */
.has-dropdown::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 10px;
    background: transparent;
    z-index: 999;
}

.has-dropdown:hover .dropdown,
.dropdown:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown a {
    display: block;
    padding: 0.8rem 1.5rem;
    color: #e0e0e0;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.dropdown a:last-child {
    border-bottom: none;
}

.dropdown a:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding-left: 2rem;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: radial-gradient(ellipse at center, #1a1a2e 0%, #0a0a0a 70%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23ffffff" stroke-width="0.05" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    animation: drift 20s infinite linear;
}

@keyframes drift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-10px, -10px); }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 2rem;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease-out;
}

.hero p {
    font-size: 1.4rem;
    color: #ccc;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.6);
}

.btn-secondary {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-secondary:hover {
    background: #667eea;
    color: white;
    transform: translateY(-3px);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Floating Elements */
.floating-element {
    position: absolute;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.floating-element:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 10%;
    animation-delay: 2s;
}

.floating-element:nth-child(3) {
    width: 60px;
    height: 60px;
    bottom: 20%;
    left: 15%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* Products Section */
.products {
    padding: 5rem 0;
    /* 移除固定背景，使用動態設定 */
    /* background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%); */
}

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

.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 3rem;
    color: #fff;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.product-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    color: #fff;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(102, 126, 234, 0.5);
}

.product-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: white;
}

.product-card h3 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 1rem;
}

.product-card p {
    color: #e0e0e0;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.product-features {
    list-style: none;
    margin-bottom: 2rem;
}

.product-features li {
    color: #ccc;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.product-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

/* Case Studies Section */
.cases {
    padding: 5rem 0;
    background: linear-gradient(135deg, #16213e 0%, #0f3460 100%);
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #bbb;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    justify-items: center;
}

/* 當案例數量較少時的特殊處理 */
.cases-grid .case-card {
    max-width: 400px;
    width: 100%;
}

/* 針對不同案例數量的布局優化 */
.cases-grid[data-count="1"] {
    grid-template-columns: 1fr;
    max-width: 450px;
}

.cases-grid[data-count="2"] {
    grid-template-columns: repeat(2, 1fr);
    max-width: 900px;
}

.cases-grid[data-count="3"] {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1200px;
}

@media (max-width: 768px) {
    .cases-grid[data-count="2"],
    .cases-grid[data-count="3"] {
        grid-template-columns: 1fr;
        max-width: 450px;
    }
    
    .cases-grid .case-card {
        max-width: 100%;
    }
}

.case-card {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.case-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #ffd700, #ffa500);
}

.case-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 215, 0, 0.3);
}

.case-image {
    height: 180px;
    background: linear-gradient(45deg, #ffd700, #ffa500);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    overflow: hidden;
    position: relative;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.case-content {
    padding: 1.5rem;
}

.case-date {
    color: #ffd700;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.case-card h3 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.case-card p {
    color: #d0d0d0;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.case-link {
    color: #ffd700;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.case-link:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.cases-more {
    text-align: center;
    margin-top: 3rem;
}

.cases-empty {
    text-align: center;
    padding: 4rem 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.cases-empty h3 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cases-empty > p {
    color: #bbb;
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.placeholder-cases {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.placeholder-case {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.placeholder-image {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.placeholder-case h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.placeholder-case p {
    color: #bbb;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Blog Section */
.blog {
    padding: 5rem 0;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.blog-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.blog-card:hover {
    transform: translateY(-5px);
    border-color: rgba(102, 126, 234, 0.3);
}

.blog-image {
    height: 220px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    overflow: hidden;
    position: relative;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* 隱藏錯誤的圖片 */
.blog-image img[src=""],
.blog-image img:not([src]) {
    display: none;
}

/* 圖片載入錯誤時顯示預設圖示 */
.blog-image img {
    background-color: transparent;
}

/* 技術文章預設圖片樣式 */
.blog-default-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    padding: 1rem;
}

.blog-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.blog-category {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-content {
    padding: 2rem;
}

.blog-date {
    color: #667eea;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.blog-card h3 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.blog-card p {
    color: #e0e0e0;
    margin-bottom: 1.5rem;
}

.read-more {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #764ba2;
}

.blog-more {
    text-align: center;
    margin-top: 3rem;
}

.blog-empty {
    text-align: center;
    color: #ccc;
    font-size: 1.1rem;
    padding: 3rem;
    grid-column: 1 / -1;
}

/* Footer */
.footer {
    background: #0a0a0a;
    padding: 3rem 0 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer-section h3 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section p,
.footer-section li {
    color: #ccc;
    margin-bottom: 0.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #667eea;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #888;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
    }

    .logo {
        font-size: 1.5rem;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 2rem 0;
        transition: left 0.3s ease;
        z-index: 999;
        overflow-y: auto;
        overflow-x: hidden;
    }

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

    .nav-menu li {
        margin: 0.5rem 0;
        width: 90%;
        text-align: center;
    }

    .nav-menu a {
        display: block;
        padding: 0.8rem 1rem;
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
    }

    .has-dropdown .dropdown {
        position: static;
        opacity: 0;
        visibility: hidden;
        transform: none;
        background: rgba(102, 126, 234, 0.1);
        margin-top: 0.5rem;
        border-radius: 8px;
        display: none;
        max-height: 0;
        overflow: hidden;
        transition: all 0.3s ease;
    }

    .has-dropdown:hover .dropdown,
    .has-dropdown.active .dropdown {
        display: block;
        opacity: 1;
        visibility: visible;
        max-height: 500px;
    }

    .dropdown a {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    /* 移動菜單滾動條樣式 */
    .nav-menu::-webkit-scrollbar {
        width: 4px;
    }

    .nav-menu::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.1);
    }

    .nav-menu::-webkit-scrollbar-thumb {
        background: rgba(102, 126, 234, 0.6);
        border-radius: 2px;
    }

    .nav-menu::-webkit-scrollbar-thumb:hover {
        background: rgba(102, 126, 234, 0.8);
    }

    .hero {
        padding: 0 1rem;
        height: 90vh;
    }

    .hero h1 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .hero p {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }

    .btn {
        width: 80%;
        max-width: 300px;
        text-align: center;
    }

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

    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .container {
        padding: 0 1rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #764ba2, #667eea);
}

/* 後台管理連結樣式 */
.admin-link {
    background: #dc3545;
    color: #fff !important;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background 0.3s;
}

.admin-link:hover {
    background: #c82333;
    text-decoration: none;
}

/* About Us Section */
.about {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
    padding: 5rem 0;
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="aboutgrid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="%23667eea" stroke-width="0.03" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23aboutgrid)"/></svg>');
    animation: drift 30s infinite linear;
}

.about-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 4rem;
    align-items: start;
    position: relative;
    z-index: 2;
}

.about-image {
    position: sticky;
    top: 2rem;
}

.founder-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.3);
    border: 2px solid rgba(102, 126, 234, 0.2);
    transition: all 0.3s ease;
}

.founder-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(102, 126, 234, 0.4);
}

.about-text {
    color: #ccc;
    line-height: 1.8;
    font-size: 1.1rem;
}

.about-intro {
    background: rgba(102, 126, 234, 0.1);
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid #667eea;
    margin-bottom: 3rem;
}

.about-intro p {
    font-size: 1.2rem;
    color: #fff;
    margin: 0;
    font-weight: 300;
}

.about-section {
    margin-bottom: 3rem;
}

.about-section h3 {
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-section > p {
    margin-bottom: 1.5rem;
}

.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.experience-item {
    background: rgba(26, 26, 46, 0.5);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.experience-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.3);
}

.experience-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.experience-item h4 {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.experience-item p {
    color: #ccc;
    line-height: 1.6;
    margin: 0;
}

.about-summary {
    background: rgba(118, 75, 162, 0.1);
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid #764ba2;
    margin: 2rem 0;
    font-style: italic;
    color: #fff !important;
}

.mission-statement {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
    padding: 2rem;
    border-radius: 10px;
    border: 2px solid rgba(102, 126, 234, 0.3);
    color: #fff !important;
    font-size: 1.2rem;
    font-weight: 500;
    text-align: center;
    margin: 2rem 0;
}

.closing-statement {
    text-align: center;
    font-size: 1.3rem;
    color: #667eea !important;
    font-weight: 600;
    margin-top: 2rem;
}

/* About Section Mobile Responsive */
@media (max-width: 1024px) {
    .about-content {
        grid-template-columns: 250px 1fr;
        gap: 3rem;
    }
    
    .founder-image {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .about {
        padding: 3rem 0;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-image {
        position: static;
        text-align: center;
    }
    
    .founder-image {
        height: 300px;
        max-width: 250px;
    }
    
    .about-text {
        font-size: 1rem;
    }
    
    .about-intro {
        padding: 1.5rem;
    }
    
    .about-intro p {
        font-size: 1.1rem;
    }
    
    .about-section h3 {
        font-size: 1.5rem;
    }
    
    .experience-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .experience-item {
        padding: 1.5rem;
    }
    
    .mission-statement {
        font-size: 1.1rem;
        padding: 1.5rem;
    }
    
    .closing-statement {
        font-size: 1.2rem;
    }
}

/* Contact Us Section */
.contact {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
    padding: 5rem 0;
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="contactgrid" width="15" height="15" patternUnits="userSpaceOnUse"><path d="M 15 0 L 0 0 0 15" fill="none" stroke="%23764ba2" stroke-width="0.03" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23contactgrid)"/></svg>');
    animation: drift 25s infinite linear;
}

.contact-content {
    position: relative;
    z-index: 2;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.contact-card {
    background: rgba(26, 26, 46, 0.5);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.3);
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.contact-card h3 {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.contact-card p {
    margin: 0;
}

.contact-card a {
    color: #667eea;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-card a:hover {
    color: #764ba2;
}

.contact-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.map-container {
    background: rgba(26, 26, 46, 0.5);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.map-container h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.map-wrapper {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    margin-bottom: 1rem;
}

.map-address {
    text-align: center;
    color: #ccc;
    font-size: 1rem;
    margin: 0;
}

.contact-form-container {
    background: rgba(26, 26, 46, 0.5);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-form-container h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    color: #fff;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
    background: rgba(255, 255, 255, 0.15);
}

.contact-form select {
    cursor: pointer;
    appearance: auto;
    -webkit-appearance: auto;
    -moz-appearance: auto;
}

.contact-form select option {
    background: #1a1a2e;
    color: #fff;
    padding: 10px;
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 1rem;
}

/* 聯絡表單訊息樣式 */
.contact-message {
    margin-bottom: 2rem;
    border-radius: 8px;
    animation: slideIn 0.3s ease-out;
}

.contact-message.success {
    background: linear-gradient(135deg, #28a745, #20c997);
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.contact-message.error {
    background: linear-gradient(135deg, #dc3545, #e74c3c);
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.message-content {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: white;
    gap: 12px;
}

.message-content i {
    font-size: 1.2rem;
}

.message-content span {
    flex: 1;
    font-weight: 500;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 5px;
    border-radius: 3px;
    transition: background 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Contact Section Mobile Responsive */
@media (max-width: 1024px) {
    .contact-main {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-info {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .contact {
        padding: 3rem 0;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 3rem;
    }
    
    .contact-card {
        padding: 1.5rem;
    }
    
    .contact-icon {
        font-size: 2.5rem;
    }
    
    .map-container,
    .contact-form-container {
        padding: 1.5rem;
    }
    
    .contact-form .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .contact-form .form-group {
        margin-bottom: 1rem;
    }
}

.menu-icon {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-right: 4px;
}

/* ===== 服務區塊樣式 ===== */
.services-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: white;
    border: 1px solid #e0e0e0;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
    border-color: #667eea;
}

.service-icon {
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

/* ===== 特色功能區塊樣式 ===== */
.features-section {
    padding: 80px 0;
    background: #fff;
}

.feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: white;
    border: 1px solid #e0e0e0;
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12) !important;
    border-color: #764ba2;
}

.feature-icon {
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.05);
}

/* ===== 通用區塊樣式 ===== */
.section-padding {
    padding: 80px 0;
}

/* ===== 響應式設計補充 ===== */
@media (max-width: 768px) {
    .services-section,
    .features-section,
    .section-padding {
        padding: 60px 0;
    }
    
    .service-card,
    .feature-card {
        margin-bottom: 1.5rem;
    }
    
    .service-icon {
        font-size: 2.5rem !important;
    }
    
    .feature-icon {
        font-size: 2rem !important;
    }
}

/* ========================================
   新增區塊類型樣式
   ======================================== */

/* 價格方案區塊 */
.pricing-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.pricing-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: white;
    border: 2px solid transparent;
}

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

.pricing-card .price {
    color: var(--primary-color);
}

.pricing-card .price .h2 {
    font-size: 2.5rem;
    font-weight: 700;
}

/* 聯絡資訊區塊 */
.contact-info-section {
    background: white;
}

.contact-item {
    transition: transform 0.3s ease;
}

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

.contact-item i {
    transition: color 0.3s ease;
}

.contact-item:hover i {
    color: var(--secondary-color) !important;
}

/* 常見問題區塊 */
.faq-section {
    background: #f8f9fa;
}

.faq-section .accordion-button {
    background-color: white;
    border: none;
    font-weight: 600;
    color: var(--dark-color);
}

.faq-section .accordion-button:not(.collapsed) {
    background-color: var(--primary-color);
    color: white;
    box-shadow: none;
}

.faq-section .accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(var(--primary-color-rgb), 0.25);
}

.faq-section .accordion-item {
    border: none;
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* 文字區塊 */
.text-block-section {
    background: white;
}

.text-block-section .text-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

/* 最新消息區塊 */
.news-section {
    background: white;
}

.news-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e9ecef;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.news-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.news-card .card-title {
    color: var(--primary-color);
    font-weight: 600;
}

/* 自訂HTML區塊 */
.custom-html-section {
    background: white;
}

/* 統計數據區塊 */
.stats-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

.stats-item {
    transition: transform 0.3s ease;
}

.stats-item:hover {
    transform: scale(1.05);
}

.stats-number {
    color: white !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.stats-item h5 {
    color: white;
    font-weight: 600;
}

.stats-item .text-muted {
    color: rgba(255,255,255,0.8) !important;
}

/* 電子報訂閱區塊 */
.newsletter-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.newsletter-section h2 {
    color: white !important;
}

.newsletter-section .lead {
    color: rgba(255,255,255,0.9);
}

.newsletter-form .form-control {
    border: 2px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.1);
    color: white;
    backdrop-filter: blur(10px);
}

.newsletter-form .form-control:focus {
    border-color: white;
    background: rgba(255,255,255,0.2);
    box-shadow: 0 0 0 0.25rem rgba(255,255,255,0.25);
    color: white;
}

.newsletter-form .form-control::placeholder {
    color: rgba(255,255,255,0.7);
}

/* 間距區塊 */
.spacer-block {
    width: 100%;
    min-height: 20px;
}

/* 地圖區塊 */
.map-section {
    background: white;
}

.map-container {
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.map-placeholder {
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* 行動呼籲區塊 */
.cta-section {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: white;
}

.cta-section h2 {
    color: white !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.cta-section .lead {
    color: rgba(255,255,255,0.9);
}

.cta-section p {
    color: rgba(255,255,255,0.8);
}

.cta-section .btn {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.cta-section .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* 圖片畫廊區塊 */
.gallery-section {
    background: white;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    cursor: pointer;
}

.gallery-image {
    transition: transform 0.3s ease;
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.1);
}

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* 影片展示區塊 */
.video-section {
    background: white;
}

.video-placeholder {
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.ratio iframe {
    border-radius: 0.5rem;
}

/* 作品集區塊 */
.portfolio-section {
    background: #f8f9fa;
}

.portfolio-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: white;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.portfolio-item img {
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.portfolio-item h5 {
    color: var(--primary-color);
    font-weight: 600;
}

/* 客戶案例區塊 */
.clients-section {
    background: white;
}

.client-logo {
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.7;
}

.client-logo:hover {
    transform: scale(1.1);
    opacity: 1;
}

.client-logo img {
    max-height: 80px;
    width: auto;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.client-logo:hover img {
    filter: grayscale(0%);
}

.client-logo .bg-light {
    transition: background-color 0.3s ease;
}

.client-logo:hover .bg-light {
    background-color: var(--primary-color) !important;
}

.client-logo:hover .bg-light p {
    color: white !important;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .pricing-card,
    .news-card,
    .portfolio-item {
        margin-bottom: 2rem;
    }
    
    .gallery-image {
        height: 200px;
    }
    
    .stats-number {
        font-size: 2rem !important;
    }
    
    .cta-section .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .cta-section .btn:last-child {
        margin-bottom: 0;
    }
    
    .newsletter-form .col-md-6,
    .newsletter-form .col-md-auto {
        margin-bottom: 1rem;
    }
}

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

.pricing-card,
.news-card,
.portfolio-item,
.stats-item,
.contact-item,
.gallery-item {
    animation: fadeInUp 0.6s ease-out;
}

/* 每個項目延遲動畫 */
.pricing-card:nth-child(1) { animation-delay: 0.1s; }
.pricing-card:nth-child(2) { animation-delay: 0.2s; }
.pricing-card:nth-child(3) { animation-delay: 0.3s; }

.stats-item:nth-child(1) { animation-delay: 0.1s; }
.stats-item:nth-child(2) { animation-delay: 0.2s; }
.stats-item:nth-child(3) { animation-delay: 0.3s; }
.stats-item:nth-child(4) { animation-delay: 0.4s; }

.news-card:nth-child(1) { animation-delay: 0.1s; }
.news-card:nth-child(2) { animation-delay: 0.2s; }
.news-card:nth-child(3) { animation-delay: 0.3s; }

/* ========================================
   缺少的基礎區塊樣式
   ======================================== */

/* Hero 區塊 */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section h1 {
    color: white !important;
    font-size: 3.5rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 1.5rem;
}

.hero-section .lead {
    color: rgba(255,255,255,0.9);
    font-size: 1.3rem;
    margin-bottom: 2rem;
}

/* 產品區塊 */
.products-section {
    background: white;
    padding: 80px 0;
}

/* 移除重複的 product-card 定義，避免樣式衝突 */

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.product-card img {
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.product-card .card-title {
    color: var(--primary-color);
    font-weight: 600;
}

/* 客戶見證區塊 */
.testimonials-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 80px 0;
}

.testimonial-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

.testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-color);
}

.testimonial-rating {
    color: #ffc107;
    font-size: 1.2rem;
    margin: 1rem 0;
}

.testimonial-content {
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary-color);
}

.testimonial-position {
    color: #6c757d;
    font-size: 0.9rem;
}

/* 部落格區塊 */
.blog-section {
    /* 移除固定白色背景，使用動態設定 */
    /* background: white; */
    padding: 80px 0;
}

/* 移除重複的 blog-card 定義，避免樣式衝突 */

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.blog-card img {
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.blog-card .card-title {
    color: var(--primary-color);
    font-weight: 600;
}

.blog-meta {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.blog-excerpt {
    color: #333;
    line-height: 1.6;
}

/* 聯絡表單區塊 */
.contact-form-section {
    background: #f8f9fa;
    padding: 80px 0;
}

.contact-form-section .form-control {
    border: 2px solid #e9ecef;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.contact-form-section .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(var(--primary-color-rgb), 0.25);
}

.contact-form-section .btn {
    padding: 0.75rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.contact-form-section .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* 間距區塊 */
.spacer-section {
    background: transparent;
}

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

.product-card,
.testimonial-card,
.blog-card {
    animation: fadeInUp 0.6s ease-out;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .product-card,
    .testimonial-card,
    .blog-card {
        margin-bottom: 2rem;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .contact-form-section .btn {
        display: block;
        width: 100%;
    }
}