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

html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
    overflow-x: hidden;
    width: 100%;
    height: 100%;
}

body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
    min-height: 100vh;
    height: auto;
}

/* 防止内容溢出 */
img, video, iframe {
    max-width: 100%;
    height: auto;
}

/* 防止长文本溢出 */
p, h1, h2, h3, h4, h5, h6, span, a {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
}

/* 移除iOS Safari的点击高亮 */
* {
    -webkit-tap-highlight-color: transparent;
}

:root {
    /* 主色调 - #666fff */
    --primary-color: #666fff;
    --primary-light: #8b7fff;
    --primary-dark: #4d5aff;
    --primary-gradient: linear-gradient(135deg, #666fff 0%, #8b7fff 100%);
    --primary-gradient-subtle: linear-gradient(135deg, rgba(102, 111, 255, 0.08) 0%, rgba(139, 127, 255, 0.05) 100%);
    
    /* 文字颜色 - 更精致的灰色调 */
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-light: #64748b;
    --text-muted: #94a3b8;
    
    /* 背景色 - 更柔和的色调 */
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --bg-card: #ffffff;
    --bg-hover: rgba(102, 111, 255, 0.04);
    
    /* 边框和分割线 */
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    --border-focus: rgba(102, 111, 255, 0.3);
    
    /* 阴影 - 更精致的层次 */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-primary: 0 10px 25px -5px rgba(102, 111, 255, 0.2), 0 4px 6px -2px rgba(102, 111, 255, 0.1);
    
    /* Footer 深色背景 */
    --footer-bg: #0f172a;
    --footer-text: rgba(255, 255, 255, 0.9);
    --footer-text-light: rgba(255, 255, 255, 0.7);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft JhengHei', 'PingFang TC', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-light);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    min-height: 100vh;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    background: var(--bg-white);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow-x: hidden;
}

/* 頁首樣式 */
header {
    background: var(--primary-gradient);
    color: white;
    padding: 20px 30px;
    box-shadow: var(--shadow-md);
    width: 100%;
    position: relative;
    overflow: hidden;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.header-top {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    margin-bottom: 20px;
    width: 100%;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    flex-wrap: wrap;
}

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

.language-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95em;
}

.lang-link {
    color: white;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.3s;
    font-weight: 500;
    opacity: 0.9;
}

.lang-link:hover {
    background: rgba(255, 255, 255, 0.2);
    opacity: 1;
}

.lang-link.active {
    background: rgba(255, 255, 255, 0.25);
    opacity: 1;
    font-weight: 600;
}

.lang-separator {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 300;
}

.logo-icon {
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    overflow: visible;
    flex-shrink: 0;
    padding: 0;
    background: transparent;
    max-width: 200px;
    max-height: 80px;
    min-width: 0;
    position: relative;
}

.logo-icon img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
    flex-shrink: 0;
}

nav {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    transition: background-color 0.3s;
    font-weight: 500;
}

nav a:hover {
    background: rgba(255, 255, 255, 0.2);
}

nav a.active {
    background: rgba(255, 255, 255, 0.25);
    font-weight: 600;
}

/* 主內容區域 */
main {
    flex: 1;
    padding: 40px 30px;
}

/* 首頁樣式 */
.home-page .hero {
    text-align: center;
    padding: 60px 20px;
    background: transparent;
    border-radius: 16px;
    margin-bottom: 50px;
}

.app-title-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    gap: 15px;
}

.app-icon-link {
    text-decoration: none;
    display: inline-block;
    flex-shrink: 0;
}

.app-icon-container {
    width: 80px;
    height: 80px;
    border-radius: 18px;
    background: #666fff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15),
                0 4px 8px rgba(0, 0, 0, 0.1),
                0 2px 4px rgba(0, 0, 0, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 0.4),
                inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    overflow: hidden;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.app-icon-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2),
                0 6px 12px rgba(0, 0, 0, 0.15),
                0 2px 4px rgba(0, 0, 0, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.4),
                inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.app-icon-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0) 50%, rgba(0, 0, 0, 0.05) 100%);
    pointer-events: none;
    z-index: 1;
}

