@font-face {
    font-family: 'DouyinSansBold';
    src: url('../fonts/DouyinSansBold.woff2') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

html, body {
    margin: 0;
    padding: 0;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    overflow-x: hidden;
}

:root {
    --theme-color: #fe8900;
    --theme-color-dark: #f67800;
    --theme-color-rgb: 254, 137, 0;
    --color-bg-primary: #f5f5f5;
    --color-bg-section: #f0f0f0;
    --color-text-primary: #000000;
    --color-text-secondary: #666666;
    --color-text-muted: #888888;
    --color-text-white: #ffffff;
    --color-border-medium: #dddddd;
    --color-border-light: #eeeeee;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-accent: 0 4px 12px rgba(254, 137, 0, 0.2);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
}

.theme-blue {
    --theme-color: #3b82f6;
    --theme-color-dark: #2563eb;
    --theme-color-rgb: 59, 130, 246;
    --color-bg-section: #eff6ff;
    --shadow-accent: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.theme-green {
    --theme-color: #10b981;
    --theme-color-dark: #059669;
    --theme-color-rgb: 16, 185, 129;
    --color-bg-section: #ecfdf5;
    --shadow-accent: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.theme-purple {
    --theme-color: #8b5cf6;
    --theme-color-dark: #7c3aed;
    --theme-color-rgb: 139, 92, 246;
    --color-bg-section: #f5f3ff;
    --shadow-accent: 0 4px 12px rgba(139, 92, 246, 0.2);
}

body {
    background: var(--color-bg-primary);
    color: var(--color-text-primary);
    font-family: 'DouyinSansBold', -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei UI", sans-serif;
    overflow-x: hidden;
    min-height: 100vh;
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    line-height: 1.6;
    padding-bottom: 60px;
}

* {
    -webkit-tap-highlight-color: transparent;
    box-sizing: border-box;
}

.top-search-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2000;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    transition: all 0.3s ease;
    background: #ffffff00;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    border-bottom: none;
}

.top-search-bar.scrolled {
    background: var(--theme-color);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;    
}

.top-search-bar .search-container {
    position: relative;
    width: 100%;
    padding: 5px 150px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
}

.search-logo-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    overflow: hidden;
    z-index: 2;
}

.search-logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.search-logo-text {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%) skewX(-10deg);
    font-size: 21px;
    font-weight: bold;
    color: var(--theme-color);
    white-space: nowrap;
    font-style: italic;
    pointer-events: none;
    z-index: 2;
}

.search-logo-text::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: currentColor;
    transform: skewX(-10deg);
}

.top-search-bar.scrolled .search-logo-text {
    color: white;
}

.top-search-bar .search-input {
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    border: none;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.3);
    box-sizing: border-box;
    transition: all 0.3s ease;
    color: var(--color-text-primary);
    font-family: inherit;
    height: 30px;
}

.top-search-bar .search-input:focus {
    outline: none;
    background: white;
}

.top-search-bar .search-input::placeholder {
    color: rgba(0, 0, 0, 0.5);
    font-size: 13px;
}

.top-search-bar.scrolled .search-input {
    background: rgba(255, 255, 255, 0.95);
}

.top-search-bar .search-results-info {
    position: absolute;
    top: 100%;
    left: 15px;
    right: 15px;
    margin-top: 5px;
    text-align: center;
    padding: 8px 12px;
    background: white;
    border-radius: var(--radius-md);
    font-size: 13px;
    color: var(--theme-color-dark);
    border: 1px solid rgba(var(--theme-color-rgb), 0.2);
    box-shadow: var(--shadow-md);
    display: none;
    z-index: 10;
}

.main-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0;
    position: relative;
    z-index: 1;
}

.image-container {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: visible;
    margin: 0;
    padding: 0;
    border-radius: 0;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.junction-cards-section {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    transform: translateY(50%);
    z-index: 100;
    padding: 0 1rem;
}

.junction-cards-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    max-width: 900px;
    margin: 0 auto;
}

.junction-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.7) 0%, rgba(248, 248, 248, 0.7) 100%);
    border: 1px solid var(--color-border-medium);
    border-radius: var(--radius-sm);
    padding: 0.8rem;
    text-decoration: none;
    color: var(--color-text-primary);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    height: 100px;
}

