/* ==================== CSS 变量定义 ==================== */
:root {
    --bg-color: #eeeeee;
    --nav-gradient-start: #795277;
    --nav-gradient-end: #355192;
    --container-bg: white;
    --text-primary: #333;
    --text-secondary: #666;
    --text-tertiary: #999;
    --text-light: #555;
    --border-color: #e0e0e0;
    --result-bg: #f8f9fa;
    --stat-bg: white;
    --input-bg: white;
    --text-footer: #737a9b;
    --footer-bg: #dddddd;

    /* 输入框颜色 */
    --input-field-bg: #eeeeee;
    --input-focus-border: #aaaaaa;

    /* 按钮颜色 */
    --btn-bg: #355192;
    --btn-border: #7b8cb4;
    --btn-hover-bg: #4365b4;
    --btn-hover-border: #8da1cf;
    --btn-active-bg: #27407a;
    --btn-active-border: #7186bb;

    /* Light 模式玻璃面板变量 */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-shadow: rgba(0, 0, 0, 0.1);
    --glass-input-bg: rgba(255, 255, 255, 0.5);
    --glass-input-border: rgba(0, 0, 0, 0.1);
    --glass-input-focus-border: rgba(0, 0, 0, 0.2);
    --glass-input-focus-shadow: rgba(0, 0, 0, 0.05);
    --glass-button-bg: rgba(255, 255, 255, 0.8);
    --glass-button-border: rgba(0, 0, 0, 0.15);
    --glass-button-hover-bg: rgba(255, 255, 255, 0.9);
    --glass-text-primary: #1d1d1f;
    --glass-text-secondary: #6e6e73;
    --glass-text-placeholder: rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] {
    --bg-color: #24252d;
    --nav-gradient-start: #795277;
    --nav-gradient-end: #355192;
    --container-bg: #353642;
    --text-primary: #e8e8e8;
    --text-secondary: #b0b0b0;
    --text-tertiary: #888;
    --text-light: #c0c0c0;
    --border-color: #3a3a4a;
    --result-bg: #2a2b35;
    --stat-bg: #2a2a3e;
    --input-bg: #2a2b35;
    --text-footer: #aaa;
    --footer-bg: #21222a;

    /* Dark 模式下的输入框和按钮颜色保持一致 */
    --input-field-bg: #3e3f4d;
    --input-focus-border: #33ada9;
    --btn-bg: #353642;
    --btn-border: #4e4f5a;
    --btn-hover-bg: #3e3f4d;
    --btn-hover-border: #5a5b68;
    --btn-active-bg: #2a2b35;
    --btn-active-border: #6a6b78;

    /* Dark 模式玻璃面板变量 */
    --glass-bg: rgba(50, 50, 55, 0.7);
    --glass-border: rgba(255, 255, 255, 0.15);
    --glass-shadow: rgba(0, 0, 0, 0.3);
    --glass-input-bg: rgba(60, 60, 67, 0.6);
    --glass-input-border: rgba(255, 255, 255, 0.1);
    --glass-input-focus-border: rgba(255, 255, 255, 0.25);
    --glass-input-focus-shadow: rgba(255, 255, 255, 0.05);
    --glass-button-bg: rgba(70, 70, 78, 0.8);
    --glass-button-border: rgba(255, 255, 255, 0.2);
    --glass-button-hover-bg: rgba(80, 80, 88, 0.9);
    --glass-text-primary: #f5f5f7;
    --glass-text-secondary: #a1a1a6;
    --glass-text-placeholder: rgba(255, 255, 255, 0.4);
}

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

html,
body {
    background-color: var(--bg-color);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text-primary);
    transition: background-color 0.3s ease;
}

/* 添加到 hc.css 的导航栏样式部分 */
.nav-link.active {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 6px;
}

/* ==================== App 布局 - Footer 永远贴底 ==================== */
.app-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
    flex: 1;
}

/* ==================== 导航栏样式 ==================== */
.navbar {
    background: linear-gradient(
        30deg,
        var(--nav-gradient-start) 30%,
        var(--nav-gradient-end) 85%
    );
    height: 68px;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 10px;
}

