/* 基礎樣式重設 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans TC', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #e0e9e9 100%);
}

/* 背景動畫 */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.crystal {
    position: absolute;
    background: linear-gradient(45deg, rgba(255,255,255,0.1), rgba(255,255,255,0.3));
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.crystal-1 {
    width: 80px;
    height: 80px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
    background: linear-gradient(45deg, rgba(121, 190, 190, 0.3), rgba(167, 243, 208, 0.5));
}

.crystal-2 {
    width: 60px;
    height: 60px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
    background: linear-gradient(45deg, rgba(121, 190, 190, 0.3), rgba(169, 208, 208, 0.5));
}

.crystal-3 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
    background: linear-gradient(45deg, rgba(169, 208, 208, 0.3), rgba(190, 224, 224, 0.5));
}

.crystal-4 {
    width: 70px;
    height: 70px;
    top: 30%;
    right: 30%;
    animation-delay: 1s;
    background: linear-gradient(45deg, rgba(121, 190, 190, 0.3), rgba(148, 201, 201, 0.5));
}

.crystal-5 {
    width: 90px;
    height: 90px;
    bottom: 40%;
    right: 10%;
    animation-delay: 3s;
    background: linear-gradient(45deg, rgba(148, 201, 201, 0.3), rgba(190, 224, 224, 0.5));
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-20px) rotate(120deg);
    }
    66% {
        transform: translateY(10px) rotate(240deg);
    }
}

/* 導航欄 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.nav-brand {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: #4a5568;
}

.nav-brand i {
    margin-right: 0.5rem;
    color: #79bebe;
}

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

.nav-links a {
    text-decoration: none;
    color: #4a5568;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: #79bebe;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #79bebe, #a9d0d0);
    transition: width 0.3s ease;
}

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

/* 主要內容區域 */
main {
    padding-top: 80px;
}

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

/* 公告區塊 */
.announcement-section {
    padding: 2rem 0;
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(121, 190, 190, 0.2);
}

.announcement-box {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 8px 20px rgba(121, 190, 190, 0.15);
    border: 1px solid rgba(121, 190, 190, 0.2);
}

@media (min-width: 768px) {
    .announcement-box {
        flex-direction: row;
        align-items: center;
    }
    
    .announcement-content {
        flex: 2;
    }
    
    .subscription-form {
        flex: 1;
        border-left: 1px solid rgba(121, 190, 190, 0.3);
        padding-left: 1.5rem;
        margin-left: 1rem;
    }
}

.announcement-content h3 {
    color: #3a5f5f;
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.announcement-content p {
    color: #4a5568;
    line-height: 1.6;
}

.subscription-form h4 {
    color: #3a5f5f;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.form-group {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}

.form-group input {
    flex: 1;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(121, 190, 190, 0.5);
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #79bebe;
    box-shadow: 0 0 0 2px rgba(121, 190, 190, 0.2);
}

.form-note {
    font-size: 0.8rem;
    color: #718096;
    margin-top: 0.5rem;
}

/* 封面展示區 */
.hero-section {
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
}

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

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* 書籍封面 3D 效果 */
.book-cover {
    position: relative;
    width: 300px;
    height: 400px;
    margin: 0 auto;
    perspective: 1000px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.book-cover:hover {
    transform: scale(1.05);
}

.book-spine {
    position: absolute;
    left: -10px;
    top: 10px;
    width: 20px;
    height: 400px;
    background: linear-gradient(180deg, #e5e7eb, #9ca3af);
    transform: rotateY(-90deg);
    transform-origin: left;
}

.book-front {
    width: 300px;
    height: 400px;
    border-radius: 10px;
    box-shadow: 
        0 20px 40px rgba(0,0,0,0.1),
        0 0 0 1px rgba(255,255,255,0.5);
    position: relative;
    overflow: hidden;
}

.cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}



/* 英雄區文字內容 */
.hero-text {
    padding-left: 2rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-description {
    font-size: 1.1rem;
    color: #4a5568;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

/* 按鈕樣式 */
.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.btn::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:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #79bebe 0%, #a9d0d0 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(121, 190, 190, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(121, 190, 190, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    color: #4a5568;
    border: 2px solid rgba(121, 190, 190, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(121, 190, 190, 0.1);
    transform: translateY(-2px);
    border-color: rgba(121, 190, 190, 0.5);
}

.btn-outline {
    background: transparent;
    color: #79bebe;
    border: 2px solid #79bebe;
}

.btn-outline:hover {
    background: #79bebe;
    color: white;
    transform: translateY(-2px);
}

/* 區段樣式 */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: #1a202c;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #79bebe, #a9d0d0);
    border-radius: 2px;
}

/* 關於本書區段 */
.about-section {
    padding: 6rem 0;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 900px) {
    .about-content {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }
    .about-text {
        display: contents;
    }
    .feature-box {
        height: 100%;
    }
}

.feature-box {
    background: rgba(255, 255, 255, 0.8);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #79bebe, #a9d0d0);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.feature-box h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1a202c;
}

.feature-box p {
color: #4a5568;
line-height: 1.6;
}

/* 作者介紹區段 */
.author-section {
padding: 6rem 0;
background: linear-gradient(135deg, rgba(121, 190, 190, 0.05) 0%, rgba(169, 208, 208, 0.05) 100%);
}

.author-content {
max-width: 800px;
margin: 0 auto;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 3rem;
    background: rgba(255, 255, 255, 0.8);
    padding: 3rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.author-avatar {
    font-size: 6rem;
    color: #79bebe;
}

.author-text h3 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1a202c;
}

.author-bio {
    font-size: 1.1rem;
    color: #4a5568;
    line-height: 1.8;
}

/* 行動呼籲區段 */
.cta-section {
    padding: 6rem 0;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

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

.cta-box {
    background: rgba(255, 255, 255, 0.9);
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.cta-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #79bebe, #a9d0d0);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.cta-box h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1a202c;
}

.cta-box p {
    color: #4a5568;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* 頁腳 */
.footer {
    background: linear-gradient(135deg, #3a5f5f 0%, #4d7373 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-text p {
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

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

.footer-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    background: rgba(121, 190, 190, 0.8);
    transform: translateY(-3px);
}

/* 響應式設計 */
@media (max-width: 768px) {
    .nav-container {
        padding: 1rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-text {
        padding-left: 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .book-cover {
        width: 250px;
        height: 330px;
    }
    
    .book-front {
        width: 250px;
        height: 330px;
    }
    

    
    .author-info {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .author-avatar {
        font-size: 4rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
}
