/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4C98FE;
    --primary-hover: #3A7FD5;
    --secondary-color: #6C757D;
    --success-color: #28A745;
    --background-color: #F8F9FA;
    --card-background: #FFFFFF;
    --text-primary: #212529;
    --text-secondary: #6C757D;
    --border-color: #DEE2E6;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.15);
    --radius: 8px;
    --radius-lg: 12px;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-hero: linear-gradient(135deg, #4C98FE 0%, #6BA8FF 50%, #9BC5FF 100%);
}

body {
    font-family: 'Noto Sans TC', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--background-color);
    color: var(--text-primary);
    line-height: 1.6;
}

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

/* Header */
.header {
    background: var(--card-background);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

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

.logo img {
    height: 40px;
    width: auto;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav {
    position: relative;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.5rem;
}

.nav-menu li a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.6rem 1rem;
    border-radius: var(--radius);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-menu li a:hover {
    background: rgba(76, 152, 254, 0.1);
    color: var(--primary-color);
}

.nav-menu li a.active {
    background: var(--primary-color);
    color: white;
}

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.lang-switcher:hover {
    background: var(--card-background);
    border-color: var(--primary-color);
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    display: none;
    min-width: 150px;
    overflow: hidden;
}

.lang-dropdown.show {
    display: block;
}

.lang-option {
    display: block;
    width: 100%;
    padding: 12px 16px;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s ease;
    font-size: 0.9rem;
}

.lang-option:hover {
    background: var(--background-color);
}

/* Main Content */
.main-content {
    padding: 2rem 0;
}

/* Hero Section - New Style */
.hero-new {
    text-align: center;
    padding: 5rem 2rem;
    background: var(--gradient-hero);
    color: white;
    border-radius: var(--radius-lg);
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(76, 152, 254, 0.3);
}

.hero-new::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    pointer-events: none;
}

.hero-new::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    pointer-events: none;
}

.hero-new h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

.hero-new p {
    font-size: 1.4rem;
    opacity: 0.95;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 1;
}

.cta-button {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: white;
    color: var(--primary-color);
    border: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
    background: #f8f9fa;
}

.cta-button:active {
    transform: translateY(-1px) scale(1.02);
}

/* Guide Section */
.guide-section {
    background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 100%);
    padding: 4rem 2rem;
    border-radius: var(--radius-lg);
    margin-bottom: 3rem;
    box-shadow: var(--shadow);
}

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

/* Author Section */
.author-section {
    margin: 3rem 0;
    padding: 2rem 0;
    background: url('image/IMG_1858.png') center center / cover no-repeat;
    position: relative;
    color: white;
}

.author-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent; /* 移除全区域半透明背景 */
    z-index: 0;
}

.author-section > .container {
    position: relative;
    z-index: 1;
}

.author-card {
    display: block;
}

.author-info {
    width: 100%;
}

.author-content-wrapper {
    background: rgba(0, 0, 0, 0.15); /* 半透明黑色背景 */
    padding: 1.5rem;
    border-radius: 12px; /* 圆角效果 */
    margin-bottom: 1rem;
}

.author-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-weight: 700;
    display: inline-block;
    background: white;
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    border: 2px solid white;
}