.app-icon-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 14px;
    display: block;
    position: relative;
    z-index: 0;
}

.app-icon-container:empty {
    display: none;
}

.home-page .hero h2 {
    font-size: 2.5em;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    -moz-background-clip: text;
    -moz-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    font-weight: 700;
    letter-spacing: -0.02em;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.home-page .hero .subtitle {
    font-size: 1.2em;
    color: var(--text-secondary);
    font-weight: 400;
}

.content {
    margin-bottom: 40px;
}

.intro-section,
.features-section {
    margin-bottom: 50px;
}

.intro-section h3,
.features-section h3 {
    color: var(--text-primary);
    font-size: 1.8em;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
    display: inline-block;
    font-weight: 600;
    letter-spacing: -0.01em;
    position: relative;
}

.intro-section h3::after,
.features-section h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

.intro-text {
    font-size: 1.1em;
    line-height: 1.8;
    color: var(--text-secondary);
}

.intro-text p {
    margin-bottom: 20px;
}

.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.feature-item {
    background: var(--bg-card);
    padding: 24px 28px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: auto;
    height: auto;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-focus);
    background: var(--bg-white);
}

.feature-item:hover::before {
    transform: scaleX(1);
}

.feature-item p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 1.05em;
    line-height: 1.6;
    text-align: center;
    width: 100%;
}

.cta-section {
    text-align: center;
    margin-top: 50px;
}

.btn-primary {
    display: inline-block;
    background: var(--primary-gradient);
    color: white;
    padding: 16px 40px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: 600;
    box-shadow: var(--shadow-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.01em;
    position: relative;
    overflow: hidden;
}

.btn-primary::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;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 20px -5px rgba(102, 111, 255, 0.3), 0 4px 6px -2px rgba(102, 111, 255, 0.15);
}

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

/* 下載頁面樣式 */
.download-page .download-hero {
    text-align: center;
    padding: 40px 20px;
    margin-bottom: 50px;
}

.download-title-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    gap: 15px;
}

.download-page .download-hero h2 {
    font-size: 2.2em;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    -moz-background-clip: text;
    -moz-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    font-weight: 700;
    letter-spacing: -0.02em;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.download-page .download-hero .subtitle {
    font-size: 1.1em;
    color: var(--text-secondary);
}

.qr-section {
    max-width: 900px;
    margin: 0 auto;
}

.qr-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
    align-items: start;
}

@media (max-width: 768px) {
    .qr-container {
        grid-template-columns: 1fr;
    }
}

