* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ff5722;
    --secondary-color: #ff0000;
    --accent-color: #d32f2f;
    --light-color: #f5f5f5;
    --dark-color: #263238;
    --text-color: #333;
    --transition: all 0.3s ease;
}

body {
    font-family: 'PingFang TC', 'Heiti TC', 'Microsoft JhengHei', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
/*    background-color: var(--light-color);*/
}

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

/* Header */
header {
    background-color: var(--secondary-color);
    color: white;
    padding: 10px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

header h1 {
    font-size: 1.8rem;
    font-weight: 600;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

nav ul li a:hover {
    color: var(--accent-color);
}

/* Hero Section */
#hero {
    background:#ffffff;
    /*
    background: linear-gradient(rgba(230, 74, 25, 0.8), rgba(230, 74, 25, 0.8)), 
                url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cpath d='M0 0h100v100H0z' fill='%23e64a19'/%3E%3Cpath d='M10 10h80v80H10z' fill='%23ff5722' opacity='.3'/%3E%3C/svg%3E");
    */
    color: white;
/*    height: 50vh;*/
    display: flex;
    align-items: center;
    text-align: center;
/*    padding:0 20px;*/
}
#hero img{width:80%;}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding-top:20px;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    animation: fadeInDown 1s ease;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease;
}

/* Sections */
section {
    padding: 20px 0;
}

.section-title {
    text-align: center;
    font-size: 2.0rem;
    margin-bottom: 10px;
    position: relative;
    color: var(--secondary-color);
}

.section-title::after {
 /*   content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background-color: v*/ar(--primary-color);
}

/* Intro Section */
#intro {
    background-color: white;
    padding-top: 10px;
}

.intro-content {
    display: grid;
/*    align-items: center;*/
/*    justify-content: space-between;*/
    gap: 50px;
    justify-items: center;
}

.intro-text {
    max-width: 540px;
    flex: 1;
}

.intro-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    text-align: justify;
}

.book-image {
    flex: 1;
    max-width: 400px;
    animation: float 3s ease-in-out infinite;
}

.book-svg {
    width: 100%;
    height: auto;
    filter: drop-shadow(0px 10px 15px rgba(0, 0, 0, 0.2));
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* Features Section */
#features {
/*    background-color: var(--light-color);*/
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(600px, 1fr));
    gap: 10px;
    justify-items: center;
}

.feature-card {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width:560px;j
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    display:flex;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 3px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.feature-card p {
    color: #666;
    text-align: justify;
}

/* Book Secret Section */
#book-secret {
    background-color: white;
}

.secrets-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(600px, 1fr));
    gap: 10px;
    justify-items: center;
}

.secret-item {
    padding: 15px;
    background-color: var(--light-color);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    text-align: left;

    width: 540px;
}

.dot{
    display: inline-block; 
    width: 12px;
    height: 12px;
    background-image: url('dot.jpg');
    background-size: cover;
    background-position: center;
    color: transparent;
    position: relative;
    top:20px;
    left:-15px;
}
/*.secret-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    background-color: var(--primary-color);
    color: white;
}

.secret-item:hover .secret-icon {
    color: white;
}

.secret-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}
*/
/* Order Section */
#order {
    background-color: var(--light-color);
    background-size: 60px 60px;
    background-position: 0 0, 30px 30px;
}

.order-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
    justify-items: center;
}

.order-info, .order-form {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    width: 560px;
}

.order-info h3, .order-form h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.order-info p {
    margin-bottom: 15px;
}

.highlight {
    background-color: rgba(211, 47, 47, 0.1);
    padding: 15px;
    border-left: 4px solid var(--accent-color);
    margin: 20px 0;
}

.price-box {
    background-color: var(--secondary-color);
    color: white;
    padding: 20px;
    border-radius: 8px;
    margin: 25px 0;
    text-align: center;
}

