        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            transition: background-color 0.5s ease, color 0.3s ease;
        }
        
        :root {
            --primary-bg: #f5f5f5;
            --secondary-bg: #ffffff;
            --text-color: #333333;
            --text-secondary: #666666;
            --card-bg: #ffffff;
            --card-border: #e0e0e0;
            --tag-bg: #f0f0f0;
            --tag-color: #555555;
            --header-bg: #f0f0f0;
            --shadow-color: rgba(0, 0, 0, 0.08);
            --accent-color: #4a6fa5;
            --search-bg: #ffffff;
            --header-height: 80px;
        }
        
        .dark-mode {
            --primary-bg: #2a2a2a;
            --secondary-bg: #333333;
            --text-color: #e0e0e0;
            --text-secondary: #aaaaaa;
            --card-bg: #3a3a3a;
            --card-border: #444444;
            --tag-bg: #444444;
            --tag-color: #cccccc;
            --header-bg: #222222;
            --shadow-color: rgba(0, 0, 0, 0.2);
            --accent-color: #6a95cc;
            --search-bg: #444444;
        }
        
        body {
            background-color: var(--primary-bg);
            min-height: 100vh;
            padding: 20px;
            color: var(--text-color);
        }
        
		/* CSS代码 */
		.link-basic {
		  color: var(--text-secondary);
		  text-decoration: none;
		  transition: color 0.3s ease;
		  font-size: 1.5rem;
		  margin-left:50px;
		}

		.link-basic:hover {
		  color: #ff7b00;
		}
		
		#Version {
			width: 100%;
			height: 900px;
			position: relative;
			border-radius: 15px 15px 0px 0px;
			overflow: hidden;
		}
		
		.Tp-content {
			width: 100%;
			height: 550px;
			position: relative;
			overflow: hidden;
		}
		

		
		
        .container {
            max-width: 1200px;
            margin: 0 auto;
            position: relative;
        }
        
        /* Header样式 */
        header {
            background: var(--header-bg);
            border-radius: 15px;
            padding: 0 30px;
            margin-bottom: 20px;
            box-shadow: 0 4px 12px var(--shadow-color);
            display: flex;
            align-items: center;
            justify-content: space-between;
            height: var(--header-height);
        }
        
        .logo {
            font-size: 1.8rem;
            font-weight: 700;
            color: var(--accent-color);
            display: flex;
            align-items: center;
            gap: 12px;
        }
        
        .logo i {
            font-size: 1.6rem;
        }
        
        .theme-switcher {
            display: flex;
            align-items: center;
            gap: 15px;
        }
        
        .theme-label {
            font-size: 1rem;
            font-weight: 500;
            color: var(--text-secondary);
        }
        
        .switch {
            position: relative;
            display: inline-block;
            width: 60px;
            height: 34px;
        }
        
        .switch input {
            opacity: 0;
            width: 0;
            height: 0;
        }
        
        .slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: #ccc;
            transition: .4s;
            border-radius: 34px;
        }
        
        .slider:before {
            position: absolute;
            content: "";
            height: 26px;
            width: 26px;
            left: 4px;
            bottom: 4px;
            background-color: white;
            transition: .4s;
            border-radius: 50%;
        }
        
        input:checked + .slider {
            background-color: var(--accent-color);
        }
        
        input:checked + .slider:before {
            transform: translateX(26px);
        }
        
        .theme-icons {
            display: flex;
            gap: 15px;
            margin: 0 10px;
        }
        
        .theme-icons i {
            font-size: 1.3rem;
        }
        
        .fa-sun {
            color: #f39c12;
        }
        
        .fa-moon {
            color: #3498db;
        }
        
        .content-header {
            text-align: center;
            padding: 30px 0 20px;
        }
        
        h1 {
            font-size: 2.5rem;
            margin-bottom: 10px;
            color: var(--text-color);
            font-weight: 600;
        }
        
        .subtitle {
            font-size: 1.2rem;
            max-width: 700px;
            margin: 10px auto 0;
            color: var(--text-secondary);
            line-height: 1.6;
        }
        
        .search-container {
            background: var(--search-bg);
            border-radius: 10px;
            padding: 5px;
            max-width: 700px;
            margin: 30px auto;
            display: flex;
            box-shadow: 0 5px 15px var(--shadow-color);
            border: 1px solid var(--card-border);
            transition: all 0.3s ease;
        }
        
        .search-container:focus-within {
            box-shadow: 0 8px 20px var(--shadow-color);
        }
        
        #search-input {
            flex: 1;
            border: none;
            background: transparent;
            padding: 18px 20px;
            font-size: 1.1rem;
            outline: none;
            color: var(--text-color);
        }
        
        #search-input::placeholder {
            color: var(--text-secondary);
        }
        
        #search-btn {
            background: var(--accent-color);
            color: white;
            border: none;
            border-radius: 8px;
            padding: 0 30px;
            font-size: 1.1rem;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        #search-btn:hover {
            opacity: 0.9;
        }
        
        .stats {
            text-align: center;
            margin: 15px 0;
            font-size: 1.1rem;
            color: var(--text-secondary);
        }

        .announcement-modal.hidden,
        .announcement-float.hidden {
            display: none !important;
        }

        .announcement-modal {
            position: fixed;
            inset: 0;
            z-index: 1200;
        }

        .announcement-mask {
            position: absolute;
            inset: 0;
            background: rgba(14, 18, 28, 0.55);
        }

        .announcement-dialog {
            position: relative;
            z-index: 1;
            width: min(760px, calc(100vw - 32px));
            max-height: calc(100vh - 48px);
            margin: 24px auto;
            background: var(--secondary-bg);
            border-radius: 14px;
            box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
            overflow-x: hidden;
            overflow-y: auto;
            padding: 20px 22px 18px;
            scrollbar-gutter: stable;
        }

        .announcement-dialog::-webkit-scrollbar:horizontal {
            display: none;
        }

        .announcement-close {
            position: absolute;
            top: 12px;
            right: 12px;
            width: 34px;
            height: 34px;
            border: 0;
            border-radius: 50%;
            background: rgba(0, 0, 0, 0.08);
            color: var(--text-color);
            font-size: 22px;
            line-height: 1;
        }

        .announcement-head h2 {
            margin: 0 42px 14px 0;
            font-size: 22px;
            line-height: 1.3;
        }

        .announcement-body {
            display: grid;
            justify-items: center;
            gap: 16px;
            min-width: 0;
        }

        .announcement-image {
            display: block;
            width: auto;
            max-width: 100%;
            max-height: 360px;
            object-fit: contain;
            border-radius: 10px;
            background: rgba(0, 0, 0, 0.03);
        }

        .announcement-content {
            width: 100%;
            max-width: 100%;
            color: var(--text-color);
            font-size: 16px;
            line-height: 1.8;
            word-break: break-word;
            overflow-wrap: anywhere;
            text-align: center;
        }

        .announcement-content p {
            margin: 0 0 10px;
        }

        .announcement-content ul,
        .announcement-content ol {
            display: inline-block;
            max-width: 100%;
            margin: 0 auto 10px;
            padding-left: 24px;
            text-align: left;
        }

        .announcement-content img {
            display: block;
            max-width: 100%;
            height: auto;
            margin: 8px auto;
        }

        .announcement-footer {
            margin-top: 18px;
            display: flex;
            justify-content: flex-end;
            min-height: 0;
        }

        .announcement-action {
            min-width: 120px;
            background: var(--accent-color);
            color: #fff;
        }

        .announcement-float {
            position: fixed;
            right: 0;
            top: 50%;
            transform: translateY(-50%);
            z-index: 1190;
            width: 64px;
            min-height: 156px;
            padding: 12px 8px;
            border: 1px solid rgba(255, 255, 255, .55);
            border-right: 0;
            border-radius: 14px 0 0 14px;
            background: linear-gradient(180deg, #ef6b45, #d83a3a);
            color: #fff;
            box-shadow: 0 8px 24px rgba(172, 43, 43, .35);
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            cursor: pointer;
            transition: width .2s ease, box-shadow .2s ease, transform .2s ease;
        }

        .announcement-float:hover {
            width: 72px;
            transform: translateY(-50%) translateX(-3px);
            box-shadow: 0 10px 28px rgba(172, 43, 43, .46);
        }

        .announcement-float span {
            writing-mode: vertical-rl;
            text-orientation: mixed;
            white-space: normal;
            letter-spacing: 0;
            font-size: 17px;
            font-weight: 700;
            line-height: 1.2;
        }

        .announcement-float.has-image {
            width: 86px;
            min-height: 170px;
            padding: 6px;
            background: var(--secondary-bg);
        }

        .announcement-float.has-image:hover {
            width: 94px;
        }

        .announcement-float img {
            display: block;
            width: 100%;
            max-height: 100%;
            object-fit: contain;
            border-radius: 9px;
        }

        @media (max-width: 768px) {
            .announcement-dialog {
                width: min(100vw - 20px, 620px);
                max-height: calc(100vh - 20px);
                margin: 10px auto;
                padding: 18px 14px 16px;
                border-radius: 10px;
            }

            .announcement-head h2 {
                margin-right: 38px;
                font-size: 19px;
            }

            .announcement-content {
                font-size: 15px;
                line-height: 1.7;
            }

            .announcement-float {
                width: 52px;
                min-height: 124px;
                padding: 10px 6px;
                border-radius: 11px 0 0 11px;
            }

            .announcement-float:hover {
                width: 58px;
            }

            .announcement-float.has-image {
                width: 68px;
                min-height: 136px;
            }

            .announcement-float.has-image:hover {
                width: 74px;
            }
        }
        
        .stats span {
            font-weight: 600;
            color: var(--accent-color);
        }
        
        .cards-container {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 25px;
            margin-top: 30px;
        }
        
        .card {
            background: var(--card-bg);
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 5px 15px var(--shadow-color);
            transition: all 0.3s ease;
            opacity: 0;
            animation: fadeIn 0.5s forwards;
            border: 1px solid var(--card-border);
            display: flex;
            flex-direction: column;
            height: 100%;
            cursor: pointer;
            position: relative;
        }
        
        .card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 20px var(--shadow-color);
        }
        
        /* 卡片点击效果 */
        .card::after {
            /* content: "";
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: rgba(0, 0, 0, 0.05);
            opacity: 0;
            transition: opacity 0.3s ease;
			display: none;*/
        }
        
        /*.card:hover::after {
            opacity: 1;
        }*/
        
        /* 图片区域 - 占卡片的3/5高度 */
        .card-img {
			cursor: pointer; /* 添加指针样式表明可点击 */
            height: 60%; /* 卡片高度的3/5 */
            width: 100%;
            overflow: hidden;
            position: relative;
            border-bottom: 1px solid var(--card-border);
        }
        
        .card-img img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s ease;
        }
        
        .card:hover .card-img img {
            transform: scale(1.05);
        }
		
		 /* 倒计时容器样式 */
        .countdown-container {
            position: absolute;
            bottom: 10px;
            left: 10px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            width: 210px;
            height: 25px;
            padding: 0 10px;
            background: rgba(0, 0, 0, 0.8);
            border-radius: 5px;
            border: 1px solid rgba(255, 255, 255, 0.2);
            box-sizing: border-box;
            overflow: hidden;
            z-index: 10;
        }
        
        .countdown-label {
            font-size: 12px;
            color: white;
            white-space: nowrap;
        }
        
        .digital-clock {
            font-size: 12px;
            font-weight: bold;
            color: #ffcc00;
            letter-spacing: 1px;
            white-space: nowrap;
        }
        
        .open-message {
            display: none;
            font-size: 12px;
            font-weight: bold;
            color: #00ff00;
            white-space: nowrap;
            animation: pulse 2s infinite;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 100%;
            text-align: center;
        }
        
        @keyframes pulse {
            0% { opacity: 1; }
            50% { opacity: 0.7; }
            100% { opacity: 1; }
        }
		/* 计时容器样式 */
		
        
        .card-content {
            padding: 20px;
            flex: 1;
            display: flex;
            flex-direction: column;
        }
        
        .card-title {
            font-size: 1.4rem;
            margin-bottom: 12px;
            color: var(--text-color);
            font-weight: 600;
        }
        
        .card-desc {
            color: var(--text-secondary);
            line-height: 1.6;
            margin-bottom: 15px;
            flex-grow: 1;
        }
        
        .card-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-top: 10px;
        }
        
        .tag {
            background: var(--tag-bg);
            color: var(--tag-color);
            padding: 6px 12px;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 500;
        }
        
        /*.card-id {
            position: absolute;
            top: 15px;
            right: 15px;
            background: var(--accent-color);
            color: white;
            width: 30px;
            height: 30px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.9rem;
            font-weight: bold;
            z-index: 2;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        }*/
		
		/* 新增：按钮区域样式 */
        .card-buttons {
            display: flex;
            justify-content: space-between;
            margin-top: 15px;
            padding-top: 15px;
            border-top: 1px solid var(--card-border);
        }
        
        .card-btn {
            background: var(--button-bg);
            border: none;
            border-radius: 6px;
            padding: 8px 12px;
            font-size: 0.85rem;
            color: var(--text-color);
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 5px;
            flex: 1;
            justify-content: center;
            margin: 0 3px;
        }
        
        .card-btn:hover {
            background: var(--button-hover);
            transform: translateY(-2px);
        }
        
        .card-btn i {
            font-size: 0.9rem;
        }
        
        .no-results {
            grid-column: 1 / -1;
            text-align: center;
            background: var(--card-bg);
            padding: 50px 30px;
            border-radius: 15px;
            font-size: 1.2rem;
            color: var(--text-secondary);
            box-shadow: 0 5px 15px var(--shadow-color);
            border: 1px solid var(--card-border);
        }
        
        .no-results i {
            font-size: 3rem;
            margin-bottom: 20px;
            color: var(--accent-color);
        }
        
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        @media (max-width: 768px) {
            header {
                flex-direction: column;
                height: auto;
                padding: 20px;
                gap: 20px;
            }
            
            .logo {
                font-size: 1.6rem;
            }
            
            .search-container {
                margin: 20px;
                flex-direction: column;
                border-radius: 12px;
            }
            
            #search-input {
                padding: 16px;
                border-bottom: 1px solid var(--card-border);
            }
            
            #search-btn {
                padding: 14px;
                justify-content: center;
            }
            
            h1 {
                font-size: 2rem;
            }
            
            .subtitle {
                font-size: 1rem;
                padding: 0 20px;
            }
            
            .cards-container {
                grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            }
			
			.card-buttons {
                flex-wrap: wrap;
                gap: 8px;
            }
            
            .card-btn {
                flex: 0 0 calc(50% - 6px);
                margin: 0;
            }
        }
        
        /* 护眼优化 */
        body {
            line-height: 1.6;
        }
        
        .card-title, .card-desc {
            letter-spacing: 0.3px;
        }
        
        .sort-indicator {
            text-align: center;
            margin: 10px 0 20px;
            color: var(--text-secondary);
            font-size: 0.95rem;
        }
        
        .sort-indicator i {
            color: var(--accent-color);
            margin-right: 5px;
        }
		
		/* 添加 links-container 的基础样式 */
