/* 基本樣式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 主色系 - 永續綠色 */
    --primary-color: #2E8B57;
    --primary-light: #3CB371;
    --primary-dark: #1F5F3A;
    
    /* 輔色系 - 大地棕色 */
    --secondary-color: #8B4513;
    --secondary-light: #A0522D;
    --secondary-dark: #654321;
    
    /* 點綴色 - 科技藍 */
    --accent-color: #4169E1;
    --accent-light: #5B7BE8;
    --accent-dark: #2E4BC6;
    
    /* 文字色彩 */
    --text-dark: #2C3E50;
    --text-light: #7F8C8D;
    --text-muted: #95A5A6;
    
    /* 背景色彩 */
    --bg-light: #F5F5F5;
    --bg-white: #FFFFFF;
    --bg-card: #FAFAFA;
    
    /* 漸層效果 */
    --gradient-primary: linear-gradient(135deg, #2E8B57 0%, #3CB371 100%);
    --gradient-secondary: linear-gradient(135deg, #8B4513 0%, #A0522D 100%);
    --gradient-accent: linear-gradient(135deg, #4169E1 0%, #5B7BE8 100%);
    --gradient-sustainable: linear-gradient(135deg, #2E8B57 0%, #4169E1 100%);
    
    /* 陰影效果 */
    --shadow-sm: 0 2px 4px rgba(46, 139, 87, 0.1);
    --shadow-md: 0 4px 8px rgba(46, 139, 87, 0.15);
    --shadow-lg: 0 8px 16px rgba(46, 139, 87, 0.2);
    --shadow-xl: 0 12px 24px rgba(46, 139, 87, 0.25);
    
    /* 圓角 */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
    font-weight: 400;
}

/* 整體背景呼吸感設計 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(46, 139, 87, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(65, 105, 225, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 標題樣式 */
header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    color: var(--text-dark);
    padding: 25px 0;
    position: relative;
    z-index: 1000;
    box-shadow: var(--shadow-md);
    transition: all 0.4s ease;
    border-bottom: 2px solid rgba(46, 139, 87, 0.1);
    margin-bottom: 20px;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-sustainable);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.logo p {
    font-size: 1.2rem;
    color: var(--text-light);
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background: var(--gradient-sustainable);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-top: 5px;
    position: relative;
}

.logo p::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-sustainable);
    border-radius: 1px;
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.logo:hover p::after {
    transform: scaleX(1);
}

/* 導航選單樣式 */
.nav-menu {
    position: relative;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-list li a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 0;
    display: block;
}

.nav-list li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gradient-sustainable);
    border-radius: 2px;
    transition: width 0.4s ease;
}

.nav-list li a:hover::after {
    width: 100%;
}

.nav-list li a:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* 漢堡選單按鈕 */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    z-index: 1000;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.hamburger:hover {
    background: rgba(46, 139, 87, 0.1);
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
    transform-origin: center;
}

/* 漢堡選單動畫效果 */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* 漢堡選單懸停效果 */
.hamburger:hover span {
    background: var(--primary-color);
}

/* 主視覺輪播 */
.hero {
    min-height: 100vh;
    background: var(--gradient-sustainable);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-top: 0;
    padding-top: 100px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(135deg, rgba(46, 139, 87, 0.9) 0%, rgba(65, 105, 225, 0.8) 100%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="grid" width="50" height="50" patternUnits="userSpaceOnUse"><path d="M 50 0 L 0 0 0 50" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    background-size: cover;
}

.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 1000 1000"><polygon fill="rgba(255,255,255,0.1)" points="0,1000 1000,0 1000,1000"/></svg>');
    background-size: cover;
}

.slide {
    display: none;
    animation: fadeInUp 1s ease-out;
    position: relative;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.slide.active {
    display: block;
    opacity: 1;
}

.slide h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 30px;
    text-shadow: 0 4px 8px rgba(0,0,0,0.4);
    background: rgba(255, 255, 255, 0.95);
    padding: 20px 40px;
    border-radius: var(--radius-lg);
    color: var(--text-dark);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-lg);
}

.slide p {
    font-size: clamp(1.2rem, 2.2vw, 1.6rem);
    margin-bottom: 40px;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.9);
    padding: 20px 30px;
    border-radius: var(--radius-lg);
    color: var(--text-dark);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-align: center;
    letter-spacing: 0.3px;
}

.slider-controls {
    position: absolute;
    bottom: 40px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 15px;
    z-index: 3;
}