.qr-code-wrapper {
    background: var(--bg-white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    text-align: center;
}

.qr-code {
    position: relative;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    aspect-ratio: 1;
    background: white;
    border: 3px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.qr-code img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.qr-placeholder {
    padding: 20px;
    color: var(--text-light);
    font-size: 0.9em;
    text-align: center;
}

.qr-info {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 15px;
}

.qr-info h3 {
    color: var(--text-primary);
    font-size: 1.5em;
    margin-bottom: 20px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.instruction-text {
    color: var(--text-secondary);
    line-height: 1.8;
}

.instruction-text p {
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
}

.instruction-text p::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
}

.download-links {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    text-align: center;
    border: 1px solid var(--border-light);
}

.download-links h3 {
    color: var(--text-primary);
    font-size: 1.5em;
    margin-bottom: 30px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.link-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-download {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05em;
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
    text-align: center;
    min-width: 180px;
    width: 180px;
    box-sizing: border-box;
    height: auto;
}

.btn-download.ios {
    background: linear-gradient(135deg, #007aff 0%, #0051d5 100%);
    color: white;
}

.btn-download.android {
    background: linear-gradient(135deg, #3ddc84 0%, #2ab563 100%);
    color: white;
}

.btn-download:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}


/* 頁尾樣式 */
footer {
    background: #666fff;
    color: rgba(255, 255, 255, 0.95);
    padding: 30px 30px 20px;
    margin-top: auto;
    border-top: none;
}

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

.footer-company-name {
    color: rgba(255, 255, 255, 1);
    margin-bottom: 12px;
    font-size: 1.25em;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.footer-section p {
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    font-size: 0.95em;
}

.copyright {
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875em;
    letter-spacing: 0.02em;
}

/* 教程頁面樣式 */
.tutorial-page {
    padding: 40px 30px;
    max-width: 1200px;
    margin: 0 auto;
    min-height: calc(100vh - 200px);
}

.tutorial-hero {
    text-align: center;
    padding: 60px 20px;
    background: transparent;
    border-radius: 16px;
    margin-bottom: 50px;
}

.tutorial-hero h2 {
    font-size: 2.5em;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    -moz-background-clip: text;
    -moz-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    font-weight: 700;
    letter-spacing: -0.02em;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.tutorial-hero .subtitle {
    font-size: 1.2em;
    color: var(--text-secondary);
    font-weight: 400;
}

.tutorial-content {
    margin-bottom: 40px;
}

.tutorial-steps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    align-items: stretch;
}

.tutorial-topic {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 0;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 600px;
}

.tutorial-topic:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-focus);
}

.tutorial-topic-header {
    padding: 25px 30px 15px;
    border-bottom: 2px solid var(--border-light);
}

.tutorial-topic-title {
    font-size: 1.4em;
    color: var(--text-primary);
    font-weight: 600;
    margin: 0;
    letter-spacing: -0.01em;
}

.tutorial-topic-content {
    padding: 20px 30px 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex-grow: 1;
}

.tutorial-topic-description {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.05em;
    margin-bottom: 20px;
    flex-shrink: 0;
    min-height: 60px;
}

.tutorial-topic-description:empty {
    min-height: 60px;
    display: block;
}

.tutorial-media {
    margin-top: auto;
    border-radius: 12px;
    overflow: hidden;
    background: #f7f8fa;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 400px;
    min-height: 400px;
    position: relative;
    padding: 10px;
    box-sizing: border-box;
}

.tutorial-media img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    display: block;
    object-fit: contain;
    border-radius: 8px;
    background: transparent;
    margin: 0 auto;
    transition: transform 0.2s ease;
}

.tutorial-image-clickable {
    cursor: pointer;
}

.tutorial-image-clickable:hover {
    transform: scale(1.02);
    opacity: 0.9;
}

.tutorial-media video {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    display: block;
    -o-object-fit: contain;
    object-fit: contain;
    border-radius: 8px;
    background: #000;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.tutorial-placeholder {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
    font-size: 1.1em;
}

/* 聯繫頁面樣式 */
.contact-page {
    padding: 40px 30px;
    max-width: 1200px;
    margin: 0 auto;
    min-height: calc(100vh - 200px);
}

.contact-section {
    text-align: center;
}

.contact-section h1 {
    font-size: 2.5em;
    color: #666fff;
    margin-bottom: 12px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.contact-intro {
    font-size: 1em;
    color: #718096;
    margin-bottom: 40px;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

.contact-info-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.contact-item {
    background: white;
    border-radius: 16px;
    padding: 24px 32px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 28px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(102, 111, 255, 0.1);
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04),
                0 1px 3px rgba(0, 0, 0, 0.02);
}

.contact-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 111, 255, 0.12),
                0 4px 12px rgba(0, 0, 0, 0.06);
    border-color: rgba(102, 111, 255, 0.2);
}

.contact-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, #666fff 0%, #8b7fff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 6px 16px rgba(102, 111, 255, 0.3),
                0 2px 8px rgba(102, 111, 255, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
}

.contact-icon::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0) 50%, rgba(0, 0, 0, 0.1) 100%);
    pointer-events: none;
    border-radius: 14px;
}

/* .contact-company-icon 使用与邮箱图标相同的样式 */

.contact-company-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    display: block;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

.contact-item:hover .contact-icon {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 111, 255, 0.4),
                0 4px 12px rgba(102, 111, 255, 0.25),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.contact-icon svg {
    width: 28px;
    height: 28px;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

.contact-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 0;
    width: 100%;
}

.contact-item h3 {
    display: none;
}