.links-container {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

	/* 手机端响应式设计 */
	@media (max-width: 768px) {
		header {
			flex-direction: column;
			height: auto;
			padding: 15px;
			gap: 15px;
		}
		
		.links-container {
			order: 3;
			width: 100%;
			gap: 8px;
			justify-content: center;
			margin: 10px 0;
		}
		
		.link-basic {
			font-size: 0.9rem !important;
			margin: 3px 8px !important;
			padding: 6px 10px;
			background: var(--tag-bg);
			border-radius: 20px;
			white-space: nowrap;
			text-align: center;
			flex: 0 0 auto;
		}
		
		.theme-switcher {
			order: 2;
		}
		
		.logo {
			order: 1;
		}
	}

	/* 更小的手机屏幕 */
	@media (max-width: 480px) {
		.links-container {
			gap: 5px;
		}
		
		.link-basic {
			font-size: 0.8rem !important;
			margin: 2px 4px !important;
			padding: 5px 8px;
		}
		
		.theme-switcher {
			flex-wrap: wrap;
			justify-content: center;
			gap: 10px;
		}
		
		.theme-label {
			font-size: 0.9rem;
		}
	}
	
        /* 手机端视频容器优化 */
        @media (max-width: 768px) {
            .head-wrap {
                margin-bottom: 15px;
                padding: 0 10px;
            }
            
            #Version {
                border-radius: 10px;
                height: auto;
                overflow: hidden;
                box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            }
            
            .bg-v {
                width: 100%;
                position: relative;
            }
            
            .video {
                padding-bottom: 56.25%; /* 16:9 宽高比 */
                border-radius: 10px;
                position: relative;
                overflow: hidden;
            }
            
            #top-video {
                position: absolute;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                object-fit: cover;
            }
        }
        
        /* 更小的手机屏幕 */
        @media (max-width: 480px) {
            .head-wrap {
                margin-bottom: 10px;
                padding: 0 5px;
            }
            
            #Version {
                border-radius: 8px;
            }
            
            .video {
                padding-bottom: 60%; /* 在小屏幕上使用稍高的比例 */
                border-radius: 8px;
            }
        }
        
 
