:root {
    --primary: #2563eb;
    --secondary: #1e40af;
    --accent: #f59e0b;
    --dark: #1e293b;
    --light: #f8fafc;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f0f7ff;
    color: var(--dark);
    line-height: 1.6;
}

dl, ol, ul {
    margin-top: 0!important;
    margin-bottom: 0rem!important;
}

ol, ul {
    padding-left: 0rem!important;
}

/* 頭部導航 */
.header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 50px;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-menu a, .nav-menu div {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 4px;
}

.nav-menu a.active {
            background: rgba(255,255,255,0.3);
        }

.nav-menu a:hover {
    background: rgba(255,255,255,0.15);
}

/* 輪播圖 */
.hero {
    height: 80vh;
    background: url('https://images.unsplash.com/photo-1677442135722-5f11e06a4e7f?ixlib=rb-4.0.3') center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.8), rgba(30, 64, 175, 0.7));
}

.hero-content {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    color: white;
    width: 100%;
}

.hero h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    max-width: 700px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    max-width: 600px;
}

.cta-button {
    display: inline-block;
    background-color: var(--accent);
    color: var(--dark);
    padding: 14px 32px;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    background-color: #ffb224;
}

/* 課程區塊 */
.section {
    padding: 5rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--secondary);
    display: inline-block;
    margin-bottom: 1.5rem;
}

.section-title h2::after {
    content: '';
    display: block;
    height: 4px;
    width: 80px;
    background: var(--accent);
    margin: 12px auto;
    border-radius: 2px;
}

.section-title p {
    font-size: 1.2rem;
    color: #64748b;
    max-width: 700px;
    margin: 0 auto;
}

/* 課程卡片 */
/*.courses-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}*/
.courses-container {
	display: none;
}

.courses-container.active {
	display: grid;
	animation: fadeIn 0.5s ease-in-out;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

@keyframes fadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

.course-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.course-header {
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--primary), #3b82f6);
    color: white;
}

.course-header h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.course-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.course-features {
    margin: 1rem 0;
    flex-grow: 1;
}

.course-features li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: flex-start;
}

.course-features i {
    color: var(--accent);
    margin-right: 10px;
    margin-top: 4px;
}

.btn-outline {
    display: inline-block;
    padding: 10px 20px;
    border: 2px solid var(--primary);
    color: var(--primary);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    margin-top: 1rem;
}

.btn-outline:hover {
    background-color: var(--primary);
    color: white;
}

/* 預覽功能區 */
.preview-section {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: white;
    padding: 5rem 5%;
}

.preview-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 900px) {
    .preview-container {
        grid-template-columns: 1fr;
    }
}

.code-editor, .preview-output {
    background: #334155;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.editor-header, .preview-header {
    padding: 1rem 1.5rem;
    background: #1e293b;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.editor-header h3, .preview-header h3 {
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.editor-header i, .preview-header i {
    color: var(--accent);
}

.reset-btn {
    background: #475569;
    border: none;
    color: #cbd5e1;
    padding: 6px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.reset-btn:hover {
    background: var(--accent);
    color: var(--dark);
}

textarea#codeInput {
    width: 100%;
    height: 350px;
    background: #1e293b;
    color: #e2e8f0;
    border: none;
    padding: 1.5rem;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    line-height: 1.5;
    resize: none;
    outline: none;
}

iframe#previewFrame {
    width: 100%;
    height: 350px;
    background: white;
    border: none;
}

/* 公司簡介 */
.company-profile {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.profile-text h3 {
    font-size: 1.8rem;
    color: var(--secondary);
    margin-bottom: 1.5rem;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.stat-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.stat-card .number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--secondary);
    line-height: 1.2;
}

/* 頁腳 */
.footer {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: white;
    padding: 4rem 5% 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto 3rem;
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.footer-column h4 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: var(--accent);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: var(--accent);
    transform: translateX(5px);
}

.footer-links i {
    font-size: 0.9rem;
}

.social-links {
	display: flex;
	gap: 1rem;
	margin-top: 1.5rem;
}

.social-links a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(255,255,255,0.1);
	color: white;
	transition: all 0.3s ease;
}

.social-links a:hover {
	background: var(--accent);
	transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #334155;
    color: #94a3b8;
    font-size: 0.9rem;
}

/* 回應式設計 */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hero h2 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .company-profile {
        grid-template-columns: 1fr;
    }
    
    .profile-stats {
        grid-template-columns: 1fr;
    }
}


/* Courses */
/* Page Header Styles */
.page-header {
    /*background: linear-gradient(135deg, var(--primary), var(--secondary));*/
	background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    padding: 4rem 5%;
    text-align: center;
}