.contact-item p {
    font-size: 1.1em;
    color: #666fff;
    line-height: 1.6;
    margin: 0;
    font-weight: 700;
    word-break: break-word;
    letter-spacing: -0.01em;
    text-transform: none;
    /* 英文字体优先：Inter（现代、优雅） */
    /* 中文字体：苹方、微软雅黑、思源黑体 */
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 
                 'SF Pro Display', 'SF Pro Text', 'Roboto',
                 'PingFang SC', 'PingFang TC', 
                 'Microsoft YaHei', 'Microsoft JhengHei',
                 'Source Han Sans SC', 'Source Han Sans TC', 
                 'Noto Sans SC', 'Noto Sans TC',
                 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    display: block;
    text-align: right;
    flex: 0 1 auto;
    min-width: 0;
    font-feature-settings: 'kern' 1, 'liga' 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.contact-item p a {
    color: #666fff;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    font-weight: 500;
    position: relative;
    padding-bottom: 2px;
    font-family: inherit;
    text-transform: none;
    letter-spacing: 0;
}

.contact-item p a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #666fff 0%, #8b7fff 100%);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 1px;
}

.contact-item p a:hover {
    color: #8b7fff;
    transform: translateY(-1px);
}

.contact-item p a:hover::after {
    width: 100%;
}