/* 20260807 front version layout */
:root {
    --button-bg: #f3f6fb;
    --button-hover: #e6edf7;
    --panel-bg: #ffffff;
    --line-soft: #e6e8ee;
    --gold: #d8a642;
    --red: #d93434;
    --cyan: #16b8a6;
}

.dark-mode {
    --button-bg: #313847;
    --button-hover: #3d4658;
    --panel-bg: #303030;
    --line-soft: #444444;
}

body {
    padding: 0;
}

header,
.head-wrap,
.container {
    width: min(1440px, calc(100% - 32px));
    max-width: 1440px;
}

header {
    margin: 18px auto 18px;
    border-radius: 8px;
    height: 72px;
    padding: 0 22px;
    gap: 22px;
    flex-wrap: nowrap;
}

.logo {
    flex: 0 0 auto;
}

.logo img {
    display: block;
    max-width: 220px;
    max-height: 62px;
    object-fit: contain;
}

.links-container {
    flex: 1 1 auto;
    min-width: 0;
    gap: clamp(14px, 2vw, 34px);
    flex-wrap: nowrap;
}

.link-basic {
    margin-left: 0;
    font-size: clamp(16px, 1.25vw, 22px);
    line-height: 1;
    white-space: nowrap;
}

.theme-switcher {
    flex: 0 0 auto;
    gap: 8px;
    transform: scale(.86);
    transform-origin: right center;
}