.junction-card:hover {
    transform: translateY(-3px);
    border-color: var(--theme-color);
    box-shadow: var(--shadow-md);
    color: var(--color-text-primary);
    background: white;
}

.junction-card.hidden {
    display: none !important;
}

.junction-card-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    flex-shrink: 0;
    overflow: hidden;
    transition: all 0.25s ease;
}

.junction-card:hover .junction-card-icon {
    transform: scale(1.05);
}

.junction-card-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.junction-card-info {
    flex: 1;
    min-width: 0;
}

.junction-card-name {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
    color: var(--color-text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.junction-card:hover .junction-card-name {
    color: var(--theme-color);
}

.junction-card-description {
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.games-section {
    background: var(--color-bg-section);
    border-radius: 0;
    padding: 2rem 1.5rem;
    padding-top: 5rem;
    margin-top: 0;
    position: relative;
    z-index: 2;
    box-shadow: inset 0 5px 15px rgba(0, 0, 0, 0.03);
    color: var(--color-text-primary);
}

.section-title {
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 1.5rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--theme-color);
    border-radius: 2px;
}

.content-container {
    display: none;
    animation: fadeIn 0.3s ease;
}

.content-container.active {
    display: block;
    animation: smoothFadeIn 0.3s ease;
}

@keyframes smoothFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.2rem;
    position: relative;
    z-index: 1;
}

.game-card {
    background: rgb(255, 255, 255);
    border: 1px solid var(--color-border-medium);
    border-radius: var(--radius-md);
    padding: 1rem;
    text-decoration: none;
    color: var(--color-text-primary);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    height: 110px;
}

.game-card:hover {
    transform: translateY(-3px);
    border-color: var(--theme-color);
    box-shadow: var(--shadow-md);
    color: var(--color-text-primary);
}

.game-card.hidden {
    display: none !important;
}

.game-icon {
    width: 70px;
    height: 70px;
    border-radius: var(--radius-md);
    background: transparent !important;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    flex-shrink: 0;
    overflow: hidden;
    transition: all 0.25s ease;
    position: relative;
    border: none !important;
}

.game-card:hover .game-icon {
    transform: scale(1.05);
}

.game-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-info {
    flex: 1;
}

.game-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: var(--color-text-primary);
    transition: color 0.25s ease;
}

.game-card:hover .game-name {
    color: var(--theme-color);
}

.game-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.game-tag {
    background: rgba(var(--theme-color-rgb), 0.1);
    color: var(--theme-color);
    padding: 0rem 0.5rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    border: 1px solid rgba(var(--theme-color-rgb), 0.2);
    transition: all 0.25s ease;
}

.game-card:hover .game-tag {
    background: var(--theme-color);
    color: white;
}

.discount-tag {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 25px 25px 0 0;
    border-color: #ff4444 transparent transparent transparent;
    z-index: 10;
    pointer-events: none;
}

.discount-tag::after {
    content: attr(data-discount);
    position: absolute;
    top: -21px;
    left: 0px;
    color: white;
    font-size: 8px;
    font-weight: bold;
    transform: rotate(-45deg);
    white-space: nowrap;
    font-family: "Comic Sans MS", "Marker Felt", sans-serif;
    text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.special-game {
    cursor: default;
}

.special-game:hover {
    transform: none;
    border-color: var(--color-border-medium);
    box-shadow: var(--shadow-sm);
}

.special-game:hover .game-name {
    color: var(--color-text-primary);
}

.game-buttons {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.game-btn {
    display: inline-block;
    padding: 0.3rem 0.1rem;
    border-radius: var(--radius-sm);
    background: var(--theme-color);
    color: white;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    transition: all 0.25s ease;
    border: none;
    cursor: pointer;
    flex: 1;
}

.game-btn:hover {
    background: var(--theme-color-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-accent);
    color: white;
    text-decoration: none;
}

.series-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.series-card {
    background: transparent;
    border: 1px solid var(--color-border-medium);
    border-radius: var(--radius-md);
    padding: 0;
    text-decoration: none;
    color: var(--color-text-primary);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    height: 80px;
    min-height: 80px;
    text-align: center;
    background-size: cover;
    background-position: center;
}

.series-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
    padding: 1rem;
    color: rgb(255, 255, 255);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    min-height: 80px;
    width: 100%;
}

.series-card:hover {
    transform: translateY(-3px);
    border-color: var(--theme-color);
    box-shadow: var(--shadow-md);
}

.series-card-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.series-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #ffffff;
    text-shadow: 1px 1px 3px rgb(0, 0, 0);
}