/* 響應式設計 */
@media (max-width: 768px) {
    header {
        padding: 12px 16px;
    }

    .header-top {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
        margin-bottom: 12px;
        width: 100%;
        position: relative;
    }

    .logo {
        flex: 0 0 auto;
        min-width: 0;
        display: flex;
        align-items: center;
        max-width: calc(100% - 140px);
    }

    .logo-icon {
        max-width: 100%;
        max-height: 50px;
        width: auto;
        height: auto;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        overflow: visible;
    }

    .logo-icon img {
        max-width: 100%;
        max-height: 50px;
        width: auto;
        height: auto;
        object-fit: contain;
        display: block;
    }

    .language-switcher {
        flex: 0 0 auto;
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 0.85em;
        white-space: nowrap;
        margin-left: auto;
    }

    .lang-link {
        padding: 5px 10px;
        font-size: 0.9em;
    }

    .lang-separator {
        font-size: 0.8em;
    }

    nav {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
        width: 100%;
        margin-top: 0;
    }

    nav a {
        padding: 6px 12px;
        font-size: 0.85em;
        white-space: nowrap;
        flex: 1 1 auto;
        min-width: 0;
        text-align: center;
    }

    main {
        padding: 30px 20px;
    }

    .contact-page {
        padding: 30px 20px;
    }

    .contact-section h1 {
        font-size: 2em;
        margin-bottom: 10px;
    }

    .contact-intro {
        font-size: 0.95em;
        margin-bottom: 30px;
        padding: 0 10px;
    }

    .contact-info-container {
        gap: 14px;
        max-width: 100%;
        padding: 0 10px;
    }

    .contact-item {
        padding: 20px 24px;
        border-radius: 14px;
        gap: 24px;
    }

    .contact-icon {
        width: 52px;
        height: 52px;
        border-radius: 12px;
    }

    .contact-icon svg {
        width: 26px;
        height: 26px;
    }

    .contact-company-icon img {
        width: 30px;
        height: 30px;
    }

    .contact-item p {
        font-size: 1.05em;
        color: #666fff;
        font-weight: 700;
    }

    .home-page .hero {
        padding: 40px 15px;
    }

    .home-page .hero h2 {
        font-size: 1.8em;
    }

    .app-icon-container {
        width: 60px;
        height: 60px;
        border-radius: 14px;
        padding: 8px;
    }

    .app-icon-container img {
        border-radius: 12px;
    }

    .app-title-wrapper {
        gap: 12px;
    }

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

    .qr-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .link-buttons {
        flex-direction: column;
    }

    .btn-download {
        width: 100%;
        min-width: 100%;
        justify-content: center;
    }

    .tutorial-page {
        padding: 30px 20px;
    }

    .tutorial-hero {
        padding: 40px 15px;
        margin-bottom: 30px;
    }

    .tutorial-hero h2 {
        font-size: 1.8em;
    }

    .tutorial-steps {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .tutorial-topic {
        min-height: 500px;
        height: 100%;
    }
    
    .tutorial-topic-description {
        min-height: 50px;
    }
    
    .tutorial-topic-description:empty {
        min-height: 50px;
    }

    .tutorial-topic-header {
        padding: 20px 20px 12px;
    }

    .tutorial-topic-title {
        font-size: 1.2em;
    }

    .tutorial-topic-content {
        padding: 15px 20px 20px;
    }

    .tutorial-topic-description {
        font-size: 1em;
    }

    .tutorial-media {
        height: 300px;
        min-height: 300px;
        padding: 8px;
    }
    
    .tutorial-media img {
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
    }
    
    .tutorial-media video {
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
    }
}

/* 超小屏幕优化（小于 480px） */
@media (max-width: 480px) {
    header {
        padding: 10px 12px;
    }

    .header-top {
        gap: 8px;
        margin-bottom: 10px;
    }

    .logo {
        max-width: calc(100% - 120px);
    }

    .logo-icon {
        max-height: 45px;
    }

    .logo-icon img {
        max-height: 45px;
    }

    .tutorial-topic {
        min-height: 450px;
    }
    
    .tutorial-topic-description {
        min-height: 40px;
    }
    
    .tutorial-topic-description:empty {
        min-height: 40px;
    }
    
    .tutorial-media {
        height: 250px;
        min-height: 250px;
        padding: 6px;
    }
    
    .tutorial-media img {
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
    }
    
    .tutorial-media video {
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
    }

    .language-switcher {
        gap: 4px;
        font-size: 0.8em;
    }

    .lang-link {
        padding: 4px 8px;
        font-size: 0.85em;
    }

    nav {
        gap: 6px;
    }

    nav a {
        padding: 5px 8px;
        font-size: 0.8em;
    }
}

/* 极小屏幕优化（小于 360px） */
@media (max-width: 360px) {
    header {
        padding: 8px 10px;
    }

    .header-top {
        gap: 6px;
        margin-bottom: 8px;
    }

    .logo {
        max-width: calc(100% - 100px);
    }

    .logo-icon {
        max-height: 40px;
    }

    .logo-icon img {
        max-height: 40px;
    }

    .language-switcher {
        font-size: 0.75em;
    }

    .lang-link {
        padding: 3px 6px;
        font-size: 0.8em;
    }

    .tutorial-topic {
        min-height: 400px;
    }
    
    .tutorial-topic-description {
        min-height: 35px;
    }
    
    .tutorial-topic-description:empty {
        min-height: 35px;
    }
    
    .tutorial-media {
        height: 200px;
        min-height: 200px;
        padding: 5px;
    }
    
    .tutorial-media img {
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
    }
    
    .tutorial-media video {
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
    }

    nav a {
        padding: 4px 6px;
        font-size: 0.75em;
    }
}

/* 圖片放大查看（Lightbox）樣式 */
.image-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.image-lightbox.active {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.lightbox-content {
    position: relative;
    z-index: 10001;
    max-width: 90vw;
    max-width: calc(100vw - 40px);
    max-height: 90vh;
    max-height: calc(100vh - 40px);
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-animation: lightboxFadeIn 0.3s ease;
    animation: lightboxFadeIn 0.3s ease;
    width: 100%;
    overflow: hidden;
}

@-webkit-keyframes lightboxFadeIn {
    from {
        opacity: 0;
        -webkit-transform: scale(0.9);
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        -webkit-transform: scale(1);
        transform: scale(1);
    }
}

@keyframes lightboxFadeIn {
    from {
        opacity: 0;
        -webkit-transform: scale(0.9);
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        -webkit-transform: scale(1);
        transform: scale(1);
    }
}

.lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10002;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10002;
}

.lightbox-prev,
.lightbox-next {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    pointer-events: auto;
    margin: 0 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.lightbox-prev {
    left: 0;
}

.lightbox-next {
    right: 0;
}

@media (max-width: 768px) {
    .lightbox-content {
        max-width: 95vw;
        max-height: 95vh;
    }
    
    .lightbox-close {
        top: -40px;
        width: 35px;
        height: 35px;
        font-size: 24px;
    }
    
    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 28px;
        margin: 0 10px;
    }
}

/* Cookie 同意橫幅樣式（GDPR 合規） - 高級版本 */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.12),
                0 -2px 8px rgba(0, 0, 0, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 0.9);
    z-index: 10000;
    padding: 24px 28px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    border-top: 1px solid rgba(102, 111, 255, 0.2);
    -webkit-animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.cookie-consent-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        var(--primary-color) 0%, 
        var(--primary-light) 50%, 
        var(--primary-color) 100%);
    background-size: 200% 100%;
    -webkit-animation: gradientShift 3s ease infinite;
    animation: gradientShift 3s ease infinite;
}