.theme-label {
    display: none;
}

.theme-icons {
    gap: 8px;
    margin: 0 4px;
}

.theme-icons i {
    font-size: 18px;
}

.switch {
    width: 46px;
    height: 26px;
}

.slider:before {
    width: 20px;
    height: 20px;
    left: 3px;
    bottom: 3px;
}

input:checked + .slider:before {
    transform: translateX(20px);
}

.head-wrap {
    margin: 0 auto 18px;
}

#Version {
    height: auto;
    aspect-ratio: 1440 / 450;
    max-height: 450px;
    border-radius: 8px;
}

.banner-carousel,
.banner-track,
.banner-slide {
    width: 100%;
    height: 100%;
}

.banner-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: #171717;
}

.banner-track {
    display: flex;
    transition: transform .5s ease;
    will-change: transform;
}

.banner-slide {
    flex: 0 0 100%;
    cursor: pointer;
}

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

.banner-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 12px;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 3;
    pointer-events: none;
}

.banner-dots button {
    width: 26px;
    height: 4px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255,255,255,.55);
    cursor: pointer;
    pointer-events: auto;
}

.banner-dots button.active {
    background: #fff;
    width: 34px;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
}

.content-header {
    padding: 12px 0 4px;
}

.subtitle {
    font-size: 16px;
    line-height: 1.45;
    margin-top: 6px;
}