.series-card-desc {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.3;
    text-shadow: 1px 1px 3px rgb(0, 0, 0);
}

.ip-game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    position: relative;
    z-index: 1;
    width: 100%;
}

.ip-game-card {
    background: rgb(255, 255, 255);
    border: 1px solid var(--color-border-medium);
    border-radius: var(--radius-lg);
    padding: 0;
    text-decoration: none;
    color: var(--color-text-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    width: 100%;
    padding-top:56.25%;
    position: relative;
}

.ip-game-card.hidden {
    display: none !important;
}

.ip-game-poster {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.ip-game-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: linear-gradient(135deg, rgba(var(--theme-color-rgb), 0.1), rgba(var(--theme-color-rgb), 0.05));
    transition: transform 0.5s ease;
    display: block;
}

.ip-game-card:hover .ip-game-poster img {
    transform: scale(1.05);
}

.ip-game-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
    padding: 1.2rem;
    color: rgb(255, 255, 255);
    display: flex;
    align-items: center;
    gap: 1rem;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    min-height: 80px;
}

.ip-game-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 10px 3px 8px rgba(0, 0, 0, 0.3);
}

.ip-game-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ip-game-info {
    flex: 1;
}

.ip-game-name {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: #ffffff;
    text-shadow: 1px 1px 3px rgb(0, 0, 0);
    line-height: 1.2;
}

.ip-game-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 1px 1px 3px rgb(0, 0, 0);
}

.series-modal-content {
    max-height: 70vh;
    overflow-y: auto;
}

.series-games-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .series-games-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

.series-game-item {
    background: white;
    border: 1px solid var(--color-border-medium);
    border-radius: var(--radius-md);
    padding: 0.2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.25s ease;
    cursor: pointer;
    height: auto;
    min-height: 1px;
    text-decoration: none;
    color: var(--color-text-primary);
}

.series-game-item:hover {
    border-color: var(--theme-color);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.series-game-icon {
    width: 70px;
    height: 70px;
    border-radius: var(--radius-md);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.series-game-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.series-game-info {
    flex: 1;
    min-width: 0;
}

.series-game-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    color: var(--color-text-primary);
    line-height: 1.2;
    text-decoration: none;
}

.series-game-desc {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none;
}

.box-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.2rem;
    position: relative;
    z-index: 1;
}

.box-card {
    background: white;
    border: 1px solid var(--color-border-medium);
    border-radius: var(--radius-md);
    padding: 1rem;
    text-decoration: none;
    color: var(--color-text-primary);
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    height: 90px;
}

.box-card:hover {
    transform: translateY(-3px);
    border-color: var(--theme-color);
    box-shadow: var(--shadow-md);
}

.box-card.hidden {
    display: none !important;
}

.box-icon {
    width: 55px;
    height: 55px;
    border-radius: var(--radius-md);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    transition: all 0.25s ease;
    border: 2px solid rgba(var(--theme-color-rgb), 0.1);
}

.box-card:hover .box-icon {
    transform: scale(1.05);
    border-color: var(--theme-color);
}

.box-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: calc(var(--radius-md) - 2px);
}

.box-info {
    flex: 1;
}

.box-name {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    color: var(--color-text-primary);
    transition: color 0.25s ease;
    line-height: 1.2;
}

.box-card:hover .box-name {
    color: var(--theme-color);
}

.box-desc {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    line-height: 1.3;
}

.contact-grid-new {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.2rem;
    position: relative;
    z-index: 1;
}

.contact-card-new {
    background: white;
    border: 1px solid var(--color-border-medium);
    border-radius: var(--radius-md);
    padding: 1.2rem;
    text-decoration: none;
    color: var(--color-text-primary);
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    height: auto;
    min-height: 110px;
}