@-webkit-keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@-webkit-keyframes slideUp {
    from {
        -webkit-transform: translateY(100%);
        transform: translateY(100%);
    }
    to {
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        -webkit-transform: translateY(100%);
        transform: translateY(100%);
    }
    to {
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
}

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    -ms-flex-pack: justify;
    justify-content: space-between;
    gap: 20px;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}

.cookie-consent-text {
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    -ms-flex: 1;
    flex: 1;
    min-width: 300px;
}

.cookie-consent-text h4 {
    margin: 0 0 10px 0;
    color: var(--text-primary);
    font-size: 1.15em;
    font-weight: 700;
    letter-spacing: -0.01em;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 8px;
}

.cookie-consent-text h4::before {
    content: '🍪';
    font-size: 1.2em;
    -webkit-filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.cookie-consent-text p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.95em;
    line-height: 1.7;
    letter-spacing: 0.01em;
}

.cookie-consent-text a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1.5px solid transparent;
    -webkit-transition: all 0.2s ease;
    transition: all 0.2s ease;
    position: relative;
}

.cookie-consent-text a::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--primary-gradient);
    -webkit-transition: width 0.3s ease;
    transition: width 0.3s ease;
}

.cookie-consent-text a:hover {
    color: var(--primary-dark);
}

.cookie-consent-text a:hover::after {
    width: 100%;
}

.cookie-consent-buttons {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    gap: 10px;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    -webkit-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.01em;
}

.cookie-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    -webkit-transition: width 0.6s, height 0.6s;
    transition: width 0.6s, height 0.6s;
}

.cookie-btn:hover::before {
    width: 300px;
    height: 300px;
}

.cookie-btn-accept {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 111, 255, 0.3),
                0 2px 4px rgba(102, 111, 255, 0.2);
    position: relative;
    z-index: 1;
}

.cookie-btn-accept:hover {
    -webkit-transform: translateY(-2px);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 111, 255, 0.4),
                0 4px 8px rgba(102, 111, 255, 0.3);
}

.cookie-btn-accept:active {
    -webkit-transform: translateY(0);
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(102, 111, 255, 0.3);
}

.cookie-btn-reject {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    color: var(--text-primary);
    border: 1.5px solid var(--border-color);
    position: relative;
    z-index: 1;
}

.cookie-btn-reject:hover {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-color: var(--text-light);
    -webkit-transform: translateY(-1px);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.cookie-btn-settings {
    background: rgba(255, 255, 255, 0.8);
    color: var(--primary-color);
    border: 1.5px solid var(--primary-color);
    position: relative;
    z-index: 1;
}

.cookie-btn-settings:hover {
    background: var(--primary-gradient-subtle);
    border-color: var(--primary-light);
    -webkit-transform: translateY(-1px);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 111, 255, 0.15);
}

/* Cookie 設定面板 */
.cookie-settings-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10001;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-pack: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    -webkit-animation: fadeIn 0.3s ease;
    animation: fadeIn 0.3s ease;
}

.cookie-settings-content {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 20px;
    padding: 36px;
    max-width: 640px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3),
                0 8px 24px rgba(0, 0, 0, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.5);
    -webkit-animation: scaleIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    animation: scaleIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

