/* 重置和基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 头部样式 */
.header {
    text-align: center;
    margin-bottom: 20px;
    padding: 25px 30px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1D1D1F;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 0 0 15px 0;
}

.header h1 i {
    color: #007AFF;
    font-size: 1.8rem;
}

.header p {
    color: #3C3C43;
    font-size: 0.95rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* 主内容区域 */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* 上传和预览区域 */
.upload-section {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 20px;
}

.upload-preview-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.upload-area {
    border: 3px dashed #D1D1D6;
    border-radius: 12px;
    padding: 30px 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(242, 242, 247, 0.5);
    min-height: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.upload-area:hover {
    border-color: #007AFF;
    background: rgba(0, 122, 255, 0.05);
    transform: translateY(-2px);
}

.upload-area.drag-over {
    border-color: #007AFF;
    background: rgba(0, 122, 255, 0.1);
}

.upload-icon {
    font-size: 2.5rem;
    color: #8E8E93;
    margin-bottom: 12px;
}

.upload-area h3 {
    font-size: 1.2rem;
    margin-bottom: 6px;
    color: #1D1D1F;
}

.upload-area p {
    color: #8E8E93;
    margin-bottom: 4px;
    font-size: 0.9rem;
}

.file-types {
    font-size: 0.8rem;
    color: #C7C7CC;
    margin-bottom: 15px !important;
}

/* 预览区域 */
.preview-area {
    animation: fadeIn 0.5s ease;
}

.preview-content {
    background: #F2F2F7;
    border-radius: 12px;
    padding: 15px;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.preview-header h3 {
    font-size: 1.1rem;
    color: #1D1D1F;
}

.image-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

#previewImage {
    max-width: 100%;
    max-height: 180px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.image-info {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: #666;
    flex-wrap: wrap;
    justify-content: center;
}

.image-info i {
    margin-right: 5px;
    color: #007AFF;
}

/* 设置区域 */
.settings-section {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.settings-section h2 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #1D1D1F;
    display: flex;
    align-items: center;
    gap: 8px;
}

.settings-section h2 i {
    color: #007AFF;
}

.settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 600px) {
    .settings-grid {
        grid-template-columns: 1fr;
    }
}

.setting-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.setting-item label {
    font-weight: 600;
    color: #1D1D1F;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
}

.setting-item label i {
    color: #007AFF;
}

.input-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.input-group input {
    flex: 1;
    padding: 10px 14px;
    border: 2px solid #D1D1D6;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    background: white;
}

.input-group input:focus {
    outline: none;
    border-color: #007AFF;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.input-buttons {
    display: flex;
    gap: 4px;
}

.btn-input {
    width: 36px;
    height: 36px;
    border: 2px solid #D1D1D6;
    background: white;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #007AFF;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-input:hover {
    border-color: #007AFF;
    background: rgba(0, 122, 255, 0.05);
}

.btn-input:active {
    transform: scale(0.95);
}

.range-slider {
    margin-top: 8px;
}

.range-slider input[type="range"] {
    width: 100%;
    height: 5px;
    -webkit-appearance: none;
    background: #D1D1D6;
    border-radius: 3px;
    outline: none;
}

.range-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #007AFF;
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.total-pieces {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: #007AFF;
    padding: 12px;
    background: rgba(0, 122, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* 控制按钮区域 */
.controls-section {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    justify-content: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* 按钮样式 */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #007AFF, #5856D6);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 122, 255, 0.4);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.btn-secondary {
    background: rgba(142, 142, 147, 0.1);
    color: #8E8E93;
    border: 2px solid #D1D1D6;
}

.btn-secondary:hover {
    background: rgba(142, 142, 147, 0.2);
    border-color: #8E8E93;
}

.btn-success {
    background: linear-gradient(135deg, #34C759, #30B456);
    color: white;
    box-shadow: 0 4px 12px rgba(52, 199, 89, 0.3);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(52, 199, 89, 0.4);
}

.btn-text {
    background: transparent;
    color: #007AFF;
    padding: 8px 12px;
    font-size: 0.9rem;
}

.btn-text:hover {
    background: rgba(0, 122, 255, 0.1);
}

.btn-large {
    padding: 14px 32px;
    font-size: 1rem;
}

/* 结果区域 */
.results-section {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    padding: 20px;
    margin-top: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeIn 0.5s ease;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.results-header h2 {
    font-size: 1.3rem;
    color: #1D1D1F;
    display: flex;
    align-items: center;
    gap: 8px;
}

.results-header h2 i {
    color: #007AFF;
}

.grid-info {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding: 12px;
    background: rgba(242, 242, 247, 0.5);
    border-radius: 10px;
    font-size: 0.9rem;
    color: #666;
}

.grid-info i {
    margin-right: 6px;
    color: #007AFF;
}

.grid-container {
    display: grid;
    gap: 12px;
    margin-bottom: 25px;
    padding: 15px;
    background: #F2F2F7;
    border-radius: 12px;
    min-height: 180px;
    align-items: center;
    justify-content: center;
}

.grid-placeholder {
    text-align: center;
    color: #8E8E93;
    padding: 40px;
}

.grid-placeholder i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #C7C7CC;
}

.grid-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.grid-image:hover {
    transform: scale(1.05);
    z-index: 1;
    position: relative;
}

/* 下载选项 */
.download-options {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #E5E5EA;
}

.download-options h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #1D1D1F;
    display: flex;
    align-items: center;
    gap: 8px;
}

.download-options h3 i {
    color: #007AFF;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.btn-option {
    background: white;
    border: 2px solid #D1D1D6;
    border-radius: 12px;
    padding: 20px 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.btn-option:hover {
    border-color: #007AFF;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.btn-option i {
    font-size: 2rem;
    color: #007AFF;
    margin-bottom: 4px;
}

.btn-option span {
    font-weight: 600;
    color: #1D1D1F;
    font-size: 1rem;
}

.btn-option small {
    color: #8E8E93;
    font-size: 0.85rem;
}

/* 工具提示 */
.help-tooltip {
    position: relative;
    display: inline-block;
}

.help-tooltip:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #1D1D1F;
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    white-space: nowrap;
    z-index: 1000;
    margin-bottom: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.help-tooltip:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #1D1D1F;
    margin-bottom: 2px;
    z-index: 1000;
}


/* 加载动画 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.loading-content {
    text-align: center;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #F2F2F7;
    border-top: 4px solid #007AFF;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.loading-content p {
    font-size: 1.2rem;
    color: #1D1D1F;
    font-weight: 500;
}

/* 通知消息 */
.notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: white;
    border-radius: 16px;
    padding: 20px 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-left: 5px solid #34C759;
    z-index: 1000;
    animation: slideIn 0.3s ease, fadeOut 0.3s ease 2.7s;
    max-width: 350px;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.notification-content i {
    font-size: 1.5rem;
    color: #34C759;
}

.notification-content span {
    font-weight: 500;
    color: #1D1D1F;
}

/* 动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* 顶部导航栏 */
.site-nav {
    position: sticky;
    top: 10px;
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    margin-bottom: 20px;
}

.nav-logo {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1D1D1F;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.nav-logo i {
    color: #007AFF;
}

.nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 14px;
    border-radius: 10px;
    color: #666;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.nav-menu > li > a:hover,
.nav-menu > li > a:focus-visible {
    color: #007AFF;
    background: rgba(0, 122, 255, 0.1);
}

.nav-menu > li > a[aria-current="page"] {
    color: #007AFF;
    background: rgba(0, 122, 255, 0.1);
}

/* Tools 下拉菜单 */
.has-dropdown .nav-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    padding: 10px;
    list-style: none;
    margin: 0;
    columns: 2;
    column-gap: 0;
    min-width: 440px;
    max-height: 75vh;
    overflow-y: auto;
    z-index: 600;
}

.has-dropdown:hover .nav-dropdown,
.has-dropdown:focus-within .nav-dropdown {
    display: block;
}

.nav-dropdown li {
    break-inside: avoid;
}

.nav-dropdown a {
    display: block;
    padding: 8px 12px;
    border-radius: 8px;
    color: #3C3C43;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.nav-dropdown a:hover,
.nav-dropdown a:focus-visible {
    background: rgba(0, 122, 255, 0.08);
    color: #007AFF;
}

@media (max-width: 640px) {
    .site-nav {
        padding: 8px 12px;
        top: 5px;
    }

    .nav-logo {
        font-size: 1rem;
    }

    .nav-menu {
        overflow-x: auto;
        scrollbar-width: none;
    }

    .nav-menu::-webkit-scrollbar {
        display: none;
    }

    .nav-menu > li > a {
        padding: 6px 10px;
        font-size: 0.85rem;
    }

    .has-dropdown .nav-dropdown {
        position: fixed;
        top: auto;
        right: 10px;
        left: 10px;
        min-width: 0;
        columns: 1;
    }
}

/* Trust badges strip (homepage) */
.trust-section {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    padding: 25px 30px;
    margin-top: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 16px 18px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.trust-item i {
    font-size: 1.6rem;
    color: #007AFF;
}

.trust-item strong {
    display: block;
    font-size: 0.95rem;
    color: #1D1D1F;
}

.trust-item span {
    font-size: 0.8rem;
    color: #8E8E93;
}

.format-badges {
    text-align: center;
    margin-top: 18px;
    font-weight: 700;
    letter-spacing: 3px;
    color: #5856D6;
    font-size: 0.95rem;
}

.format-badges span {
    color: #8E8E93;
    font-weight: 500;
    letter-spacing: 0;
}

@media (max-width: 480px) {
    .trust-section {
        padding: 20px;
    }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    .header {
        padding: 20px 15px;
    }

    .logo h1 {
        font-size: 2rem;
    }

    .upload-section,
    .settings-section,
    .controls-section,
    .results-section {
        padding: 20px;
    }

    .controls-section {
        flex-direction: column;
    }

    .btn-large {
        width: 100%;
    }

    .notification {
        left: 15px;
        right: 15px;
        bottom: 15px;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .image-info {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* Features Section */
.features-section {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    padding: 30px;
    margin-top: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.features-section h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1D1D1F;
    margin-bottom: 25px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.features-section h2 i {
    color: #007AFF;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.feature-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

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

.feature-card i {
    font-size: 2rem;
    color: #007AFF;
    margin-bottom: 12px;
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1D1D1F;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
}

/* How-to Section */
.howto-section {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    padding: 30px;
    margin-top: 20px;
    margin-bottom: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.howto-section h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1D1D1F;
    margin-bottom: 25px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.howto-section h2 i {
    color: #5856D6;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.step-card {
    background: linear-gradient(135deg, #f0f0f5 0%, #e8e8f0 100%);
    border-radius: 12px;
    padding: 25px 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
}

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

.step-number {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #007AFF, #5856D6);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 auto 15px;
    box-shadow: 0 4px 10px rgba(0, 122, 255, 0.3);
}

.step-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1D1D1F;
    margin-bottom: 12px;
}

.step-card p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
}

/* FAQ Section */
.faq-section {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.faq-section h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1D1D1F;
    margin-bottom: 25px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.faq-section h2 i {
    color: #34C759;
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.faq-item {
    background: #F8F9FA;
    border-radius: 12px;
    padding: 20px;
    border-left: 4px solid #007AFF;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.faq-item h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #1D1D1F;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.faq-item h3::before {
    content: "Q";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    background: #007AFF;
    color: white;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
}

.faq-item p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.7;
    padding-left: 32px;
}

/* Footer 样式 */
.footer {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #E5E5EA;
}

.footer-links h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #1D1D1F;
    margin-bottom: 15px;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links li {
    padding: 0;
    background: transparent;
    border-radius: 0;
}

.footer-links li::before {
    display: none;
}

.footer-links li:hover {
    background: transparent;
    transform: none;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #007AFF;
    text-decoration: underline;
}

.copyright {
    text-align: center;
    font-size: 0.85rem;
    color: #8E8E93;
    padding-top: 15px;
}

.footer h1 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1D1D1F;
    margin-bottom: 20px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.footer h1 i {
    color: #007AFF;
    font-size: 1.2rem;
}

.footer ul {
    list-style: none;
    display: grid;
    gap: 12px;
}

.footer li {
    padding: 12px 16px;
    background: rgba(242, 242, 247, 0.6);
    border-radius: 10px;
    color: #3C3C43;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.footer li:hover {
    background: rgba(0, 122, 255, 0.08);
    transform: translateX(4px);
}

.footer li::before {
    content: attr(data-step);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #007AFF, #5856D6);
    color: white;
    border-radius: 50%;
    font-size: 0.85rem;
    font-weight: 600;
    flex-shrink: 0;
}

/* 响应式 Footer */
@media (max-width: 600px) {
    .footer {
        padding: 20px;
    }

    .footer h1 {
        font-size: 1.1rem;
    }

    .footer li {
        font-size: 0.85rem;
        padding: 10px 12px;
    }
}

/* SEO优化 - 视觉隐藏但屏幕阅读器可读 */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* FAQ details/summary 折叠样式 */
.faq-item details {
    background: #F8F9FA;
    border-radius: 12px;
    overflow: hidden;
    border-left: 4px solid #007AFF;
    transition: all 0.3s ease;
}

.faq-item details:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.faq-item summary {
    font-size: 1rem;
    font-weight: 600;
    color: #1D1D1F;
    padding: 20px;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::before {
    content: "Q";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    background: #007AFF;
    color: white;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
}

.faq-item summary::after {
    content: "+";
    margin-left: auto;
    font-size: 1.2rem;
    color: #007AFF;
    font-weight: 700;
    transition: transform 0.3s ease;
}

.faq-item details[open] summary::after {
    transform: rotate(45deg);
}

.faq-item details p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.7;
    padding: 0 20px 20px 56px;
}

/* 语义化HTML元素样式增强 */
article.feature-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

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

article.step-card {
    background: linear-gradient(135deg, #f0f0f5 0%, #e8e8f0 100%);
    border-radius: 12px;
    padding: 25px 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
}

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

/* nav 链接样式 */
.nav-links {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 20px;
}

.nav-links a {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    color: #007AFF;
    background: rgba(0, 122, 255, 0.1);
}

.nav-links a[aria-current="page"] {
    color: #007AFF;
    background: rgba(0, 122, 255, 0.1);
    font-weight: 600;
}