.price {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.discount {
    font-size: 1.2rem;
    color: #ffecb3;
}

.guarantee {
    margin-top: 25px;
    background-color: rgba(30, 136, 229, 0.1);
    padding: 20px;
    border-radius: 8px;
}

.guarantee h4 {
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.guarantee h4 i {
    margin-right: 10px;
    color: var(--primary-color);
}


.payment-method.active {
    background-color: orange; /* 被選中的顏色 */
    color: white;
}

.payment-methods {
    display: flex;
    justify-content: space-between;
    margin: 25px 0;
}

.payment-method {
    background-color: #f0f0f0; /* 默認色 */
    cursor: pointer;
    transition: background 0.3s;
    text-align: center;
    padding: 15px;
    flex: 1;
    border: 1px solid #eee;
    border-radius: 8px;
    margin: 0 10px;
}

.payment-method i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.order-details {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin: 25px 0;
}

.order-details p {
    margin-bottom: 10px;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.order-btn {
    display: block;
    width: 100%;
    background-color: var(--accent-color);
    font-size: 1.3rem;
    padding: 15px;
    margin-bottom: 15px;
}

.order-btn:hover {
    background-color: #b71c1c;
}

.share-btn {
    display: block;
    width: 100%;
    background-color: var(--primary-color);
}

/* Testimonials Section */
#testimonials {
    background-color: white;
}

.testimonial-slider {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonial-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.testimonial {
    background-color: var(--light-color);
    padding: 30px;
    border-radius: 10px;
    margin: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
/*    text-align: center;*/
/*    width: calc(100% - 20px);*/
    box-sizing: border-box;
    width: 560px;
}

.testimonial-text {
    font-size: 1.2rem;
/*    font-style: italic;*/
    margin-bottom: 20px;
}

.testimonial-author {
    font-weight: bold;
    font-style: italic;
    color: var(--primary-color);
    text-align: right;
}

.controls {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 20px;
}

.control-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.control-btn:hover {
    background-color: var(--secondary-color);
}

.control-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 20px 0;
    text-align: center;
}

footer .container {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
    justify-content:space-between;
}
footer a:visited{color:#0000ff;}
.social-icons {
    display: flex;
    gap: 20px;
}

.social-icons a {
    color: white;
    font-size: 1.5rem;
    transition: var(--transition);
}

.social-icons a:hover {
    color: var(--accent-color);
    transform: translateY(-5px);
}

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.book{position: relative;top:-280px;left:130px;}
.order-form-container {
        width: 90%;
        max-width: 800px;
        margin: 50px auto;
        background-color: white;
        padding: 30px;
        border-radius: 10px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    }

    .form-group {
        margin-bottom: 20px;
    }

    .form-group label {
        display: block;
        margin-bottom: 8px;
        font-weight: bold;
    }

    .form-group input,
    .form-group select {
        width: 100%;
        padding: 12px;
        border: 1px solid #ddd;
        border-radius: 5px;
        font-size: 1rem;
    }

    .form-group select {
        appearance: none; /* Remove default arrow in some browsers */
        background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23333"><path d="M7 10l5 5 5-5z"/></svg>');
        background-repeat: no-repeat;
        background-position: right 12px top 50%;
        background-size: 16px;
    }

    .logistics-select {
        margin-top: 20px;
        padding: 20px;
        border: 1px solid #eee;
        border-radius: 5px;
    }

    .logistics-options label {
        display: block;
        margin-bottom: 10px;
    }
    .logistics-options input {
        width: 100px;
    }
    

    .submit-button {
        background-color: var(--accent-color);
        color: white;
        padding: 15px 30px;
        border: none;
        border-radius: 5px;
        font-size: 1.1rem;
        cursor: pointer;
        transition: var(--transition);
        width: 100%;
        display: block;
        text-align: center;
        text-decoration: none;
    }

    .submit-button:hover {
        background-color: #b71c1c;
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }


/* Responsive Design */
@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .order-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .book{position: relative;top:-280px;left:0px;}
    .hero-content{max-width: 1400px;}
    #hero img{width:100%;}
    #intro{padding-top: 0px;}
    .container {
        width: 90%;
        padding: 0px;
    }
    .secret-item {
        width: 100%;
    }
    .order-info, .order-form {
        width: 100%;
    }
    .testimonial {
        width:100%;
    }
    .feature-card {
        width:100%;
    }
    section{padding: 20px 0;}
    header h1 {
        font-size: 1.5rem;
    }
    
    nav ul li {
        margin-left: 10px;
    }
    
    .intro-content {
        flex-direction: column-reverse;
        text-align: center;
    }
    
    .hero-content h2 {
        font-size: 2.2rem;
    }
    
    .book-image {
        margin-bottom: 30px;
    }
}

@media (max-width: 480px) {
    header .container {
        flex-direction: column;
        gap: 15px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .secrets-container {
        justify-items: center;
        grid-template-columns: 1fr;
    }
}