.author-info p {
    color: white;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.author-experience {
    margin: 1.5rem 0;
    padding: 1.2rem;
    background: white;
    border-radius: var(--radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.author-experience ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.author-experience li {
    padding: 0.5rem 0;
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* App Links */
.app-links {
    display: flex;
    flex-direction: column;
    gap: 0;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.app-link {
    display: inline-block;
    transition: all 0.3s ease;
    margin-bottom: -80px;
}

.app-link:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.app-badge {
    height: 220px;
    width: auto;
    display: block;
}

.guide-section h2 {
    font-size: 2.3rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
    font-weight: 700;
    text-align: center;
}

.guide-intro {
    font-size: 1.15rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 3rem;
    line-height: 1.8;
}

.guide-section h3 {
    font-size: 1.6rem;
    margin: 2.5rem 0 1.5rem;
    color: var(--primary-color);
    font-weight: 600;
}

.guide-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.guide-subsection {
    background: white;
    padding: 1.8rem;
    border-radius: var(--radius);
    margin: 1.8rem 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-left: 4px solid var(--primary-color);
}

.guide-subsection h4 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.guide-subsection p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 0.8rem;
}

.guide-subsection ul {
    margin: 1rem 0;
}

/* Culture Grid */
.culture-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.culture-card {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-top: 4px solid var(--primary-color);
}

.culture-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(76, 152, 254, 0.15);
}

.culture-card h4 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.culture-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Mistakes Grid */
.mistakes-grid {
    display: grid;
    gap: 1.5rem;
    margin: 2rem 0;
}

.mistake-item {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.mistake-wrong {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe5e5 100%);
    padding: 1.2rem 1.5rem;
    border-left: 4px solid #dc3545;
    color: #c82333;
}

.mistake-right {
    background: linear-gradient(135deg, #f0fff4 0%, #e0ffe8 100%);
    padding: 1.2rem 1.5rem;
    border-left: 4px solid #28a745;
    color: #155724;
}

.mistake-wrong strong,
.mistake-right strong {
    display: block;
    margin-bottom: 0.5rem;
}

/* Final Reminder */
.final-reminder {
    background: linear-gradient(135deg, rgba(76, 152, 254, 0.1) 0%, rgba(107, 168, 255, 0.1) 100%);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--primary-color);
    margin-top: 2rem;
}

.final-reminder p {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.final-reminder p:last-child {
    margin-bottom: 0;
}

.final-reminder strong {
    color: var(--primary-color);
    font-weight: 700;
}

/* Post-Resignation Guide Section */
.post-resignation-guide {
    background: linear-gradient(135deg, #fff9e6 0%, #fff4cc 100%);
    padding: 4rem 2rem;
    border-radius: var(--radius-lg);
    margin-bottom: 3rem;
    box-shadow: var(--shadow);
}

.post-resignation-guide .container {
    max-width: 900px;
    margin: 0 auto;
}

.post-resignation-guide h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-weight: 700;
    text-align: center;
}

.post-resignation-guide h3 {
    font-size: 1.6rem;
    margin: 2.5rem 0 1.5rem;
    color: #f59e0b;
    font-weight: 600;
}

/* Strategy Grid */
.strategy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.strategy-card {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-top: 4px solid #f59e0b;
}

.strategy-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.2);
}

.strategy-card h4 {
    font-size: 1.2rem;
    color: #f59e0b;
    margin-bottom: 1rem;
    font-weight: 600;
}

.strategy-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Timing Cards */
.timing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.timing-card {
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.timing-card.best {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-top: 4px solid #28a745;
}

.timing-card.good {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeeba 100%);
    border-top: 4px solid #ffc107;
}

.timing-card.avoid {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border-top: 4px solid #dc3545;
}

.timing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.timing-card h4 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.timing-card.best h4 {
    color: #155724;
}

.timing-card.good h4 {
    color: #856404;
}

.timing-card.avoid h4 {
    color: #721c24;
}

.timing-card p {
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 0.95rem;
}

.timing-card small {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Email Template */
.email-template {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 2px solid var(--border-color);
}

.email-template h4 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.template-content {
    background: var(--background-color);
    padding: 1.5rem;
    border-radius: var(--radius);
    border-left: 4px solid var(--primary-color);
}

.template-content p {
    margin-bottom: 0.8rem;
    line-height: 1.8;
    color: var(--text-primary);
}

.template-content p:last-child {
    margin-bottom: 0;
}

.guide-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.guide-list li {
    padding: 1rem 1.5rem;
    margin-bottom: 0.8rem;
    background: white;
    border-radius: var(--radius);
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    font-size: 1.05rem;
    line-height: 1.6;
}

.guide-list li:hover {
    transform: translateX(8px);
    box-shadow: 0 4px 12px rgba(76, 152, 254, 0.15);
}

/* Hover list style - only show border on hover */
.hover-list {
    list-style: none;
    padding-left: 0;
}

.hover-list li {
    border-left: 4px solid transparent;
    background: white;
    transition: all 0.3s ease;
    padding-left: 1.5rem;
    position: relative;
}

.hover-list li::before {
    content: '•';
    position: absolute;
    left: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 1.2rem;
    line-height: 1;
}

.hover-list li:hover {
    border-left-color: var(--primary-color);
    transform: translateX(8px);
    box-shadow: 0 4px 12px rgba(76, 152, 254, 0.15);
}

.guide-tip {
    background: linear-gradient(135deg, rgba(76, 152, 254, 0.1) 0%, rgba(107, 168, 255, 0.1) 100%);
    padding: 1.5rem 2rem;
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--primary-color);
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-primary);
}

/* Examples Section */
.examples-section {
    background: var(--card-background);
    padding: 4rem 2rem;
    border-radius: var(--radius-lg);
    margin-bottom: 3rem;
    box-shadow: var(--shadow);
}

.examples-section .container {
    max-width: 1000px;
    margin: 0 auto;
}

.examples-section h2 {
    font-size: 2.2rem;
    margin-bottom: 3rem;
    color: var(--text-primary);
    font-weight: 700;
    text-align: center;
}

.example-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.example-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 24px rgba(76, 152, 254, 0.15);
    transform: translateY(-4px);
}

