/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #2d3748;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.875rem; }

p {
    margin-bottom: 1rem;
    color: #4a5568;
}

/* Header Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(203, 213, 225, 0.5);
}

.nav {
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
    z-index: 1001;
    flex-shrink: 0;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #1a202c;
    text-decoration: none;
    transition: color 0.3s ease;
}

.brand-link:hover {
    color: #3182ce;
}

.brand-link i {
    color: #718096;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    flex-shrink: 0;
}

.nav-link {
    color: #4a5568;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
    /* 确保垂直对齐 */
    display: flex;
    align-items: center;
    height: auto;
    min-height: 2.5rem;
}

.nav-link:hover {
    color: #2d3748;
    background: rgba(203, 213, 225, 0.3);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #cbd5e0, #e2e8f0);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 80%;
}

/* 确保导航项垂直对齐 */
.nav-item {
    display: flex;
    align-items: center;
}

/* Mobile Navigation */
.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1002;
    position: relative;
}

.hamburger {
    width: 25px;
    height: 3px;
    background: #4a5568;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* 活跃状态的汉堡菜单动画 */
.nav-toggle.active .hamburger:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.nav-toggle.active .hamburger:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .hamburger:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* 当移动端菜单打开时隐藏桌面导航栏 */
body.mobile-menu-open .header .nav {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* 移动端菜单打开时隐藏汉堡按钮，但只在移动端 */
@media (max-width: 768px) {
    body.mobile-menu-open .nav-toggle {
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }
}

body.mobile-menu-open .mobile-nav {
    transform: translateX(0);
}

/* 防止背景滚动 */
body.mobile-menu-open {
    overflow: hidden;
}

/* 移动端菜单打开时，保持header可见但隐藏导航内容 */
body.mobile-menu-open .header {
    background: transparent;
    backdrop-filter: none;
    border-bottom: none;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    flex-direction: column;
}

.mobile-nav.active {
    transform: translateX(0);
}

.mobile-nav-menu {
    list-style: none;
    padding: 2rem;
    padding-top: 6rem; /* 给关闭按钮留出空间 */
    height: 100%;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.mobile-nav-item {
    padding: 0;
}

.mobile-nav-link {
    display: block;
    padding: 1.25rem 1.5rem;
    color: #4a5568;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    border-radius: 0.5rem;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.mobile-nav-link:hover {
    background: rgba(203, 213, 225, 0.3);
    color: #2d3748;
    border-left-color: #cbd5e0;
}

/* 移动端语言选择器样式 */
.mobile-nav-item .language-selector {
    width: 100%;
    margin: 0.5rem 0;
    box-sizing: border-box;
    padding: 1rem;
    font-size: 1rem;
}

/* 移动端关闭按钮 */
.mobile-close-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #4a5568;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1002;
    transition: all 0.3s ease;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
}

.mobile-close-btn:hover {
    color: #2d3748;
    background: rgba(203, 213, 225, 0.3);
}

/* Main Content */
.main {
    margin-top: 70px;
}

/* Hero Section */
.hero {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23cbd5e0" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,133.3C960,128,1056,96,1152,90.7C1248,85,1344,107,1392,117.3L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #1a202c;
}

.highlight {
    background: linear-gradient(135deg, #cbd5e0, #e2e8f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #4a5568;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d3748;
}

.stat-label {
    color: #718096;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Section Styles */
section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: #4a5568;
    max-width: 600px;
    margin: 0 auto;
}

/* Tools Section */
.tools {
    background: #ffffff;
}

/* Category Filter Container */
.filter-container {
    margin: 2rem 0;
    padding: 1.5rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    align-items: center;
}

.filter-btn {
    padding: 0.625rem 1.25rem;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 2rem;
    color: #4a5568;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.filter-btn:hover {
    background: #f7fafc;
    border-color: #cbd5e0;
    color: #2d3748;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.filter-btn.active {
    background: linear-gradient(135deg, #4a5568, #2d3748);
    color: #ffffff;
    border-color: #2d3748;
    box-shadow: 0 4px 12px rgba(45, 55, 72, 0.2);
}

.filter-btn.active:hover {
    background: linear-gradient(135deg, #2d3748, #1a202c);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(45, 55, 72, 0.3);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    justify-items: center; /* 居中对齐卡片 */
}

.tool-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: left;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 400px; /* 设置最大宽度，确保单个产品时不会太宽 */
    gap: 1rem;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #cbd5e0, #e2e8f0);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.tool-card:hover::before {
    transform: scaleX(1);
}

/* 新布局样式 - 左侧图标+评分，右侧标题+分类 */
.tool-top-section {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: flex-start;
}

.tool-left-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    flex-shrink: 0;
}

.tool-icon {
    width: 80px;
    height: 80px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f7fafc, #edf2f7);
    border: 2px solid #e2e8f0;
    padding: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.tool-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0.5rem;
}

.tool-right-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 0;
}

.tool-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.tool-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a202c;
    margin: 0;
    line-height: 1.4;
    word-break: break-word;
    flex: 1;
    min-width: 0;
}

.tool-rating {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    color: #718096;
    font-weight: 500;
    flex-shrink: 0;
}

.tool-rating i {
    color: #f6ad55;
    font-size: 0.875rem;
}

.tool-category-row {
    display: flex;
    align-items: center;
}

.tool-category {
    font-size: 0.875rem;
    padding: 0.375rem 0.875rem;
    background: linear-gradient(135deg, #edf2f7, #e2e8f0);
    color: #4a5568;
    border-radius: 1rem;
    font-weight: 500;
    display: inline-block;
}

.tool-description {
    color: #4a5568;
    margin: 1rem 0;
    line-height: 1.7;
    font-size: 0.9375rem;
    text-align: left;
    flex: 1;
    min-height: 60px;
    max-height: 80px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.tool-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.tool-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.tool-btn-download {
    background: linear-gradient(135deg, #4a5568, #2d3748);
    color: #ffffff;
    border-color: #2d3748;
}

.tool-btn-download:hover {
    background: linear-gradient(135deg, #2d3748, #1a202c);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 55, 72, 0.3);
    color: #ffffff;
}

.tool-btn-detail {
    background: linear-gradient(135deg, #f7fafc, #edf2f7);
    color: #2d3748;
    border-color: #e2e8f0;
}

.tool-btn-detail:hover {
    background: linear-gradient(135deg, #edf2f7, #e2e8f0);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    color: #2d3748;
}

.tool-btn i {
    font-size: 0.875rem;
}

/* Order Section */
.order {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.order-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.order-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.info-card i {
    font-size: 2rem;
    color: #718096;
    margin-bottom: 1rem;
}

.info-card h3 {
    color: #1a202c;
    margin-bottom: 0.75rem;
}

.info-card p {
    color: #4a5568;
    line-height: 1.6;
}

.order-form-container {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Feedback Section */
.feedback {
    background: #ffffff;
}

.feedback-content {
    max-width: 600px;
    margin: 0 auto;
}

.feedback-form-container {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #2d3748;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #ffffff;
    color: #2d3748;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #cbd5e0;
    box-shadow: 0 0 0 3px rgba(203, 213, 225, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, #4a5568, #2d3748);
    color: #ffffff;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2d3748, #1a202c);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background: linear-gradient(135deg, #718096, #4a5568);
    color: #ffffff;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #4a5568, #2d3748);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn i {
    font-size: 0.875rem;
}

/* Footer */
.footer {
    background: #1a202c;
    color: #e2e8f0;
    padding: 3rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.footer-brand i {
    color: #718096;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: #cbd5e0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #e2e8f0;
}

.footer-copyright {
    color: #718096;
    font-size: 0.875rem;
}

/* Toast Notification */
.toast {
    position: fixed;
    top: 100px;
    right: 20px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 1rem 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateX(400px);
    transition: transform 0.3s ease;
    z-index: 2000;
    max-width: 300px;
}

.toast.show {
    transform: translateX(0);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.toast i {
    color: #48bb78;
    font-size: 1.25rem;
}

.toast-message {
    color: #2d3748;
    font-weight: 500;
}

/* Loading State */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e2e8f0;
    border-top: 4px solid #cbd5e0;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    color: #718096;
}

.empty-state p {
    font-size: 1.125rem;
    margin-bottom: 0;
}

.empty-state i {
    font-size: 3rem;
    color: #cbd5e0;
    margin-bottom: 1rem;
}

/* Error State */
.error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    color: #f56565;
    background: rgba(245, 101, 101, 0.1);
    border: 1px solid rgba(245, 101, 101, 0.2);
    border-radius: 0.5rem;
    margin: 2rem 0;
}

.error-state p {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: #f56565;
}

.error-state p:first-child {
    font-weight: 600;
}

.error-state i {
    font-size: 3rem;
    color: #f56565;
    margin-bottom: 1rem;
}

/* Language Selector */
.language-selector {
    padding: 0.5rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    background: #ffffff;
    color: #4a5568;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    /* 确保与导航菜单项垂直对齐 */
    display: flex;
    align-items: center;
    height: auto;
    min-height: 2.5rem;
    vertical-align: middle;
}

.language-selector:hover {
    border-color: #cbd5e0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.language-selector:focus {
    outline: none;
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

/* RTL Support */
body.rtl {
    direction: rtl;
}

.rtl .nav-container,
.rtl .container {
    direction: rtl;
}

.rtl .nav-menu {
    flex-direction: row-reverse;
}

.rtl .brand-link {
    flex-direction: row-reverse;
}

.rtl .hero-stats {
    direction: rtl;
}

.rtl .order-content,
.rtl .order-info {
    direction: rtl;
}

.rtl .footer-content {
    flex-direction: row-reverse;
}

.rtl .tool-top-section {
    flex-direction: row-reverse;
}

.rtl .tool-title-row {
    flex-direction: row-reverse;
}

.rtl .tool-actions {
    flex-direction: row-reverse;
}

.rtl .mobile-nav-link {
    border-left: none;
    border-right: 3px solid transparent;
}

.rtl .mobile-nav-link:hover {
    border-right-color: #cbd5e0;
    border-left-color: transparent;
}

.rtl .toast {
    left: 20px;
    right: auto;
    transform: translateX(-400px);
}

.rtl .toast.show {
    transform: translateX(0);
}

.rtl .toast-content {
    flex-direction: row-reverse;
}

.rtl .nav-link::after {
    left: auto;
    right: 50%;
    transform: translateX(50%);
}

.rtl .form-group label,
.rtl .section-subtitle,
.rtl .hero-subtitle {
    text-align: right;
}

.rtl .filter-buttons {
    flex-direction: row-reverse;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* 确保移动端导航背景高度 */
    .mobile-nav {
        top: 0;
        height: 100vh;
    }

        .nav-container {
        padding: 0 15px;
    }

    .nav-brand {
        font-size: 1.25rem;
    }

    .brand-link {
        gap: 0.375rem;
    }

    .nav-menu {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .mobile-nav {
        display: flex;
    }

    .filter-container {
        margin: 1.5rem 0;
        padding: 1rem 0;
    }

    .filter-buttons {
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-stats {
        gap: 2rem;
    }

    .order-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }

    .tools-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        justify-items: center; /* 移动端也居中对齐 */
    }
    
    .tool-top-section {
        gap: 0.75rem;
    }
    
    .tool-icon {
        width: 60px;
        height: 60px;
    }
    
    .tool-name {
        font-size: 1.125rem;
    }
    
    .tool-card {
        max-width: 100%; /* 移动端允许占满宽度 */
    }

    .section-title {
        font-size: 2rem;
    }

    .container {
        padding: 0 15px;
    }

    .nav-container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 4rem 0;
    }

    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .order-form-container,
    .feedback-form-container {
        padding: 1.5rem;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for accessibility */
.nav-link:focus,
.btn:focus,
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: 2px solid #cbd5e0;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .header,
    .nav-toggle,
    .mobile-nav,
    .order,
    .feedback,
    .footer {
        display: none;
    }

    .hero {
        background: none;
        padding: 2rem 0;
    }

    .main {
        margin-top: 0;
    }
}