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

body {
    font-family: 'Comic Sans MS', 'Marker Felt', '楷体', sans-serif;
    background-color: #f5f5f5;
    display: flex;
    justify-content: center;
    padding: 20px;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 500px;
    background-color: #fff;
    padding: 40px 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 1px solid #eee;
}

.banner-section {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border: 3px solid #000;
    margin-bottom: 30px;
    transform: rotate(-0.5deg);
    touch-action: pan-y;
    background: #fafafa;
}

.carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    display: block;
    color: inherit;
    text-decoration: none;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carousel-placeholder,
.image-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: repeating-linear-gradient(
        -45deg,
        #f5f5f5,
        #f5f5f5 10px,
        #ececec 10px,
        #ececec 20px
    );
    color: #777;
    font-size: 16px;
    font-weight: bold;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0,0,0,0.5);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    font-size: 18px;
    line-height: 30px;
    text-align: center;
}

.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }
.carousel-btn[hidden] { display: none; }

.carousel-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(0,0,0,0.3);
    border: 1px solid #000;
    cursor: pointer;
}

.dot.active {
    background-color: #000;
}

.button-group {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    gap: 10px;
}

.btn-item {
    flex: 1;
    border: 2px solid #000;
    padding: 8px 0;
    text-align: center;
    font-size: 16px;
    background-color: #fff;
    color: #000;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: bold;
}

.btn-item.active {
    background-color: #000;
    color: #fff;
    transform: translateY(-2px);
}

.intro-header {
    font-size: 24px;
    font-weight: bold;
    border-bottom: 3px solid #000;
    display: inline-block;
    padding-bottom: 5px;
    margin-bottom: 20px;
    margin-left: 10px;
}

.text-content {
    padding: 0 10px;
    min-height: 150px;
}

.text-content p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 15px;
    color: #333;
    letter-spacing: 1px;
}

.text-content p a {
    color: #007aff;
    text-decoration: underline;
}

.fade-in {
    animation: fadeIn 0.5s ease;
}

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