.search-container {
    max-width: 640px;
    margin: 12px auto 16px;
    border-radius: 8px;
}

#search-input {
    padding: 13px 16px;
    font-size: 15px;
}

#search-btn {
    min-width: 112px;
    padding: 0 20px;
    font-size: 15px;
}

.version-filter-panel {
    background: var(--panel-bg);
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    padding: 16px 18px;
    box-shadow: 0 8px 22px var(--shadow-color);
    margin: 18px 0;
}

.filter-row {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 12px;
    align-items: start;
}

.filter-row + .filter-row {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--line-soft);
}

.filter-label {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 34px;
    white-space: nowrap;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-chip {
    min-height: 34px;
    padding: 0 14px;
    border: 1px solid var(--line-soft);
    border-radius: 6px;
    background: var(--button-bg);
    color: var(--text-color);
    font-size: 14px;
    line-height: 32px;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.filter-chip:hover,
.filter-chip.active {
    background: #1f2937;
    border-color: #1f2937;
    color: #fff;
}

.stats {
    text-align: left;
    margin: 18px 0 12px;
}

.cards-container {
    display: block;
    margin-top: 0;
}

.version-section {
    margin: 22px 0 34px;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 42px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--line-soft);
}

.section-heading h2 {
    position: relative;
    color: var(--text-color);
    font-size: 22px;
    font-weight: 700;
    padding-left: 14px;
}

.section-heading h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    width: 4px;
    height: 20px;
    border-radius: 2px;
    background: var(--red);
}

.section-heading span {
    color: var(--text-secondary);
    font-size: 14px;
}