@-webkit-keyframes scaleIn {
    from {
        opacity: 0;
        -webkit-transform: scale(0.9) translateY(20px);
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        -webkit-transform: scale(1) translateY(0);
        transform: scale(1) translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        -webkit-transform: scale(0.9) translateY(20px);
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        -webkit-transform: scale(1) translateY(0);
        transform: scale(1) translateY(0);
    }
}

.cookie-settings-content h3 {
    margin: 0 0 12px 0;
    color: var(--text-primary);
    font-size: 1.6em;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    -moz-background-clip: text;
    -moz-text-fill-color: transparent;
    background-clip: text;
}

.cookie-settings-content > p {
    margin: 0 0 20px 0;
    color: var(--text-secondary);
    font-size: 0.95em;
}

.cookie-settings-options {
    margin-bottom: 25px;
}

.cookie-option {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: start;
    -webkit-align-items: flex-start;
    -ms-flex-align: start;
    align-items: flex-start;
    padding: 18px 20px;
    margin-bottom: 12px;
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.8) 0%, rgba(241, 245, 249, 0.6) 100%);
    border-radius: 12px;
    cursor: pointer;
    -webkit-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1.5px solid transparent;
    position: relative;
    overflow: hidden;
}

.cookie-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-gradient-subtle);
    opacity: 0;
    -webkit-transition: opacity 0.3s ease;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.cookie-option:hover {
    background: linear-gradient(135deg, rgba(241, 245, 249, 0.9) 0%, rgba(226, 232, 240, 0.7) 100%);
    border-color: rgba(102, 111, 255, 0.2);
    -webkit-transform: translateX(4px);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.cookie-option:hover::before {
    opacity: 1;
}

.cookie-option input[type="checkbox"] {
    margin-right: 14px;
    margin-top: 2px;
    cursor: pointer;
    width: 20px;
    height: 20px;
    -webkit-flex-shrink: 0;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    accent-color: var(--primary-color);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    background: white;
    -webkit-transition: all 0.2s ease;
    transition: all 0.2s ease;
}

.cookie-option input[type="checkbox"]:checked {
    background: var(--primary-gradient);
    border-color: var(--primary-color);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='white'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E");
    background-size: 14px;
    background-position: center;
    background-repeat: no-repeat;
}

.cookie-option input[type="checkbox"]:disabled {
    cursor: not-allowed;
    opacity: 0.5;
    background: #f1f5f9;
}

.cookie-option-label {
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    -ms-flex: 1;
    flex: 1;
    position: relative;
    z-index: 1;
}

.cookie-option-label strong {
    display: block;
    color: var(--text-primary);
    margin-bottom: 6px;
    font-size: 1.05em;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.cookie-option-label small {
    display: block;
    color: var(--text-secondary);
    font-size: 0.88em;
    line-height: 1.6;
    letter-spacing: 0.01em;
}

.cookie-settings-buttons {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    gap: 10px;
    -webkit-box-pack: end;
    -webkit-justify-content: flex-end;
    -ms-flex-pack: end;
    justify-content: flex-end;
}

@media (max-width: 768px) {
    .cookie-consent-content {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -webkit-flex-direction: column;
        -ms-flex-direction: column;
        flex-direction: column;
        -webkit-box-align: stretch;
        -webkit-align-items: stretch;
        -ms-flex-align: stretch;
        align-items: stretch;
    }
    
    .cookie-consent-text {
        min-width: 100%;
    }
    
    .cookie-consent-buttons {
        width: 100%;
        -webkit-box-pack: stretch;
        -webkit-justify-content: stretch;
        -ms-flex-pack: stretch;
        justify-content: stretch;
    }
    
    .cookie-btn {
        -webkit-box-flex: 1;
        -webkit-flex: 1;
        -ms-flex: 1;
        flex: 1;
        min-width: 0;
    }
    
    .cookie-settings-content {
        padding: 20px;
        margin: 20px;
    }
}

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

.intro-section,
.features-section,
.qr-section {
    animation: fadeIn 0.6s ease-out;
}

