* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-sky-blue: #87CEEB;
    --primary-orange: #FFB347;
    --primary-blue: #4A90E2;
    --primary-orange-dark: #FF9F1C;
    --gradient-start: #E3F2FD;
    --gradient-mid: #FFF3E0;
    --gradient-end: #FFE0B2;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --bg-blue-light: #E3F2FD;
    --bg-orange-light: #FFF3E0;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family:"微软雅黑", 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-white);
    color: var(--text-primary);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* 顶部导航 */
.header {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 16px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header.scrolled {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-mid) 50%, var(--gradient-end) 100%);
    border-bottom: none;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    transition: all 0.3s ease;
}
.logo-icon img {
	width:100%;
}


.logo-text {
    font-size: 22px;
    font-weight: bold;
    transition: color 0.3s ease;
	background: linear-gradient(135deg, #0099FF 0%, #F77F26 100%);;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header.scrolled .logo-text {
    color: #1e293b;
}

.nav {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: center;
}
.nav_con {
	display: flex;
    align-items: center;
    gap: 32px;
    flex: 1;
    justify-content: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-blue);
}

.nav-link.active {
    color: var(--primary-blue);
    font-weight: 600;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-sky-blue), var(--primary-orange));
    border-radius: 2px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.language-selector {
    margin-right: 0;
}

.download-btn {
    display: inline-block;
    padding: 0 24px;
    background: linear-gradient(135deg, var(--primary-sky-blue) 0%, var(--primary-orange) 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: normal;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
	height: 45px;
	line-height: 45px;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(74, 144, 226, 0.4);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    width: 40px;
    height: 40px;
    position: relative;
}

.mobile-menu-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

.hamburger-icon {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 24px;
    height: 24px;
    position: relative;
}

.hamburger-line {
    display: block;
    width: 20px;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
    position: absolute;
}

.hamburger-line:nth-child(1) {
    top: 4px;
}

.hamburger-line:nth-child(2) {
    top: 11px;
}

.hamburger-line:nth-child(3) {
    top: 18px;
}

.mobile-menu-btn.active .hamburger-line:nth-child(1) {
    top: 11px;
    transform: rotate(45deg);
}

.mobile-menu-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .hamburger-line:nth-child(3) {
    top: 11px;
    transform: rotate(-45deg);
}

.mobile-nav-extra {
    display: none;
    flex-direction: row;
    gap: 16px;
}

.mobile-nav-extra .language-selector {
    margin-right: 0;
}
.language-selector, .mobile-download-btn {
	flex:1;
}


.mobile-download-btn {
    display: inline-block;
    padding: 0px;
    background: linear-gradient(135deg, var(--primary-sky-blue) 0%, var(--primary-orange) 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: normal;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
	height: 45px;
	line-height: 45px;
}

.mobile-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(74, 144, 226, 0.4);
}

/* Hero区域 */
.hero {
    padding: 160px 0 100px 0;
    background: linear-gradient(0deg, #d1fdff 0%, #e6f5fb 50%, #fddb92 100%);
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.hero-text {
    flex: 1;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
    line-height: 1.2;
}

.hero-desc {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.8;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.hero-stats .stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-stats .stat-item i {
    font-size: 24px;
    color: var(--primary-blue);
}

.hero-stats .stat-item span {
    font-size: 18px;
    font-weight: normal;
    color: var(--text-primary);
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-top: 32px;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.hero-btn i {
    width:32px;
	height:32px;
}
.hero-btn i img {
	width:100%;
}

.online {
	width:32px;
	height:32px;
	background: url(../images/arrow.png) no-repeat center;
	background-size:100% auto;
}

.secondary-btn:hover .online {
	background: url(../images/arrow_w.png) no-repeat center;
	background-size:100% auto;
}

.hero-btn.primary-btn {
    background: linear-gradient(135deg, var(--primary-sky-blue) 0%, var(--primary-orange) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.4);
}

.hero-btn.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.5);
}

.hero-btn.secondary-btn {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.hero-btn.secondary-btn:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-3px);
}

.hero-image {
    flex: 1;
}

.hero-image img {
    max-width: 100%;
    height: auto;
}

/* 工具区域 */
.tools-section {
    padding: 80px 0;
}

.tools-section.alt-bg {
    background: linear-gradient(135deg, var(--bg-blue-light) 0%, var(--bg-orange-light) 100%);
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 16px;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 48px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.tools-grid.large-grid {
    grid-template-columns: repeat(4, 1fr);
}

.tool-card {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 32px 24px;
    box-shadow: 0 0 10px rgba(0,0,0,.1);
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid transparent;
}

.tool-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-sky-blue);
}

.tool-card.featured {
    border-color: var(--primary-orange);
}

.tool-badge {
    position: absolute;
    top: -12px;
    right: 24px;
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-orange-dark) 100%);
    color: white;
    padding: 4px 16px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.tool-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 28px;
    color: white;
}

.tool-icon img {
	width:100%;
}

.tool-card h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.tool-card p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.5;
}