.page-header h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Course Navigation */
.course-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.course-btn {
    padding: 12px 25px;
    background: white;
    border: 2px solid var(--primary);
    border-radius: 50px;
    color: var(--primary);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.course-btn.active, .course-btn:hover {
    background: var(--primary);
    color: white;
}

/* Course Card Specific Styles */
.course-badge {
    position: absolute;
    /*top: -12px;*/
	top:10px;
    right: 20px;
    background: var(--accent);
    color: var(--dark);
    padding: 6px 15px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.btn-enroll {
    display: block;
    text-align: center;
    padding: 12px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.btn-enroll:hover {
    background: var(--secondary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Footer Subscribe Form */
.subscribe {
    display: flex;
    margin: 1rem 0;
}

.subscribe input {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px 0 0 4px;
    outline: none;
}

.subscribe button {
    padding: 10px 15px;
    background: var(--accent);
    color: var(--dark);
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}

.subscribe button:hover {
    background: #ffb224;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icons a {
    color: white;
    font-size: 1.5rem;
    transition: all 0.2s ease;
}

.social-icons a:hover {
    color: var(--accent);
    transform: translateY(-3px);
}

/* Training */
/* 輪播圖 */
.teacher-hero {
	height: 70vh;
	background: url('https://images.unsplash.com/photo-1505373877841-8d25f7d46678?ixlib=rb-4.0.3') center/cover no-repeat;
	position: relative;
	display: flex;
	align-items: center;
}

.teacher-hero::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, rgba(37, 99, 235, 0.85), rgba(30, 64, 175, 0.8));
}

.hero-content {
	position: relative;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 2rem;
	color: white;
	width: 100%;
}

.hero-content h1 {
	font-size: 3.8rem;
	margin-bottom: 1.5rem;
	max-width: 800px;
	line-height: 1.2;
}

.hero-content p {
	font-size: 1.4rem;
	margin-bottom: 2rem;
	max-width: 700px;
}

.cta-button {
	display: inline-block;
	background-color: var(--accent);
	color: var(--dark);
	padding: 14px 32px;
	font-size: 1.2rem;
	font-weight: 700;
	text-decoration: none;
	border-radius: 50px;
	transition: all 0.3s ease;
	box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.cta-button:hover {
	transform: translateY(-3px);
	box-shadow: 0 6px 20px rgba(0,0,0,0.25);
	background-color: #ffb224;
}

/* 培訓介紹 */
.training-intro {
	padding: 5rem 5%;
	background: white;
	position: relative;
}

.training-intro::before {
	content: '';
	position: absolute;
	top: -50px;
	left: 0;
	width: 100%;
	height: 100px;
	background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 100"><path fill="%23f8fafc" fill-opacity="1" d="M0,64L80,80C160,96,320,128,480,128C640,128,800,96,960,80C1120,64,1280,64,1360,64L1440,64L1440,100L1360,100C1280,100,1120,100,960,100C800,100,640,100,480,100C320,100,160,100,80,100L0,100Z"></path></svg>') center/cover no-repeat;
}

.container {
	max-width: 1200px;
	margin: 0 auto;
}

.section-title {
	text-align: center;
	margin-bottom: 3rem;
	position: relative;
}

.section-title h2 {
	font-size: 2.5rem;
	color: var(--secondary);
	display: inline-block;
	margin-bottom: 1.5rem;
}

.section-title h2::after {
	content: '';
	display: block;
	height: 4px;
	width: 80px;
	background: var(--accent);
	margin: 12px auto;
	border-radius: 2px;
}

.section-title p {
	font-size: 1.2rem;
	color: #64748b;
	max-width: 700px;
	margin: 0 auto;
}

.intro-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 3rem;
	margin-top: 2rem;
}

.intro-card {
	background: #f8fafc;
	border-radius: 12px;
	padding: 2rem;
	box-shadow: 0 5px 15px rgba(0,0,0,0.05);
	transition: all 0.3s ease;
	border-left: 4px solid var(--primary);
}

.intro-card:hover {
	transform: translateY(-10px);
	box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.intro-card i {
	font-size: 3rem;
	color: var(--primary);
	margin-bottom: 1.5rem;
}

.intro-card h3 {
	font-size: 1.5rem;
	margin-bottom: 1rem;
	color: var(--dark);
}

/* 培訓課程 */
.training-courses {
	padding: 5rem 5%;
	background: #f1f5f9;
}

.course-filters {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 1rem;
	margin-bottom: 3rem;
}

.filter-btn {
	padding: 10px 25px;
	background: white;
	border: 2px solid var(--primary);
	color: var(--primary);
	border-radius: 50px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
}

.filter-btn.active, .filter-btn:hover {
	background: var(--primary);
	color: white;
}

.courses-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
	gap: 2.5rem;
}

.course-box {
	background: white;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 10px 25px rgba(0,0,0,0.08);
	transition: transform 0.3s ease;
}

.course-box:hover {
	transform: translateY(-10px);
}

.course-header {
	background: linear-gradient(135deg, var(--primary), #3b82f6);
	color: white;
	padding: 1.5rem;
	position: relative;
	/**/
	padding-top: 50px;
}

.course-header h3 {
	font-size: 1.5rem;
	margin-bottom: 0.5rem;
}

.course-tag {
	position: absolute;
	top: 20px;
	right: 20px;
	background: var(--accent);
	color: var(--dark);
	padding: 5px 15px;
	border-radius: 20px;
	font-weight: 600;
	font-size: 0.9rem;
}

.course-body {
	padding: 2rem;
}

.course-details {
	display: flex;
	justify-content: space-between;
	margin-bottom: 1.5rem;
	border-bottom: 1px solid #e2e8f0;
	padding-bottom: 1.5rem;
}

.detail-item {
	text-align: center;
}

.detail-item i {
	font-size: 1.5rem;
	color: var(--primary);
	margin-bottom: 10px;
}

.course-features {
	margin-bottom: 2rem;
}

.course-features li {
	display: flex;
	align-items: flex-start;
	margin-bottom: 1rem;
	padding-left: 1.5rem;
	position: relative;
}

.course-features li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 8px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--accent);
}

.course-action {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.course-price {
	font-size: 1.8rem;
	font-weight: 700;
	color: var(--primary);
}

.btn-primary {
	display: inline-block;
	padding: 12px 30px;
	background: var(--primary);
	color: white;
	text-decoration: none;
	border-radius: 50px;
	font-weight: 600;
	transition: all 0.3s ease;
}

.btn-primary:hover {
	background: var(--secondary);
	transform: translateY(-3px);
	box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* 教師認證 */
.certification {
	padding: 5rem 5%;
	background: linear-gradient(135deg, #1e293b, #0f172a);
	color: white;
	position: relative;
}

.certification::before {
	content: '';
	position: absolute;
	top: -50px;
	left: 0;
	width: 100%;
	height: 100px;
	background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 100"><path fill="%23f1f5f9" fill-opacity="1" d="M0,64L80,80C160,96,320,128,480,128C640,128,800,96,960,80C1120,64,1280,64,1360,64L1440,64L1440,100L1360,100C1280,100,1120,100,960,100C800,100,640,100,480,100C320,100,160,100,80,100L0,100Z"></path></svg>') center/cover no-repeat;
}

.cert-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 2rem;
	max-width: 1200px;
	margin: 3rem auto 0;
}

.cert-card {
	background: rgba(255,255,255,0.05);
	border: 1px solid rgba(255,255,255,0.1);
	border-radius: 12px;
	padding: 2rem;
	transition: all 0.3s ease;
}

.cert-card:hover {
	transform: translateY(-5px);
	background: rgba(255,255,255,0.1);
	border-color: var(--accent);
}

.cert-card i {
	font-size: 3rem;
	color: var(--accent);
	margin-bottom: 1.5rem;
}

.cert-card h3 {
	font-size: 1.5rem;
	margin-bottom: 1rem;
}

/* 聯繫表單 */
.contact-section {
	padding: 5rem 5%;
	background: white;
}

.contact-container {
	max-width: 1000px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3rem;
}

@media (max-width: 768px) {
	.contact-container {
		grid-template-columns: 1fr;
	}
}

.contact-info h2 {
	font-size: 2rem;
	color: var(--secondary);
	margin-bottom: 1.5rem;
}

.contact-info p {
	margin-bottom: 2rem;
	color: #64748b;
}

.contact-item {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
	margin-bottom: 1.5rem;
}

.contact-item i {
	font-size: 1.5rem;
	color: var(--primary);
	min-width: 40px;
}

.contact-form {
	background: #f8fafc;
	padding: 2.5rem;
	border-radius: 16px;
	box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.form-group {
	margin-bottom: 1.5rem;
}

.form-group label {
	display: block;
	margin-bottom: 0.5rem;
	font-weight: 600;
	color: var(--dark);
}

.form-control {
	width: 100%;
	padding: 14px 16px;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	font-size: 1rem;
	transition: all 0.3s ease;
}

.form-control:focus {
	outline: none;
	border-color: var(--primary);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

textarea.form-control {
	min-height: 150px;
	resize: vertical;
}

