/* 通用样式 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Open Sans', sans-serif;
    background: #faf4e4;
    color: #333;
}

.top-nav {
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 5px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    position: fixed;
    top: 10px;
    left: 0;
    right: 0;
    z-index: 1000;
}

.left-section .logo-img {
    height: 40px;
}

.center-section {
    display: flex;
    justify-content: center;
    flex-grow: 1;
}

.dropdown .dropbtn {
    background: linear-gradient(45deg, #d32f2f, #000000);
    color: #fff;
    padding: 8px 15px;
    font-size: 14px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    text-align: center;
    transition: background-color 0.3s, transform 0.3s;
    font-weight: bold;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    text-align: left;
    border-radius: 5px;
    overflow: hidden;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}

.dropdown .show {
    display: block;
}

.cta-buttons {
    display: flex;
    gap: 10px;
    transition: opacity 0.5s ease;
}

.cta-buttons.hidden {
    opacity: 0;
}

.cta-btn {
    background: linear-gradient(45deg, #ffcc00, #ff9900);
    color: #000;
    padding: 0.4em 0.8em;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    font-size: 0.9em;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s ease-in-out, background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-btn img {
    margin-right: 5px;
}

.cta-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 10px rgba(0,0,0,0.15);
    background-color: #e6b800;
}

header.main-header {
    position: relative;
    text-align: center;
    padding: 0;
    background: #000;
    color: #fff;
    overflow: hidden;
}

header.main-header .banner {
    width: 100%;
    height: auto;
    transition: transform 1s ease-in-out;
}

header.main-header:hover .banner {
    transform: scale(1.1);
}

.header-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.ffxiv-logo {
    max-width: 100%;
    height: auto;
}

.video-container {
    position: relative;
    width: 100%;
    height: auto;
}

.video-container video {
    width: 100%;
    height: auto;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-align: center;
    background: rgba(0, 0, 0, 0.5);
}

.video-text {
    font-size: 3em;
    font-family: 'Merriweather', serif;
    margin-bottom: 0.5em;
}

.video-subtext {
    font-size: 1.5em;
}

.section {
    padding: 2em 1em;
    text-align: center;
}

.section h2 {
    font-family: 'Merriweather', serif;
    font-size: 2.5em;
    margin-bottom: 0.5em;
}

.section p {
    font-size: 1.2em;
    margin-bottom: 1.5em;
}

.section img {
    max-width: 100%;
    height: auto;
}

.character-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5em;
    align-items: center;
}

.character-row {
    display: flex;
    gap: 1em;
    justify-content: center;
    flex-wrap: wrap;
}

.character-row img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.gameplay-sections {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5em;
}

.gameplay-section {
    width: 30%;
    min-width: 250px;
}

.promotional-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5em;
}

.promo-item {
    width: 30%;
    min-width: 200px;
}

footer.main-footer {
    text-align: center;
    padding: 1em;
    background: #000;
    color: #fff;
}

.image-container {
    position: relative;
    overflow: hidden;
}

.hover-image {
    width: 100%;
    transition: transform 0.3s ease-in-out;
}

.image-container:hover .hover-image {
    transform: scale(1.1);
}

.carousel-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
}

.carousel-images {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-image {
    min-width: 100%;
    transition: transform 0.5s ease-in-out;
}

.carousel-image img {
    width: 100%;
    height: auto;
    transition: transform 1s ease-in-out;
}

.carousel-image img:hover {
    transform: scale(1.1);
}

.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 2rem;
    padding: 1rem;
    cursor: pointer;
    user-select: none;
    z-index: 1000;
}

.left-arrow {
    left: 10px;
}

.right-arrow {
    right: 10px;
}

.carousel-image {
    display: none;
}

.carousel-image.active {
    display: block;
}

.full-width-image {
    width: 100%;
    height: auto;
}
/* 其他已有的CSS样式 */

/* 以下是模态框的样式 */
.modal {
    display: none; /* 默认隐藏 */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5); /* 半透明背景 */
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto; /* 垂直和水平居中 */
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.purchase-btn {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 20px;
}

.purchase-btn:hover {
    background-color: #45a049;
}

.modal form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.modal form label {
    margin-bottom: 5px;
    font-weight: bold;
}

.modal form input,
.modal form select {
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.modal form input[type="radio"] {
    margin-right: 10px;
}