.slider-controls button {
    background: rgba(255,255,255,0.15);
    border: 2px solid rgba(255,255,255,0.4);
    color: white;
    padding: 15px 18px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.4s ease;
    backdrop-filter: blur(15px);
    box-shadow: var(--shadow-md);
}

.slider-controls button:hover {
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.6);
    transform: scale(1.1) translateY(-2px);
    box-shadow: var(--shadow-lg);
}



/* 服務區塊 */
.services {
    padding: 120px 0;
    background: var(--bg-white);
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to bottom, var(--bg-light), transparent);
}

.services::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, var(--bg-light), transparent);
}

.services h2, .ecommerce h2, .webdesign h2, .about h2, .contact h2 {
    text-align: center;
    margin-bottom: 80px;
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 700;
    background: var(--gradient-sustainable);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    letter-spacing: -1px;
}

.services h2::after, .ecommerce h2::after, .webdesign h2::after, .about h2::after, .contact h2::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-sustainable);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
    margin-top: 60px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.service-card {
    background: var(--bg-card);
    padding: 60px 40px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    min-height: 380px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 2px solid rgba(46, 139, 87, 0.08);
    backdrop-filter: blur(10px);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-sustainable);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-20px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(46, 139, 87, 0.2);
    background: var(--bg-white);
}

.service-card i {
    font-size: 4.5rem;
    background: var(--gradient-sustainable);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 35px;
    display: block;
    transition: all 0.4s ease;
    filter: drop-shadow(0 4px 8px rgba(46, 139, 87, 0.2));
}

.service-card:hover i {
    transform: scale(1.15) translateY(-5px);
    filter: drop-shadow(0 8px 16px rgba(46, 139, 87, 0.3));
}

.service-card h3 {
    margin-bottom: 30px;
    color: var(--text-dark);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 1.05rem;
}

/* 電子商務區塊 */
.ecommerce {
    padding: 120px 0;
    background: var(--bg-light);
    position: relative;
}

.ecommerce::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to bottom, var(--bg-white), transparent);
}

.ecommerce::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, var(--bg-white), transparent);
}

.product-categories {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 50px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.category {
    text-align: center;
    background: var(--bg-white);
    padding: 50px 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(139, 69, 19, 0.08);
    min-height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-secondary);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    border-radius: var(--radius-lg);
}

.category:hover::before {
    opacity: 0.08;
}

.category:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(139, 69, 19, 0.2);
}

.category > * {
    position: relative;
    z-index: 2;
}

.category i {
    transition: all 0.4s ease;
    filter: drop-shadow(0 4px 8px rgba(65, 105, 225, 0.2));
}

.category:hover i {
    transform: scale(1.1) translateY(-3px);
    filter: drop-shadow(0 8px 16px rgba(65, 105, 225, 0.3));
}

.category img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.category:hover img {
    transform: scale(1.05);
}

.category h3 {
    color: var(--text-dark);
    margin-bottom: 15px;
    font-size: 1.4rem;
    font-weight: 600;
}

.category p {
    color: var(--text-light);
}

/* 網站設計區塊 */
.webdesign {
    padding: 120px 0;
    background: var(--bg-white);
    position: relative;
}

.webdesign::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to bottom, var(--bg-light), transparent);
}

.webdesign::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, var(--bg-light), transparent);
}

.design-services {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-top: 50px;
}

.design-services ul {
    list-style: none;
}

.design-services li {
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    color: var(--text-dark);
    padding: 15px 20px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.design-services li:hover {
    transform: translateX(10px);
    background: var(--bg-white);
    box-shadow: var(--shadow-md);
}

.design-services i {
    color: var(--primary-color);
    margin-right: 20px;
    font-size: 1.3rem;
    background: rgba(46, 139, 87, 0.1);
    padding: 12px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.design-services li:hover i {
    background: rgba(46, 139, 87, 0.2);
    transform: scale(1.1);
}

.design-image img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transition: all 0.4s ease;
    border: 3px solid rgba(46, 139, 87, 0.1);
}

.design-image img:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-xl);
    border-color: rgba(46, 139, 87, 0.3);
}

/* 關於我們區塊 */
.about {
    padding: 120px 0;
    background: var(--bg-light);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to bottom, var(--bg-white), transparent);
}

.about::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, var(--bg-white), transparent);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 50px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.mission, .values {
    background: var(--bg-white);
    padding: 60px 50px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 2px solid rgba(46, 139, 87, 0.08);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.mission::before, .values::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-sustainable);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.mission:hover::before, .values:hover::before {
    transform: scaleX(1);
}

.mission:hover, .values:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(46, 139, 87, 0.2);
}