.example-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-weight: 600;
}

.letter-example {
    background: var(--background-color);
    padding: 2rem;
    border-radius: var(--radius);
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 2;
    color: var(--text-primary);
    font-size: 1rem;
    border-left: 4px solid var(--primary-color);
}

/* Tool Divider */
.tool-divider {
    margin: 4rem 0;
    text-align: center;
    position: relative;
}

.tool-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--border-color) 20%, var(--border-color) 80%, transparent 100%);
}

.tool-divider .divider-content {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: white;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 1;
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease;
}

.tool-divider .divider-content:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(76, 152, 254, 0.2);
}

.tool-divider .divider-icon {
    font-size: 1.5rem;
    animation: pulse 2s infinite;
}

.tool-divider .divider-content p {
    margin: 0;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.1rem;
}

/* Form Section */
.how-it-works {
    background: var(--card-background);
    padding: 3rem 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.how-it-works h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2.5rem;
    color: var(--text-primary);
    font-weight: 700;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
}

.step-card {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: var(--radius-lg);
    background: var(--background-color);
    transition: all 0.3s ease;
    position: relative;
}

.step-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    background: white;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--gradient-hero);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 12px rgba(76, 152, 254, 0.3);
}

.step-card h4 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
    font-weight: 600;
}

.step-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Tutorial Section */
.tutorial-section {
    background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 100%);
    padding: 4rem 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.tutorial-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #4C98FE 0%, #6BA8FF 50%, #9BC5FF 100%);
}

.tutorial-section .section-header h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2.5rem;
    color: var(--text-primary);
    font-weight: 700;
}

.tutorial-content {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.tutorial-item {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    background: var(--background-color);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.tutorial-item:hover {
    background: white;
    box-shadow: var(--shadow-lg);
    border-left-color: var(--primary-color);
    transform: translateX(8px);
}

.tutorial-icon {
    font-size: 3rem;
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tutorial-text {
    flex: 1;
}

.tutorial-text h4 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 600;
}

.tutorial-text p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.tutorial-text ul {
    list-style: none;
    padding-left: 0;
    margin: 1rem 0;
}

.tutorial-text ul li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
    line-height: 1.6;
}

.tutorial-text ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

.tutorial-text strong {
    color: var(--text-primary);
    font-weight: 600;
}

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

.category {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.category h5 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-weight: 600;
}

.category ul {
    margin: 0 !important;
}

.category ul li {
    font-size: 0.9rem;
    padding: 0.4rem 0 !important;
}

.tip {
    background: linear-gradient(135deg, rgba(76, 152, 254, 0.1) 0%, rgba(107, 168, 255, 0.1) 100%);
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    margin-top: 1rem;
    border-left: 3px solid var(--primary-color);
    font-size: 0.95rem;
}

/* Section Divider */
.section-divider {
    margin: 3rem 0;
    text-align: center;
    position: relative;
}

.section-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--border-color) 20%, var(--border-color) 80%, transparent 100%);
}

.divider-content {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 1;
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease;
}

.divider-content:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(76, 152, 254, 0.2);
}

.divider-icon {
    font-size: 1.5rem;
    animation: pulse 2s infinite;
}

.divider-content p {
    margin: 0;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
}