.contact-card-new:hover {
    transform: translateY(-3px);
    border-color: var(--theme-color);
    box-shadow: var(--shadow-md);
}

.contact-card-new.hidden {
    display: none !important;
}

.contact-qr-new {
    width: 90px;
    height: 90px;
    border-radius: var(--radius-sm);
    background: var(--color-bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid var(--color-border-light);
    flex-shrink: 0;
}

.contact-card-new:hover .contact-qr-new {
    border-color: var(--theme-color);
    transform: scale(1.03);
}

.contact-qr-new img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-info-new {
    flex: 1;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    height: 90px;
    min-height: 90px;
    padding: 0;
}

.contact-text-info {
    flex: 1;
    padding-right: 1rem;
}

.contact-text-info h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 0.3rem 0;
    color: var(--color-text-primary);
    line-height: 1.2;
    text-align: left;
}

.contact-text-info p {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    margin: 0;
    line-height: 1.2;
}

.contact-btn-new {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    background: var(--theme-color);
    color: white;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    transition: all 0.25s ease;
    border: none;
    cursor: pointer;
    min-width: 80px;
    white-space: nowrap;
}

.contact-btn-new:hover {
    background: var(--theme-color-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-accent);
    color: white;
    text-decoration: none;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    padding: 15px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 900px;
    max-height: 80vh;
    overflow: hidden;
    transform: translateY(20px) scale(0.95);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.modal-header {
    padding: 0.6rem 1.2rem;
    background: var(--theme-color);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-title i {
    font-size: 1rem;
}

.modal-close {
    background: transparent;
    border: none;
    color: white;
    width: auto;
    height: auto;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: rgba(255, 255, 255, 0.8);
}

.modal-body {
    padding: 1.2rem;
    overflow-y: auto;
    flex: 1;
}

.modal-primary-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.modal-secondary-text {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
    margin-bottom: 0.8rem;
}

.modal-secondary-text:last-child {
    margin-bottom: 0;
}

.modal-footer {
    padding: 0.6rem 1.2rem;
    border-top: 1px solid var(--color-border-light);
    display: flex;
    justify-content: center;
}

.modal-confirm-btn {
    padding: 0.4rem 1.5rem;
    background: var(--theme-color);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.modal-confirm-btn:hover {
    background: var(--theme-color-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-accent);
}

.internal-modal-buttons {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border-light);
}

.internal-buttons-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.internal-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 0.5rem;
    background: var(--theme-color);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    transition: all 0.25s ease;
    border: none;
    cursor: pointer;
    min-height: 44px;
}

.internal-btn:hover {
    background: var(--theme-color-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-accent);
    color: white;
    text-decoration: none;
}

.modal-carousel {
    width: 100%;
    margin-bottom: 1rem;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    border-radius: var(--radius-md);
}

.carousel-slides {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
}

.carousel-slide {
    flex: 0 0 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: white;
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    z-index: 10;
    transition: background-color 0.2s ease;
}

.carousel-prev:hover,
.carousel-next:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

.carousel-indicators {
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 10;
}

.carousel-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.2s ease;
}

.carousel-indicator.active {
    background-color: var(--theme-color);
}

.carousel-counter {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
    z-index: 10;
}

.modal-carousel-tips {
    text-align: center;
    color: var(--color-text-secondary);
    font-size: 0.85rem;
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: rgba(var(--theme-color-rgb), 0.05);
    border-radius: var(--radius-sm);
}

.footer-section {
    text-align: center;
    margin-top: 2rem;
    padding: 1rem 0;
    color: var(--color-text-muted);
    font-size: 0.85rem;
    background: var(--color-bg-primary);
    border-top: 1px solid var(--color-border-light);
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 2px solid var(--theme-color);
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.301), 0 -1px 0 rgba(255, 255, 255, 0.1);
    max-width: 900px;
    margin: 0 auto;
    height: 65px;
    border-radius: 0;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.nav-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    height: 100%;
    padding: 0;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: rgba(0, 0, 0, 0.7);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    position: relative;
    height: 100%;
    padding: 5px 0;
    border-radius: 0;
    background: transparent;
}

.nav-item.active {
    color: var(--theme-color);
    background: linear-gradient(180deg, rgba(var(--theme-color-rgb), 0.1) 0%, transparent 100%);
}