.mission h3, .values h3 {
    color: var(--text-dark);
    margin-bottom: 25px;
    font-size: 1.6rem;
    font-weight: 600;
}

.mission ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mission ul li {
    margin-bottom: 12px;
    padding: 12px 18px;
    background: linear-gradient(135deg, rgba(46, 139, 87, 0.05), rgba(65, 105, 225, 0.05));
    border-radius: var(--radius-sm);
    color: var(--text-dark);
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
    border-left: 3px solid var(--primary-color);
    font-size: 0.95rem;
    line-height: 1.5;
}

.mission ul li:hover {
    background: linear-gradient(135deg, rgba(46, 139, 87, 0.1), rgba(65, 105, 225, 0.1));
    transform: translateX(5px);
    box-shadow: var(--shadow-sm);
}

.mission ul li:before {
    content: '•';
    position: absolute;
    left: 8px;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.mission p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1.1rem;
}

.values ul {
    list-style: none;
}

.values li {
    margin-bottom: 18px;
    padding: 18px 22px;
    background: linear-gradient(135deg, rgba(46, 139, 87, 0.08), rgba(65, 105, 225, 0.08));
    border-radius: var(--radius-md);
    color: var(--text-dark);
    font-weight: 500;
    position: relative;
    transition: all 0.4s ease;
    border-left: 4px solid var(--primary-color);
    font-size: 0.95rem;
    line-height: 1.5;
}

.values li:hover {
    transform: translateX(15px);
    background: linear-gradient(135deg, rgba(46, 139, 87, 0.12), rgba(65, 105, 225, 0.12));
    box-shadow: var(--shadow-sm);
}

.values li:before {
    content: '✓';
    position: absolute;
    right: 25px;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
    background: rgba(46, 139, 87, 0.1);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.values li:hover:before {
    background: rgba(46, 139, 87, 0.2);
    transform: scale(1.1);
}

/* 聯絡我們區塊 */
.contact {
    padding: 120px 0;
    background: var(--bg-white);
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to bottom, var(--bg-light), transparent);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 50px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-weight: 500;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 18px 20px;
    border: 2px solid rgba(46, 139, 87, 0.1);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: all 0.4s ease;
    background: var(--bg-card);
    color: var(--text-dark);
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(46, 139, 87, 0.1);
    background: var(--bg-white);
    transform: translateY(-2px);
}

.form-group select {
    width: 100%;
    padding: 18px 20px;
    border: 2px solid rgba(46, 139, 87, 0.1);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: all 0.4s ease;
    background: var(--bg-card);
    cursor: pointer;
    color: var(--text-dark);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

button[type="submit"] {
    background: var(--gradient-sustainable);
    color: white;
    padding: 18px 50px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

button[type="submit"]::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;
}

button[type="submit"]:hover::before {
    left: 100%;
}

button[type="submit"]:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

button[type="submit"]:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.contact-info {
    background: var(--bg-card);
    padding: 50px 40px;
    border-radius: var(--radius-lg);
    border-left: 5px solid var(--primary-color);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.contact-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(46, 139, 87, 0.02), rgba(65, 105, 225, 0.02));
    pointer-events: none;
}

.contact-message {
    background: var(--bg-white);
    padding: 60px 50px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 2px solid rgba(46, 139, 87, 0.08);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-sustainable);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.contact-message:hover::before {
    transform: scaleX(1);
}

.contact-message:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(46, 139, 87, 0.2);
}

.contact-message h3 {
    color: var(--text-dark);
    margin-bottom: 25px;
    font-size: 1.6rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.contact-message p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 1.05rem;
    position: relative;
    z-index: 1;
}

.contact-cta {
    margin-top: 30px;
    position: relative;
    z-index: 1;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--gradient-sustainable);
    color: white;
    padding: 18px 35px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.4s ease;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.cta-button::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;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.cta-button i {
    font-size: 1.2rem;
}

/* 回到頂端按鈕 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--gradient-sustainable);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow-lg);
    transition: all 0.4s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    background: linear-gradient(135deg, #2e8b57, #4169e1);
}

.back-to-top:active {
    transform: translateY(-2px);
}

.back-to-top i {
    transition: transform 0.3s ease;
}

.back-to-top:hover i {
    transform: translateY(-2px);
}

.contact-info h3 {
    color: var(--text-dark);
    margin-bottom: 30px;
    font-size: 1.5rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.contact-info p {
    margin-bottom: 20px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.contact-info p:hover {
    color: var(--text-dark);
    transform: translateX(5px);
}

.contact-info i {
    color: var(--primary-color);
    margin-right: 20px;
    font-size: 1.3rem;
    width: 25px;
    transition: all 0.3s ease;
}

.contact-info p:hover i {
    color: var(--accent-color);
    transform: scale(1.1);
}

.social-media {
    margin-top: 40px;
    display: flex;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.social-media a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--gradient-sustainable);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.4s ease;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.social-media a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.social-media a:hover::before {
    left: 100%;
}

.social-media a:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: var(--shadow-xl);
}

/* 頁腳 */
footer {
    background: var(--primary-dark);
    color: white;
    padding: 50px 0 30px;
    text-align: center;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--secondary-color);
}