/* FAQ Section */
.faq-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 4rem 0;
    margin-top: 3rem;
    border-top: 2px solid var(--border-color);
}

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

.faq-section .section-header h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2.5rem;
    color: var(--text-primary);
    font-weight: 700;
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--background-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.faq-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(76, 152, 254, 0.15);
}

.faq-question {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: rgba(76, 152, 254, 0.05);
}

.faq-question h4 {
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 600;
    margin: 0;
    flex: 1;
}

.faq-question svg {
    flex-shrink: 0;
    margin-left: 1rem;
    transition: transform 0.3s ease;
    color: var(--primary-color);
}

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 2rem 1.5rem;
}

.faq-answer p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 0.95rem;
}

.form-section,
.template-section,
.signature-section,
.preview-section {
    background: var(--card-background);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.04);
    position: relative;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-header > div {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.signature-header-content {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 1rem;
}

.signature-hint-text {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(76, 152, 254, 0.08) 0%, rgba(107, 168, 255, 0.05) 100%);
    border: 1px solid rgba(76, 152, 254, 0.2);
    border-radius: 20px;
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.4;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.signature-hint-text:hover {
    background: linear-gradient(135deg, rgba(76, 152, 254, 0.12) 0%, rgba(107, 168, 255, 0.08) 100%);
    border-color: rgba(76, 152, 254, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(76, 152, 254, 0.15);
}

.signature-hint-text svg {
    flex-shrink: 0;
    stroke: var(--primary-color);
}

.step-indicator {
    display: inline-block;
    background: linear-gradient(135deg, #4C98FE 0%, #6BA8FF 100%);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(76, 152, 254, 0.3);
}

.section-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Form Styles */
.info-form {
    width: 100%;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.form-group input {
    padding: 14px 18px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
    background: white;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(76, 152, 254, 0.1);
    transform: translateY(-1px);
}

.form-group input::placeholder {
    color: var(--text-secondary);
}

/* Template Selection */
.template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.8rem;
}

.template-card {
    padding: 0.8rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
    background: var(--card-background);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.template-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-hero);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.template-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 152, 254, 0.15);
}

.template-card:hover::before {
    transform: scaleX(1);
}

.template-card.active {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(76, 152, 254, 0.08) 0%, rgba(107, 168, 255, 0.08) 100%);
    box-shadow: 0 4px 12px rgba(76, 152, 254, 0.2);
}

.template-card.active::before {
    transform: scaleX(1);
}

.template-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    line-height: 1;
}

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

.template-card h4 {
    font-size: 0.9rem;
    margin: 0;
    color: var(--text-primary);
    font-weight: 600;
    line-height: 1.3;
}

.template-card p {
    display: none;
}

/* Signature Section */
.clear-btn {
    padding: 10px 20px;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.clear-btn:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.signature-container {
    position: relative;
    border: 3px dashed var(--border-color);
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    overflow: hidden;
    transition: all 0.3s ease;
}

.signature-container:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(76, 152, 254, 0.15);
}

#signatureCanvas {
    width: 100%;
    height: 200px;
    cursor: crosshair;
    display: block;
    background: transparent;
}

.signature-hint {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--text-secondary);
    pointer-events: none;
    font-size: 1rem;
}

/* Preview Section */
.letter-preview {
    min-height: 400px;
    padding: 2.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background: white;
    margin-bottom: 1.5rem;
    font-family: 'Noto Sans TC', 'Noto Sans SC', serif;
    line-height: 1.8;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}

.letter-preview:hover {
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02), 0 4px 12px rgba(0, 0, 0, 0.08);
}

.preview-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-secondary);
    font-style: italic;
}

.letter-content {
    white-space: pre-wrap;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    position: relative;
    overflow: hidden;
    min-height: 48px;
}

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

.btn:active::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--gradient-hero);
    color: white;
    box-shadow: 0 4px 12px rgba(76, 152, 254, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(76, 152, 254, 0.4);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--card-background);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--background-color);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 2.5rem 0;
    margin-top: 3rem;
    border-top: 2px solid var(--border-color);
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-hero);
    transition: width 0.3s ease;
}

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