.logo-img {
    width: 32px;
    height: 32px;
}

.logo-text {
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
}

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

.nav-item {
    list-style: none;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    padding: 8px 16px;
    display: block;
    transition: opacity 0.3s;
}

.nav-link:hover {
    opacity: 0.8;
}

.nav-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.nav-register {
    background: rgba(255, 255, 255, 0.6);
    color: #333;
    border-radius: 6px;
    font-weight: 500;
}

.nav-register:hover {
    background: rgba(255, 255, 255, 1);
    opacity: 1;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: white;
    transition: all 0.3s;
}

/* ==================== Footer 样式 ==================== */
.footer {
    background-color: var(--footer-bg);
    color: var(--text-footer);
    padding: 20px 0;
    margin-top: 0;
}

.footer-text {
    text-align: center;
    margin: 0;
    font-size: 14px;
}

.footer-link {
    color: var(--text-footer);
    text-decoration: none;
    margin: 0 4px;
}

.footer-link:hover {
    opacity: 0.8;
}

/* ==================== 表单样式 ==================== */
input,
textarea {
    width: 100%;
    padding: 14px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 16px;
    background: var(--input-field-bg);
    color: var(--text-primary);
    transition: all 0.3s;
}

textarea {
    resize: vertical;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--input-focus-border);
    box-shadow: none;
}

.url-input {
    flex: 1;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--input-field-bg);
    color: var(--text-primary);
    font-size: 16px;
}

.url-input:focus {
    outline: none;
    border-color: var(--input-focus-border);
    box-shadow: none;
}