.footer-links {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    gap: 40px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.4s ease;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    position: relative;
}

.footer-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.footer-links a:hover {
    color: white;
    transform: translateY(-2px);
}

.footer-links a:hover::before {
    width: 100%;
}

/* 通知樣式 */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    max-width: 400px;
    animation: slideInRight 0.3s ease;
}

.notification-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    color: white;
}

.notification-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    margin-left: 15px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.notification-close:hover {
    opacity: 1;
}

/* 動畫 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOutRight {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* 滾動動畫 */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 載入動畫 */
body:not(.loaded) {
    overflow: hidden;
}

body:not(.loaded)::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-sustainable);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

body:not(.loaded)::after {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 10000;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .service-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        max-width: 500px;
    }
    
    .service-card {
        padding: 40px 30px;
        min-height: 300px;
    }
    
    .service-card i {
        font-size: 3.5rem;
        margin-bottom: 25px;
    }
    
    .service-card h3 {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }
    
    .design-services, .about-content, .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .mission, .values {
        padding: 40px 30px;
        min-height: auto;
    }
    
    .values li {
        padding: 15px 18px;
        font-size: 0.9rem;
    }
    
    /* 漢堡選單在移動設備上顯示 */
    .hamburger {
        display: flex;
    }
    
    /* 導航選單在移動設備上的樣式 */
    .nav-list {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        gap: 0;
        padding: 80px 30px 30px;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }
    
    .nav-list.active {
        right: 0;
    }
    
    .nav-list li {
        margin: 10px 0;
        opacity: 0;
        transform: translateX(50px);
        transition: all 0.3s ease;
    }
    
    .nav-list.active li {
        opacity: 1;
        transform: translateX(0);
    }
    
    /* 為每個選單項目添加延遲動畫 */
    .nav-list li:nth-child(1) { transition-delay: 0.1s; }
    .nav-list li:nth-child(2) { transition-delay: 0.15s; }
    .nav-list li:nth-child(3) { transition-delay: 0.2s; }
    .nav-list li:nth-child(4) { transition-delay: 0.25s; }
    .nav-list li:nth-child(5) { transition-delay: 0.3s; }
    .nav-list li:nth-child(6) { transition-delay: 0.35s; }
    .nav-list li:nth-child(7) { transition-delay: 0.4s; }
    .nav-list li:nth-child(8) { transition-delay: 0.45s; }
    
    .nav-list li a {
        font-size: 1.1rem;
        padding: 15px 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        display: block;
        width: 100%;
    }
    
    .nav-list li a:hover {
        background: rgba(46, 139, 87, 0.1);
        padding-left: 15px;
        border-radius: 8px;
    }
    
    /* 遮罩層 */
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 998;
    }
    
    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    .slide h2 {
        font-size: 2rem;
        padding: 15px 25px;
    }
    
    .slide p {
        font-size: 1.1rem;
    }
    
    .product-categories {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .category {
        padding: 40px 30px;
        min-height: 300px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .services, .ecommerce, .webdesign, .about, .contact {
        padding: 80px 0;
    }
    
    .notification {
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .logo h1 {
        font-size: 1.6rem;
    }
    
    .contact-info, .contact-message {
        padding: 40px 30px;
    }
    
    .cta-button {
        padding: 15px 25px;
        font-size: 1rem;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .slide h2 {
        font-size: 1.8rem;
    }
    
    .service-card, .category, .mission, .values {
        padding: 25px 20px;
    }
    
    .contact-info {
        padding: 25px 20px;
    }
    
    .service-card {
        min-height: 250px;
    }
    
    .service-card i {
        font-size: 3rem;
        margin-bottom: 20px;
    }
    
    /* 小螢幕漢堡選單調整 */
    .nav-list {
        width: 100%;
        right: -100%;
    }
    
    .hamburger {
        padding: 8px;
    }
    
    .hamburger span {
        width: 22px;
        height: 2.5px;
    }
} 