.nav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: var(--theme-color);
    border-radius: 0 0 3px 3px;
    box-shadow: 0 0 10px var(--theme-color);
}

.nav-item i {
    font-size: 1.2rem;
    margin-bottom: 4px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.5));
}

.nav-item.active i {
    transform: translateY(-2px) scale(1.1);
    color: var(--theme-color);
    filter: drop-shadow(0 0 8px var(--theme-color));
}

.nav-item span {
    font-size: 0.7rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    letter-spacing: 0.5px;
}

.nav-item.active span {
    font-weight: 700;
    letter-spacing: 0.8px;
    color: var(--theme-color);
    text-shadow: 0 0 8px rgba(var(--theme-color-rgb), 0.5);
}

.nav-item::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--theme-color-rgb), 0.3) 0%, transparent 70%);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1;
}

.nav-item.active::after {
    opacity: 1;
    width: 70px;
    height: 70px;
}

.nav-item:hover:not(.active) {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.05);
}

.nav-item:hover:not(.active) i {
    transform: translateY(-1px);
}

@media (max-width: 1024px) {
    .game-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    body {
        padding-bottom: 55px;
    }
    
    .game-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .top-search-bar {
        max-width: 100%;
    }
    
    .top-search-bar .search-container {
        padding: 5px 150px;
    }
    
    .search-logo-text {
        font-size: 21px;
    }
    
    .search-logo-icon {
        width: 38px;
        height: 38px;
    }
    
    .top-search-bar .search-input {
        padding: 10px;
        height: 30px;
        font-size: 13px;
    }
    
    .top-search-bar .search-input::placeholder {
        font-size: 12px;
    }
    
    .image-container {
        height: 300px;
    }
    
    .junction-cards-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .junction-card {
        height: 80px;
        padding: 0.6rem;
        gap: 0.6rem;
    }
    
    .junction-card-icon {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
    
    .junction-card-name {
        font-size: 0.85rem;
    }
    
    .junction-card-description {
        font-size: 0.7rem;
    }
    
    .games-section {
        padding: 1.5rem;
        padding-top: 4.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1.2rem;
    }
    
    .series-cards-container {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .series-card {
        height: 70px;
        min-height: 70px;
        padding: 0;
    }
    
    .series-card-title {
        font-size: 1.1rem;
    }
    
    .series-card-desc {
        font-size: 0.8rem;
    }
    
    .ip-game-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .ip-game-card {
        padding-top: 56.25%;
    }
    
    .ip-game-overlay {
        padding: 0.8rem;
        min-height: 70px;
    }
    
    .ip-game-icon {
        width: 55px;
        height: 55px;
    }
    
    .ip-game-name {
        font-size: 1.1rem;
    }
    
    .ip-game-desc {
        font-size: 0.75rem;
    }
    
    .series-games-list {
        grid-template-columns: 1fr;
    }
    
    .series-game-item {
        padding: 0.2rem;
        min-height: 1px;
    }
    
    .series-game-icon {
        width: 65px;
        height: 65px;
    }
    
    .series-game-name {
        font-size: 1.1rem;
    }
    
    .series-game-desc {
        font-size: 0.75rem;
    }
    
    .box-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .contact-grid-new {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    
    .contact-card-new {
        height: auto;
        min-height: 100px;
    }
    
    .contact-qr-new {
        width: 85px;
        height: 85px;
    }
    
    .contact-info-new {
        height: 85px;
        min-height: 85px;
    }
    
    .contact-text-info h3 {
        font-size: 1rem;
    }
    
    .contact-text-info p {
        font-size: 0.75rem;
    }
    
    .contact-btn-new {
        padding: 0.25rem 0.7rem;
        font-size: 0.7rem;
        min-width: 75px;
    }
    
    .internal-buttons-container {
        gap: 0.6rem;
        max-width: 350px;
    }
    
    .internal-btn {
        padding: 0.5rem 0.4rem;
        font-size: 0.8rem;
        min-height: 40px;
    }
    
    .modal-overlay {
        padding: 10px;
    }
    
    .modal-content {
        width: 95%;
        max-height: 85vh;
    }
    
    .modal-header {
        padding: 0.5rem 1rem;
    }
    
    .modal-title {
        font-size: 1rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .modal-primary-text {
        font-size: 1rem;
    }
    
    .modal-secondary-text {
        font-size: 0.9rem;
    }
    
    .carousel-container {
        height: 400px;
    }
    
    .carousel-prev,
    .carousel-next {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .bottom-nav {
        max-width: 100%;
        height: 60px;
    }
    
    .nav-item i {
        font-size: 1.3rem;
    }
    
    .nav-item span {
        font-size: 0.7rem;
    }
    
    .nav-item::after {
        width: 45px;
        height: 45px;
    }
    
    .nav-item.active::after {
        width: 70px;
        height: 70px;
    }
}

@media (max-width: 480px) {
    body {
        padding-bottom: 55px;
    }
    
    .top-search-bar .search-container {
        padding: 5px 110px;
    }
    
    .search-logo-text {
        font-size: 15px;
        right: 10px;
    }
    
    .search-logo-icon {
        width: 30px;
        height: 30px;
        left: 10px;
    }
    
    .top-search-bar .search-input {
        padding: 10px;
        height: 26px;
        font-size: 12px;
    }
    
    .top-search-bar .search-input::placeholder {
        font-size: 12px;
    }
    
    .top-search-bar .search-results-info {
        font-size: 12px;
        padding: 6px 8px;
        left: 10px;
        right: 10px;
    }
    
    .image-container {
        height: 250px;
    }
    
    .junction-cards-container {
        gap: 6px;
    }
    
    .junction-card {
        height: 53px;
        padding: 0.4rem;
        gap: 0.4rem;
    }
    
    .junction-card-icon {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }
    
    .junction-card-name {
        font-size: 0.75rem;
    }
    
    .junction-card-description {
        font-size: 0.6rem;
    }
    
    .games-section {
        padding: 1rem;
        padding-top: 4rem;
    }
    
    .section-title {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    
    .game-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .game-card {
        height: 95px;
        padding: 0.6rem;
        gap: 0.8rem;
    }
    
    .game-icon {
        width: 65px;
        height: 65px;
    }
    
    .game-name {
        font-size: 1.05rem;
    }
    
    .game-tag {
        font-size: 0.6rem;
        padding: 0rem 0.3rem;
    }
    
    .series-cards-container {
        gap: 0.6rem;
    }
    
    .series-card {
        height: 60px;
        min-height: 60px;
        padding: 0;
    }

    .series-card-overlay {
        padding: 0.1rem; /* 最小内边距 */
        min-height: 60px; /* 确保遮罩层高度与卡片一致 */
    }
    
    .series-card-title {
        font-size: 1rem;
    }
    
    .series-card-desc {
        font-size: 0.75rem;
    }
    
    .ip-game-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .ip-game-card {
        padding-top: 56.25%;
    }
    
    .ip-game-overlay {
        padding: 0.6rem;
        min-height: 65px;
    }
    
    .ip-game-icon {
        width: 45px;
        height: 45px;
    }
    
    .ip-game-name {
        font-size: 1rem;
    }
    
    .ip-game-desc {
        font-size: 0.7rem;
    }
    
    .series-game-item {
        padding: 0.2rem;
        min-height: 1px;
    }
    
    .series-game-icon {
        width: 60px;
        height: 60px;
    }
    
    .series-game-name {
        font-size: 1rem;
    }
    
    .series-game-desc {
        font-size: 0.7rem;
    }
    
    .internal-buttons-container {
        gap: 0.5rem;
        max-width: 300px;
    }
    
    .internal-btn {
        padding: 0.4rem 0.3rem;
        font-size: 0.75rem;
        min-height: 38px;
    }
    
    .contact-card-new {
        min-height: 95px;
        padding: 1rem;
        gap: 1rem;
    }
    
    .contact-qr-new {
        width: 80px;
        height: 80px;
    }
    
    .contact-info-new {
        height: 80px;
        min-height: 80px;
    }
    
    .contact-text-info h3 {
        font-size: 0.95rem;
    }
    
    .contact-text-info p {
        font-size: 0.7rem;
    }
    
    .contact-btn-new {
        padding: 0.2rem 0.6rem;
        font-size: 0.65rem;
        min-width: 70px;
    }
    
    .modal-overlay {
        padding: 8px;
    }
    
    .modal-content {
        width: 98%;
        max-height: 90vh;
    }
    
    .modal-header {
        padding: 0.4rem 0.8rem;
    }
    
    .modal-title {
        font-size: 0.95rem;
    }
    
    .modal-body {
        padding: 0.8rem;
    }
    
    .carousel-container {
        height: 350px;
    }
    
    .carousel-prev,
    .carousel-next {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
    
    .carousel-indicator {
        width: 8px;
        height: 8px;
    }
    
    .carousel-counter {
        font-size: 0.7rem;
        padding: 1px 6px;
    }
    
    .bottom-nav {
        height: 45px;
    }
    
    .nav-item i {
        font-size: 1.2rem;
        margin-bottom: -9px;
    }
    
    .nav-item span {
        font-size: 0.65rem;
    }
    
    .nav-item.active::before {
        width: 35px;
        height: 2px;
    }
    
    .nav-item.active::after {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 360px) {
    .top-search-bar .search-container {
        padding: 5px 80px;
    }
    
    .search-logo-text {
        font-size: 13px;
        right: 10px;
    }
    
    .search-logo-icon {
        width: 30px;
        height: 30px;
        left: 10px;
    }
    
    .top-search-bar .search-input {
        padding: 10px;
        height: 25px;
        font-size: 11px;
    }
    
    .image-container {
        height: 220px;
    }
    
    .junction-card {
        height: 45px;
        padding: 0.4rem;
        gap: 0.4rem;
    }
    
    .junction-card-icon {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }
    
    .junction-card-name {
        font-size: 0.75rem;
    }
    
    .junction-card-description {
        font-size: 0.6rem;
    }
    
    .game-card {
        height: 85px;
        padding: 0.7rem;
        gap: 0.7rem;
    }
    
    .game-icon {
        width: 55px;
        height: 55px;
    }
    
    .series-card {
        height: 50px;
        min-height: 50px;
        padding: 0;
    }
    
    .series-card-overlay {
        padding: 0.1rem; /* 最小内边距 */
        min-height: 50px; /* 确保遮罩层高度与卡片一致 */
    }

    .series-card-title {
        font-size: 0.95rem;
    }
    
    .series-card-desc {
        font-size: 0.7rem;
    }
    
    .internal-buttons-container {
        gap: 0.4rem;
        max-width: 280px;
    }
    
    .internal-btn {
        padding: 0.35rem 0.25rem;
        font-size: 0.7rem;
        min-height: 35px;
    }
    
    .ip-game-grid {
        grid-template-columns: 1fr;
    }
    
    .ip-game-card {
        padding-top: 56.25%;
    }
    
    .ip-game-overlay {
        padding: 0.5rem;
        min-height: 60px;
    }
    
    .ip-game-icon {
        width: 40px;
        height: 40px;
    }
    
    .ip-game-name {
        font-size: 1rem;
    }
    
    .ip-game-desc {
        font-size: 0.7rem;
    }
    
    .series-game-item {
        padding: 0.2rem;
        min-height: 1px;
    }
    
    .series-game-icon {
        width: 55px;
        height: 55px;
    }
    
    .series-game-name {
        font-size: 1rem;
    }
    
    .series-game-desc {
        font-size: 0.65rem;
    }
    
    .contact-card-new {
        min-height: 90px;
    }
    
    .contact-qr-new {
        width: 75px;
        height: 75px;
    }
    
    .contact-info-new {
        height: 75px;
        min-height: 75px;
    }
    
    .contact-text-info h3 {
        font-size: 0.9rem;
    }
    
    .contact-text-info p {
        font-size: 0.65rem;
    }
    
    .carousel-container {
        height: 320px;
    }
    
    .bottom-nav {
        height: 45px;
    }
    
    .nav-item {
        padding: 6px 0;
    }
    
    .nav-item i {
        font-size: 1.1rem;
    }
    
    .nav-item span {
        font-size: 0.6rem;
    }
    
    .nav-item.active::before {
        width: 30px;
    }
    
    .nav-item.active::after {
        width: 55px;
        height: 55px;
    }
}