.tool-btn {
    width: 100%;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--primary-sky-blue) 0%, var(--primary-blue) 100%);
    border: none;
    border-radius: 25px;
    color: white;
    font-size: 16px;
    font-weight: normal;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.tool-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(74, 144, 226, 0.4);
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-sky-blue) 100%);
}

/* Base64工具卡片布局 */
.tools-grid.base64-grid {
    gap: 24px;
}

.tools-grid.base64-grid .tool-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 24px;
    padding: 24px;
}

.tools-grid.base64-grid .tool-icon {
    margin: 0;
    flex: 0 0 64px;
}

.tools-grid.base64-grid .tool-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tools-grid.base64-grid .tool-card h3 {
    margin-bottom: 8px;
}

.tools-grid.base64-grid .tool-card p {
    margin-bottom: 0;
}

.tools-grid.base64-grid .tool-btn {
    width: auto;
    padding: 10px 20px;
    flex: 0 0 auto;
}

/* JSON工具循环滚动 */
.json-tools-scroll-wrapper {
    overflow: hidden;
    width: 100%;
    padding: 20px 0;
}

.json-tools-scroll {
    display: flex;
    gap: 24px;
    animation: scroll 30s linear infinite;
}

.json-tools-scroll:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.tool-card-horizontal {
    flex: 0 0 auto;
    width: 260px;
    background: var(--bg-white);
    border-radius: 12px;
    padding: 40px 20px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-align: center;
}

.tool-card-horizontal:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-sky-blue);
}

.tool-card-horizontal .tool-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 22px;
    color: white;
}
.tool-card-horizontal .tool-icon img {
	width:100%;
}

.tool-card-horizontal h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.tool-card-horizontal p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.tools-grid.base64-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

/* Markdown工具网格 */
.markdown-tools-grid {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.markdown-tools-row {
    display: grid;
    gap: 32px;
}

.markdown-tools-row.first {
    grid-template-columns: repeat(3, 1fr);
}

.markdown-tools-row.second {
    grid-template-columns: repeat(2, 1fr);
}

/* Markdown卡片样式 */
.markdown-card {
    position: relative;
    overflow: hidden;
    padding: 0;
    height: 300px;
}

.markdown-card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.markdown-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.markdown-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
    color: white;
    z-index: 2;
    transition: all 0.3s ease;
}

.markdown-card-content h3 {
    color: white;
    margin-bottom: 8px;
}

.markdown-card-content p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 16px;
}

.markdown-card-content .tool-btn {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    background: linear-gradient(135deg, var(--primary-sky-blue) 0%, var(--primary-orange) 100%);
}

.markdown-card:hover .markdown-card-image img {
    transform: scale(1.05);
}

.markdown-card:hover .markdown-card-content {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.3) 100%);
}

.markdown-card:hover .tool-btn {
    opacity: 1;
    transform: translateY(0);
}

/* SVG工具卡片样式 */
#svg-tools .tool-card {
    text-align: center;
}

#svg-tools .tool-icon {
    margin: 0 auto 20px;
}

#svg-tools .tool-btn {
    width: 50%;
    margin: 0 auto;
}

/* 常用工具列表样式 */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 8px;
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.feature-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-sky-blue);
    font-size: 18px;
    font-weight: bold;
}

/* 为什么选择我们 */
.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 48px;
}

.why-choose-item {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.why-choose-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.why-choose-icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 32px;
    color: white;
}
.why-choose-icon img {
	width:100%;
}

.why-choose-item h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.why-choose-item p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* 常用工具布局 */
.common-tools-section {
    padding: 80px 0;
}

.common-tool-item {
    display: flex;
    align-items: stretch;
    gap: 0;
    margin-bottom: 50px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow:0 0 10px rgba(40,40,40,.1);
    transition: all 0.3s ease;
}

.common-tool-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.common-tool-item.reverse {
    flex-direction: row-reverse;
}

.common-tool-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.common-tool-img {
	height: 100%;
    object-fit: contain;
}

.common-tool-content {
    flex: 1;
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.common-tool-content h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.common-tool-content p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.8;
}

.common-tool-content .tool-btn {
    width: auto;
    padding: 10px 24px;
    font-size: 14px;
}

/* 页脚 */
.footer {
    background: #1e293b;
    color: white;
    padding: 20px 0 0;
}

.footer-language-section {
    padding: 40px 0;
    margin-top: 0;
}

.language-section-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 24px;
    text-align: center;
    color: white;
}

.language-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    max-width: 800px;
    margin: 0 auto;
    max-height: 120px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.language-grid.expanded {
    max-height: 300px;
}