.footer-links a:hover::after {
    width: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .hero-new {
        padding: 3rem 1.5rem;
    }

    .hero-new h2 {
        font-size: 2rem;
    }

    .hero-new p {
        font-size: 1.1rem;
    }

    .cta-button {
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    .guide-section {
        padding: 2.5rem 1.5rem;
    }

    .guide-section h2 {
        font-size: 1.8rem;
    }

    .guide-intro {
        font-size: 1rem;
    }

    .guide-section h3 {
        font-size: 1.4rem;
    }

    .guide-list li {
        padding: 0.8rem 1.2rem;
        font-size: 0.95rem;
    }

    .guide-tip {
        padding: 1.2rem 1.5rem;
        font-size: 0.95rem;
    }

    .examples-section {
        padding: 2.5rem 1.5rem;
    }

    .examples-section h2 {
        font-size: 1.8rem;
    }

    .example-card {
        padding: 1.5rem;
    }

    .example-card h3 {
        font-size: 1.2rem;
    }

    .letter-example {
        padding: 1.5rem;
        font-size: 0.9rem;
    }

    .tool-divider {
        margin: 2.5rem 0;
    }

    .tool-divider .divider-content {
        padding: 0.8rem 1.5rem;
        gap: 0.8rem;
    }

    .tool-divider .divider-content p {
        font-size: 0.95rem;
    }

    .how-it-works {
        padding: 2rem 1.5rem;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .tutorial-item {
        flex-direction: column;
        padding: 1.5rem;
        gap: 1rem;
    }

    .tutorial-icon {
        width: 60px;
        height: 60px;
        font-size: 2.5rem;
    }

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

    .faq-question {
        padding: 1.2rem 1.5rem;
    }

    .faq-item.active .faq-answer {
        padding: 0 1.5rem 1.2rem;
    }

    .section-divider {
        margin: 2rem 0;
    }

    .divider-content {
        padding: 0.8rem 1.5rem;
        gap: 0.8rem;
    }

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

    .signature-header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .signature-hint-text {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
        white-space: normal;
    }

    /* Author Section Mobile */
    .author-section {
        padding: 1.5rem;
    }

    .author-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .author-photo {
        width: 100px;
        height: 100px;
        margin-bottom: 1rem;
    }

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

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

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

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

    .footer .container {
        flex-direction: column;
        text-align: center;
    }
}

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

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

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

.form-section,
.template-section,
.signature-section,
.preview-section,
.how-it-works {
    animation: fadeIn 0.6s ease-out;
}

.hero {
    animation: slideUp 0.8s ease-out;
}

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

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
    z-index: 1000;
    animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    backdrop-filter: blur(10px);
}

@keyframes slideIn {
    from {
        transform: translateX(400px) scale(0.8);
        opacity: 0;
    }
    to {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

/* Edit Mode Styles */
.btn-edit-toggle {
    background: var(--card-background);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    padding: 14px 28px;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    position: relative;
    overflow: hidden;
    min-height: 48px;
    box-shadow: none;
}

.btn-edit-toggle:hover {
    background: var(--background-color);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.edit-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border-radius: var(--radius-lg);
    border: 2px solid rgba(102, 126, 234, 0.2);
    animation: fadeIn 0.3s ease-out;
}

.edit-controls .btn {
    flex-shrink: 0;
}

.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
    min-height: 48px;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

.edit-hint {
    margin: 0;
    margin-left: auto;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-style: italic;
}

/* Editable Content Styles */
.letter-preview.editing .letter-content {
    border: 2px dashed #667eea;
    padding: 2rem;
    background: rgba(102, 126, 234, 0.02);
    border-radius: var(--radius);
    outline: none;
    min-height: 400px;
}

.letter-preview.editing .letter-content:focus {
    border-color: #764ba2;
    background: rgba(118, 75, 162, 0.03);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.letter-preview.editing .letter-content [contenteditable="true"] {
    cursor: text;
    padding: 2px 4px;
    border-radius: 3px;
    transition: background 0.2s ease;
}

.letter-preview.editing .letter-content [contenteditable="true"]:hover {
    background: rgba(102, 126, 234, 0.08);
}

.letter-preview.editing .letter-content [contenteditable="true"]:focus {
    background: rgba(102, 126, 234, 0.12);
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

@media (max-width: 768px) {
    .edit-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .edit-hint {
        margin-left: 0;
        text-align: center;
    }
}