/* ==================== 按钮样式 ==================== */
button {
    padding: 14px 28px;
    background: var(--btn-bg);
    color: white;
    border: 2px solid var(--btn-border);
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

button:hover {
    background: var(--btn-hover-bg);
    border-color: var(--btn-hover-border);
}

button:active {
    background: var(--btn-active-bg);
    border-color: var(--btn-active-border);
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-submit {
    width: 100%;
    padding: 14px;
    background: var(--btn-bg);
    color: white;
    border: 2px solid var(--btn-border);
    border-radius: 10px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-submit:hover {
    background: var(--btn-hover-bg);
    border-color: var(--btn-hover-border);
}

.btn-submit:active {
    background: var(--btn-active-bg);
    border-color: var(--btn-active-border);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ==================== 卡片样式 ==================== */
.card {
    background: var(--container-bg);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: background 0.3s;
}

/* ==================== Home 页面样式 ==================== */
.page-container {
    min-height: calc(100vh - 148px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.home-wrapper {
    max-width: 640px;
    width: 100%;
}

.home-header {
    text-align: center;
    margin-bottom: 30px;
}

.home-header h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-light);
    font-weight: 500;
    font-size: 14px;
}

.form-hint {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: var(--text-secondary);
}

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 20px;
    font-size: 14px;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
}

.alert-info {
    background: #e3f2fd;
    color: #1565c0;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
}

[data-theme="dark"] .alert-error {
    background: #7f1d1d;
    color: #fca5a5;
}

[data-theme="dark"] .alert-info {
    background: #1e3a5f;
    color: #64b5f6;
}

[data-theme="dark"] .alert-success {
    background: #064e3b;
    color: #6ee7b7;
}

.result-box {
    margin-top: 30px;
    padding: 20px;
    background: var(--result-bg);
    border-radius: 10px;
}

.result-box h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.url-group {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.btn-copy,
.btn-open {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-copy {
    background: #10b981;
    color: white;
}

.btn-copy:hover {
    background: #059669;
}

.btn-open {
    background: var(--text-secondary);
    color: white;
}

.btn-open:hover {
    background: var(--text-primary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 15px;
}

.stat-card {
    background: var(--stat-bg);
    padding: 16px;
    border-radius: 8px;
    text-align: center;
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.stat-value {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
}

.stat-time {
    font-size: 13px;
    color: var(--text-primary);
}

/* ==================== 认证页面样式 ==================== */
.auth-container {
    min-height: calc(100vh - 148px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.auth-wrapper {
    max-width: 480px;
    width: 100%;
}

.auth-title {
    text-align: center;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
}

.auth-footer p {
    color: var(--text-secondary);
    font-size: 14px;
}

.auth-link {
    color: #2a40a1;
    text-decoration: none;
    font-weight: 500;
}

.auth-link:hover {
    text-decoration: underline;
}

/* ==================== 定价页面样式 ==================== */
.pricing-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    min-height: calc(100vh - 148px); /* 添加最小高度 */
    display: flex; /* 添加 flex 布局 */
    flex-direction: column; /* 垂直方向 */
    justify-content: center; /* 垂直居中 */
}

.pricing-header {
    text-align: center;
    margin-bottom: 50px;
}

.pricing-header h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--container-bg);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.pricing-featured {
    border: 2px solid #2a40a1;
    transform: scale(1.05);
}

.pricing-featured:hover {
    transform: scale(1.05) translateY(-4px);
}

.featured-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #2a40a1;
    color: white;
    padding: 4px 16px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
}

.pricing-card h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.price {
    margin-bottom: 24px;
}

.price-amount {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-primary);
}

.price-period {
    font-size: 16px;
    color: var(--text-secondary);
}

.features-list {
    list-style: none;
    margin-bottom: 24px;
    padding: 0;
}

.features-list li {
    padding: 10px 0;
    font-size: 15px;
}

.feature-yes {
    color: var(--text-primary);
}

.feature-no {
    color: var(--text-tertiary);
}

.btn-plan {
    width: 100%;
    padding: 14px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: #2a40a1;
    color: white;
    border: none;
}

.btn-primary:hover {
    background: #5568d3;
}

.btn-outline {
    background: transparent;
    color: #2a40a1;
    border: 2px solid #2a40a1;
}

.btn-outline:hover {
    background: #2a40a1;
    color: white;
}

/* ==================== 通用工具类 ==================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.text-decoration-none {
    text-decoration: none;
}

/* ==================== 响应式布局 ==================== */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        background: linear-gradient(
            30deg,
            var(--nav-gradient-start) 30%,
            var(--nav-gradient-end) 85%
        );
        flex-direction: column;
        padding: 20px;
        gap: 0;
        display: none;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-link {
        width: 100%;
        text-align: center;
        padding: 12px;
    }

    .pricing-header h1 {
        font-size: 28px;
    }

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

    .pricing-featured {
        transform: scale(1);
    }

    .pricing-featured:hover {
        transform: translateY(-4px);
    }
}

@media (max-width: 640px) {
    .home-header h1 {
        font-size: 24px;
    }

    .subtitle {
        font-size: 14px;
    }

    .url-group {
        flex-direction: column;
    }

    .btn-copy,
    .btn-open {
        width: 100%;
    }

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

.theme-toggle {
    border: none;
    cursor: pointer;
    border-radius: 6px;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
}

.theme-icon {
    margin-left: 12px;
    width: 48px;
    height: 48px;
    display: block;
}

/* ==================== macOS 玻璃面板效果 ==================== */

/* 玻璃面板容器 */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px var(--glass-shadow),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 玻璃面板标题 */
.glass-panel h1,
.glass-panel h2,
.glass-panel h3 {
    color: var(--glass-text-primary);
    font-weight: 600;
    letter-spacing: -0.5px;
}

.glass-panel .subtitle {
    color: var(--glass-text-secondary);
    font-size: 16px;
    line-height: 1.5;
}

/* 玻璃输入框 */
.glass-input {
    width: 100%;
    background: var(--glass-input-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-input-border);
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 16px;
    color: var(--glass-text-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI",
        sans-serif;
}

.glass-input::placeholder {
    color: var(--glass-text-placeholder);
}

.glass-input:hover {
    background: var(--glass-input-bg);
    border-color: var(--glass-input-border);
    filter: brightness(1.05);
}

.glass-input:focus {
    background: var(--glass-input-bg);
    border-color: var(--glass-input-focus-border);
    box-shadow: 0 0 0 4px var(--glass-input-focus-shadow),
        0 4px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
    filter: brightness(1.1);
}

/* 玻璃文本域 */
textarea.glass-input {
    min-height: 120px;
    resize: vertical;
    font-family: "SF Mono", "Monaco", "Consolas", monospace;
    line-height: 1.6;
}

/* 玻璃按钮 */
.glass-button {
    width: 100%;
    background: var(--glass-button-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-button-border);
    border-radius: 12px;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    color: var(--glass-text-primary);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.3px;
    outline: none;
}

.glass-button:hover {
    background: var(--glass-button-hover-bg);
    border-color: var(--glass-button-border);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.glass-button:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.glass-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* 玻璃表单组 */
.glass-form-group {
    margin-bottom: 24px;
}

.glass-form-group label {
    display: block;
    margin-bottom: 10px;
    color: var(--glass-text-primary);
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.2px;
}

.glass-form-hint {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    color: var(--glass-text-secondary);
    line-height: 1.4;
}

/* 玻璃结果框 */
.glass-result-box {
    margin-top: 30px;
    padding: 24px;
    background: var(--glass-input-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-input-border);
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-result-box h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--glass-text-primary);
}

/* 玻璃 URL 组 */
.glass-url-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.glass-url-input {
    flex: 1;
    background: var(--glass-input-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-input-border);
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 15px;
    color: var(--glass-text-primary);
    font-family: "SF Mono", "Monaco", "Consolas", monospace;
    outline: none;
}

/* 玻璃小按钮 */
.glass-btn-small {
    padding: 12px 20px;
    background: var(--glass-button-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-button-border);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--glass-text-primary);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.glass-btn-small:hover {
    background: var(--glass-button-hover-bg);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.glass-btn-small:active {
    transform: translateY(0);
}

/* 玻璃统计卡片 */
.glass-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.glass-stat-card {
    background: var(--glass-input-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-input-border);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.glass-stat-label {
    font-size: 13px;
    color: var(--glass-text-secondary);
    margin-bottom: 8px;
    font-weight: 500;
}

.glass-stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--glass-text-primary);
    letter-spacing: -0.5px;
}

.glass-stat-time {
    font-size: 14px;
    color: var(--glass-text-primary);
    font-weight: 500;
}

/* 玻璃提示框 */
.glass-alert {
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 14px;
    margin-top: 20px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid transparent;
    line-height: 1.5;
}

.glass-alert-error {
    background: rgba(255, 59, 48, 0.15);
    border-color: rgba(255, 59, 48, 0.3);
    color: #ff3b30;
}

[data-theme="dark"] .glass-alert-error {
    background: rgba(255, 69, 58, 0.2);
    border-color: rgba(255, 69, 58, 0.4);
    color: #ff6961;
}

.glass-alert-info {
    background: rgba(0, 122, 255, 0.15);
    border-color: rgba(0, 122, 255, 0.3);
    color: #007aff;
}

[data-theme="dark"] .glass-alert-info {
    background: rgba(10, 132, 255, 0.2);
    border-color: rgba(10, 132, 255, 0.4);
    color: #0a84ff;
}

.glass-alert-success {
    background: rgba(52, 199, 89, 0.15);
    border-color: rgba(52, 199, 89, 0.3);
    color: #34c759;
}

[data-theme="dark"] .glass-alert-success {
    background: rgba(48, 209, 88, 0.2);
    border-color: rgba(48, 209, 88, 0.4);
    color: #30d158;
}

/* 响应式优化 */
@media (max-width: 640px) {
    .glass-panel {
        padding: 24px 20px;
        border-radius: 16px;
    }

    .glass-url-group {
        flex-direction: column;
    }

    .glass-btn-small {
        width: 100%;
    }

    .glass-stats-grid {
        grid-template-columns: 1fr;
    }

    .glass-input,
    .glass-button {
        font-size: 15px;
    }
}

/* 平滑动画 */
@media (prefers-reduced-motion: no-preference) {
    .glass-panel,
    .glass-input,
    .glass-button,
    .glass-result-box,
    .glass-stat-card {
        transition-property: transform, box-shadow, background, border-color,
            filter;
        transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    }
}

/* 禁用动画选项 */
@media (prefers-reduced-motion: reduce) {
    .glass-panel,
    .glass-input,
    .glass-button,
    .glass-result-box,
    .glass-stat-card {
        transition: none;
    }
}