.version-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.card.version-card {
    border-radius: 8px;
    min-width: 0;
    box-shadow: 0 8px 24px var(--shadow-color);
}

.card.version-card:hover {
    transform: translateY(-4px);
}

.card-img {
    height: auto;
    aspect-ratio: 16 / 9;
    background: #171717;
}

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

.recommend-ribbon {
    position: absolute;
    top: 9px;
    left: 9px;
    z-index: 2;
    height: 22px;
    line-height: 22px;
    padding: 0 9px;
    border-radius: 4px;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--red), #ff7b32);
    box-shadow: 0 4px 10px rgba(0,0,0,.25);
}

.recommend-ribbon.is-new {
    background: linear-gradient(135deg, #0fbea8, #27d3b2);
}

.recommend-ribbon.has-image {
    width: 74px;
    height: 74px;
    padding: 0;
    line-height: 1;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    overflow: hidden;
}

.recommend-ribbon.has-image.tag-top-right {
    top: 0;
    left: auto;
    right: 0;
    bottom: auto;
}

.recommend-ribbon.has-image.tag-bottom-right {
    top: auto;
    left: auto;
    right: 0;
    bottom: 0;
}

.recommend-ribbon.has-image img {
    width: 74px;
    height: 74px;
    object-fit: contain;
    object-position: right top;
    display: block;
}

.recommend-ribbon.has-image.tag-bottom-right img {
    object-position: right bottom;
}

.recommend-ribbon.has-image span {
    display: none;
}

.top-notice {
    position: absolute;
    top: 8px;
    left: 12px;
    right: 84px;
    z-index: 3;
    min-height: 24px;
    padding: 4px 10px;
    border: 1px solid rgba(245, 206, 73, .78);
    border-radius: 6px;
    background: rgba(0, 0, 0, .82);
    color: #ffd94a;
    font-size: 12px;
    line-height: 15px;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .28);
}

.card-img.tag-bottom-right .top-notice {
    right: 12px;
}

.card-content {
    padding: 12px 14px;
}