.toggle-language-btn {
    display: none;
    width: 200px;
    padding: 12px;
    margin: 16px auto 0;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-language-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.language-grid a {
    display: block;
    text-align: center;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.language-grid a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: var(--primary-sky-blue);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    padding-bottom: 40px;
}

.footer-brand {
    display: block;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-logo-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}
.footer-logo-icon img {
	width:100%;
}

.footer-logo-text {
    font-size: 18px;
    font-weight: 600;
}

.footer-description {
    margin-top: 16px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    max-width: 300px;
}

.footer-links {
    display: flex;
    gap: 60px;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 13px;
    padding: 6px 0;
    transition: color 0.2s ease;
}

.footer-col a:hover {
    color: white;
}

.footer-bottom {
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-sky-blue) 0%, var(--primary-orange) 100%);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(135, 206, 235, 0.4);
    z-index: 999;
}
.back-to-top img {
	width:70%;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(135, 206, 235, 0.5);
}

/* 语言选择器 */
.fa-chevron-down {
	width: 10px;  
    height: 10px;  
    border-style: solid;  
    border-width: 1px 1px 0 0;  
    border-color: #ababab;  
    -webkit-transform-origin: 75% 25%;  
    -webkit-transform: rotateZ(45deg);  
    -webkit-transition: 100ms ease-in .1s;  
    transition: 100ms ease-in .1s;
	margin-top: 5px;
}

.lang-select-header.active .fa-chevron-down {
    transform: rotateZ(135deg);
    -webkit-transform: rotateZ(135deg);
}

.lang-select-container {
    position: relative;
    z-index: 1001;
}

.lang-select-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 24px;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    background: var(--bg-white);
    color: var(--text-primary);
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
	height:45px;
}

.lang-select-header:hover {
    border-color: var(--primary-sky-blue);
    box-shadow: var(--shadow-sm);
}

.lang-select-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 150px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    margin-top: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.lang-select-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    padding: 10px 16px;
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lang-option:hover {
    background: var(--bg-blue-light);
    color: var(--primary-blue);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tools-grid.large-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .markdown-tools-row.first {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .markdown-tools-row.second {
        grid-template-columns: 1fr;
    }
    
    .common-tool-item {
        flex-direction: column;
        text-align: center;
    }
    
    .common-tool-item.reverse {
        flex-direction: column;
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .footer-links {
        flex-wrap: wrap;
        gap: 40px;
        justify-content: center;
    }
    
    /* Base64工具响应式 */
    .tools-grid.base64-grid .tool-card {
        flex-direction: column;
        text-align: center;
    }
    
    .tools-grid.base64-grid .tool-icon {
        margin: 0 auto 20px;
    }
    
    .tools-grid.base64-grid .tool-btn {
        width: 100%;
        margin-top: 16px;
    }
    
    /* Markdown卡片响应式 */
    .markdown-card {
        height: 250px;
    }
    
    /* SVG工具响应式 */
    #svg-tools .tool-btn {
        width: 70%;
    }
    
    /* 为什么选择我们响应式 */
    .why-choose-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
	
	.lang-select-header {
	align-items:center;
	justify-content: center;
}
    
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-white);
        box-shadow: var(--shadow-md);
        flex-direction: column;
        align-items: flex-start;
        padding: 24px;
        gap: 16px;
        z-index: 999;
    }
	
	.nav_con {
		display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0px;
		width:100%;
	}
    
    .nav.active {
        display: flex;
    }
    
    .nav-link {
        width: 100%;
        padding: 12px 0;
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
	
	.nav-link.active::after {
		background:none;
	}
    
    .mobile-nav-extra {
		width:100%;
        display: flex;
    }
    
    .header-right .language-selector {
        display: none;
    }
    
    .header-right .download-btn {
        display: none;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .tools-grid.large-grid {
        grid-template-columns: 1fr;
    }
    
    .markdown-tools-row.first {
        grid-template-columns: 1fr;
    }
    
    .markdown-tools-row.second {
        grid-template-columns: 1fr;
    }
    
    .common-tool-item {
        flex-direction: column;
        text-align: center;
    }
    
    .common-tool-item.reverse {
        flex-direction: column;
    }
    
    .common-tool-img {
        width:100%;
    }
    
    .common-tool-content {
        padding: 24px;
    }
	
	.feature-list {
		text-align:left;
	}
    
    .hero {
        padding: 120px 0 60px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    
    .hero-btn {
        width: 100%;
        max-width: 200px;
        justify-content: center;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 40px;
    }
    
    .footer-brand {
        text-align: center;
    }
    
    .footer-description {
        max-width: 100%;
    }
    
    .language-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        max-height: 90px;
    }
    
    .language-grid a {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .toggle-language-btn {
        display: block;
    }
    
    /* 隐藏底部的工具、更多、关于链接 */
    .footer-links {
        display: none;
    }
    
    .tool-card-horizontal {
        width: 160px;
		max-height: 260px;
    }
    
    /* Base64工具响应式 */
    .tools-grid.base64-grid .tool-card {
        flex-direction: column;
        text-align: center;
    }
    
    /* Markdown卡片响应式 */
    .markdown-card {
        height: 200px;
    }
    
    .markdown-card-content {
        padding: 16px;
    }
    
    /* SVG工具响应式 */
    #svg-tools .tool-btn {
        width: 80%;
    }
    
    /* 为什么选择我们响应式 */
    .why-choose-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .tool-card {
        padding: 24px 20px;
    }
    
    .language-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