.card-title {
    min-height: 44px;
    margin-bottom: 6px;
    font-size: 18px;
    line-height: 22px;
    font-weight: 700;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-desc {
    min-height: 38px;
    margin-bottom: 8px;
    font-size: 13px;
    line-height: 19px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-tags {
    min-height: 26px;
    gap: 5px;
    margin-top: 0;
}

.tag {
    border-radius: 4px;
    padding: 3px 8px;
    background: rgba(22,184,166,.12);
    color: var(--cyan);
    font-size: 12px;
}

.card-buttons {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    margin-top: 10px;
    padding-top: 10px;
}

.card-btn {
    min-width: 0;
    height: 32px;
    margin: 0;
    padding: 0 6px;
    border-radius: 6px;
    font-size: 13px;
    white-space: nowrap;
}

.countdown-container {
    left: 10px;
    right: 10px;
    bottom: 10px;
    width: auto;
    height: 28px;
}

.card-img.tag-bottom-right .countdown-container {
    right: 82px;
}

.no-results {
    border-radius: 8px;
}

@media (max-width: 1280px) {
    .version-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .version-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .filter-row {
        grid-template-columns: 1fr;
    }

    .filter-label {
        line-height: 1.2;
    }
}

@media (max-width: 560px) {
    header,
    .head-wrap,
    .container {
        width: min(100% - 20px, 1440px);
    }

    .version-grid {
        grid-template-columns: 1fr;
    }

    .card-buttons {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* 20260808 mobile polish */
@media (max-width: 768px) {
    body {
        padding: 10px;
        line-height: 1.45;
    }

    header {
        width: 100%;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 10px;
        height: auto;
        margin: 8px auto 12px;
        padding: 10px 12px;
        border-radius: 8px;
    }

    .logo {
        order: 0;
        min-width: 0;
    }

    .logo img {
        max-width: 158px;
        max-height: 44px;
    }

    .theme-switcher {
        order: 0;
        justify-self: end;
        gap: 5px;
        transform: none;
    }

    .theme-icons {
        display: none;
    }

    .switch {
        width: 40px;
        height: 22px;
    }

    .slider:before {
        width: 16px;
        height: 16px;
        left: 3px;
        bottom: 3px;
    }

    input:checked + .slider:before {
        transform: translateX(18px);
    }

    .links-container {
        grid-column: 1 / -1;
        width: 100%;
        display: flex;
        justify-content: flex-start;
        flex-wrap: nowrap;
        gap: 8px;
        margin: 0;
        padding: 2px 0 4px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .links-container::-webkit-scrollbar {
        display: none;
    }

    .link-basic {
        flex: 0 0 auto;
        margin: 0 !important;
        padding: 7px 10px;
        border: 1px solid var(--line-soft);
        border-radius: 6px;
        background: var(--button-bg);
        font-size: 13px !important;
        line-height: 1;
    }

    .head-wrap,
    .container {
        width: 100%;
    }

    .head-wrap {
        margin-bottom: 12px;
        padding: 0;
    }

    #Version {
        height: min(42vw, 220px);
        min-height: 138px;
        aspect-ratio: auto;
        border-radius: 8px;
    }

    .banner-carousel {
        border-radius: 8px;
    }

    .banner-dots {
        bottom: 8px;
        gap: 6px;
    }

    .banner-dots button {
        width: 18px;
        height: 4px;
    }

    .banner-dots button.active {
        width: 28px;
    }

    .content-header {
        padding: 4px 0 2px;
    }

    .subtitle {
        padding: 0;
        font-size: 13px;
        line-height: 1.45;
    }

    .search-container {
        margin: 10px 0;
        border-radius: 8px;
    }

    #search-input {
        padding: 12px 13px;
        font-size: 15px;
    }

    #search-btn {
        min-height: 42px;
        padding: 0 14px;
        border-radius: 6px;
        font-size: 15px;
        justify-content: center;
    }

    .version-filter-panel {
        margin: 10px 0;
        padding: 10px;
        border-radius: 8px;
        box-shadow: none;
    }

    .filter-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .filter-row + .filter-row {
        margin-top: 10px;
        padding-top: 10px;
    }

    .filter-label {
        font-size: 13px;
        line-height: 1.2;
    }

    .filter-options {
        flex-wrap: nowrap;
        gap: 7px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .filter-options::-webkit-scrollbar {
        display: none;
    }

    .filter-chip {
        flex: 0 0 auto;
        min-height: 30px;
        padding: 0 10px;
        border-radius: 6px;
        font-size: 13px;
        line-height: 28px;
    }

    .stats {
        margin: 10px 0 8px;
        font-size: 13px;
    }

    .version-section {
        margin: 14px 0 22px;
    }

    .section-heading {
        height: 34px;
        margin-bottom: 8px;
    }

    .section-heading h2 {
        font-size: 18px;
        padding-left: 12px;
    }

    .section-heading h2::before {
        top: 5px;
        height: 18px;
    }

    .section-heading span {
        font-size: 12px;
    }

    .version-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .card.version-card:hover {
        transform: none;
    }

    .card-content {
        padding: 11px 12px;
    }

    .card-title {
        min-height: auto;
        margin-bottom: 6px;
        font-size: 17px;
        line-height: 22px;
    }

    .card-desc {
        min-height: auto;
        margin-bottom: 8px;
        font-size: 13px;
        line-height: 18px;
    }

    .card-tags {
        min-height: auto;
        gap: 5px;
    }

    .card-buttons {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
        margin-top: 9px;
        padding-top: 9px;
    }

    .card-btn {
        height: 36px;
        font-size: 13px;
    }

    .recommend-ribbon.has-image {
        width: 68px;
        height: 68px;
    }

    .recommend-ribbon.has-image img {
        width: 68px;
        height: 68px;
    }

    .top-notice {
        top: 7px;
        left: 10px;
        right: 76px;
        min-height: 22px;
        padding: 3px 8px;
        font-size: 11px;
        line-height: 14px;
    }

    .countdown-container {
        left: 8px;
        right: 8px;
        bottom: 8px;
        height: 24px;
    }

    .countdown-label,
    .digital-clock,
    .open-message {
        font-size: 11px;
    }
}

@media (max-width: 420px) {
    body {
        padding: 8px;
    }

    .logo img {
        max-width: 138px;
    }

    .link-basic {
        padding: 7px 9px;
        font-size: 12px !important;
    }

    #Version {
        height: 38vw;
        min-height: 126px;
    }

    .subtitle {
        display: none;
    }

    .search-container {
        flex-direction: row;
    }

    #search-input {
        min-width: 0;
        border-bottom: 0;
    }

    #search-btn {
        width: 82px;
        padding: 0;
    }

    .top-notice {
        max-width: calc(100% - 86px);
    }
}
