/* 极速工具箱 - 主样式文件 */
/* ============================= */

:root {
    --primary: #4f46e5;
    --primary-dark: #3730a3;
    --primary-light: #818cf8;
    --secondary: #06b6d4;
    --accent: #f59e0b;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --bg: #f8fafc;
    --bg-card: #ffffff;
    --text: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -1px rgba(0,0,0,.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -2px rgba(0,0,0,.05);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all .2s ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 15px;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }

/* ===== 导航栏 ===== */
.navbar {
    background: #fff;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.navbar-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

.navbar-brand .logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}

.navbar-nav a {
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.navbar-nav a:hover,
.navbar-nav a.active {
    background: #f1f5f9;
    color: var(--primary);
}

.navbar-search {
    display: flex;
    align-items: center;
    background: #f1f5f9;
    border-radius: 24px;
    padding: 6px 16px;
    gap: 8px;
    border: 1px solid transparent;
    transition: var(--transition);
}

.navbar-search:focus-within {
    border-color: var(--primary);
    background: #fff;
}

.navbar-search input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 14px;
    width: 180px;
    color: var(--text);
}

.navbar-search input::placeholder { color: var(--text-muted); }

.navbar-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--text);
}

/* ===== 布局容器 ===== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-wrapper {
    min-height: calc(100vh - 64px);
    padding: 32px 0;
}

/* ===== 首页 Hero ===== */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 80px 0 60px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,.05) 0%, transparent 60%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.hero h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
    position: relative;
}

.hero p {
    font-size: 18px;
    opacity: .85;
    margin-bottom: 32px;
    position: relative;
}

.hero-search {
    display: flex;
    max-width: 520px;
    margin: 0 auto;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 50px;
    padding: 6px 6px 6px 20px;
    backdrop-filter: blur(10px);
    position: relative;
}

.hero-search input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 16px;
}

.hero-search input::placeholder { color: rgba(255,255,255,.7); }

.hero-search button {
    background: #fff;
    color: var(--primary);
    border: none;
    border-radius: 40px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.hero-search button:hover { background: #f1f5f9; }

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 48px;
    position: relative;
}

.hero-stats .stat { text-align: center; }
.hero-stats .stat-num {
    font-size: 32px;
    font-weight: 800;
    display: block;
}
.hero-stats .stat-label {
    font-size: 13px;
    opacity: .75;
}

/* ===== 分类标签 ===== */
.category-tabs {
    padding: 32px 0 16px;
}

.category-tabs .tabs-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    list-style: none;
}

.category-tabs .tab-item {
    padding: 8px 18px;
    border-radius: 50px;
    background: #fff;
    border: 1px solid var(--border);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-muted);
}

.category-tabs .tab-item:hover,
.category-tabs .tab-item.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* ===== 工具卡片网格 ===== */
.tools-section { padding: 24px 0 48px; }

.section-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
}

.section-title .icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

.tool-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    transition: var(--transition);
    cursor: pointer;
    display: block;
    text-decoration: none;
    color: var(--text);
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: var(--transition);
}

.tool-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    color: var(--text);
}

.tool-card:hover::before { opacity: 1; }

.tool-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 14px;
}

.tool-card-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
}

.tool-card-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

.tool-card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 50px;
    font-weight: 600;
}

.badge-hot { background: #fee2e2; color: #dc2626; }
.badge-new { background: #d1fae5; color: #059669; }

/* ===== 工具页面布局 ===== */
.tool-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 32px 20px;
}

.tool-page-header {
    margin-bottom: 28px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { color: #cbd5e1; }

.tool-page-title {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 8px;
}

.tool-page-title .icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
}

.tool-page-title h1 {
    font-size: 28px;
    font-weight: 700;
}

.tool-page-desc {
    color: var(--text-muted);
    font-size: 15px;
    margin-left: 66px;
}

.tool-body {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 24px;
}

.tool-body.full-width {
    grid-template-columns: 1fr;
}

.tool-main {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}

.tool-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ===== 表单元素 ===== */
.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text);
    background: #fff;
    transition: var(--transition);
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79,70,229,.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 160px;
    font-family: 'Fira Code', 'Consolas', monospace;
    font-size: 13px;
    line-height: 1.6;
}

.code-area {
    font-family: 'Fira Code', 'Consolas', 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.6;
    background: #1e1e2e;
    color: #cdd6f4;
    border: 1px solid #313244;
    border-radius: var(--radius-sm);
    padding: 16px;
    width: 100%;
    resize: vertical;
    min-height: 200px;
}

/* ===== 按钮 ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79,70,229,.3);
}

.btn-secondary {
    background: #f1f5f9;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: #e2e8f0;
    color: var(--text);
}

.btn-success {
    background: var(--success);
    color: #fff;
}

.btn-success:hover {
    background: #059669;
    color: #fff;
}

.btn-danger {
    background: var(--danger);
    color: #fff;
}

.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-lg { padding: 13px 28px; font-size: 16px; }

.btn-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 16px;
}

/* ===== 结果展示 ===== */
.result-box {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-top: 16px;
    position: relative;
}

.result-box .copy-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.result-box .copy-btn:hover { background: var(--primary-dark); }

.result-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 8px;
}

.result-value {
    font-family: 'Fira Code', 'Consolas', monospace;
    font-size: 14px;
    word-break: break-all;
    color: var(--text);
}

/* ===== 广告位 ===== */
.ad-slot {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 12px;
    text-align: center;
}

.ad-slot-banner {
    width: 100%;
    height: 90px;
    margin: 24px 0;
}

.ad-slot-sidebar {
    width: 100%;
    height: 250px;
}

.ad-slot-in-content {
    width: 100%;
    height: 200px;
    margin: 24px 0;
}

/* ===== 侧边栏卡片 ===== */
.sidebar-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
}

.sidebar-card-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 6px;
}

.related-tools { list-style: none; }
.related-tools li { margin-bottom: 8px; }
.related-tools a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    padding: 6px 8px;
    border-radius: 6px;
    transition: var(--transition);
}
.related-tools a:hover {
    background: #f1f5f9;
    color: var(--primary);
}

/* ===== 页脚 ===== */
.footer {
    background: #1e293b;
    color: #94a3b8;
    padding: 48px 0 24px;
    margin-top: 64px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.footer-desc {
    font-size: 13px;
    line-height: 1.7;
    color: #64748b;
}

.footer-title {
    font-size: 13px;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a {
    font-size: 13px;
    color: #64748b;
    transition: var(--transition);
}
.footer-links a:hover { color: #94a3b8; }

.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
    list-style: none;
}

.footer-bottom-links a {
    color: #64748b;
    font-size: 13px;
}

.footer-bottom-links a:hover { color: #94a3b8; }

/* ===== 通知提示 ===== */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #1e293b;
    color: #fff;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 14px;
    box-shadow: var(--shadow-lg);
    transform: translateY(100px);
    opacity: 0;
    transition: all .3s ease;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 8px;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }

/* ===== 工具使用说明 ===== */
.tool-guide {
    background: linear-gradient(135deg, #eff6ff, #f0fdf4);
    border: 1px solid #bfdbfe;
    border-radius: var(--radius);
    padding: 20px;
    margin-top: 24px;
}

.tool-guide h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tool-guide ol, .tool-guide ul {
    padding-left: 20px;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.8;
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
    .tool-body {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 32px; }
    .hero p { font-size: 15px; }
    .hero-stats { gap: 24px; }
    .hero-stats .stat-num { font-size: 24px; }
    
    .navbar-nav,
    .navbar-search { display: none; }
    .navbar-toggle { display: block; }
    
    .tools-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    .tool-page { padding: 20px 16px; }
    .tool-page-title h1 { font-size: 22px; }
}

@media (max-width: 480px) {
    .tools-grid {
        grid-template-columns: 1fr 1fr;
    }
    .hero { padding: 48px 0 40px; }
}

/* ===== 工具颜色主题 ===== */
.color-blue { background: #dbeafe; color: #2563eb; }
.color-purple { background: #ede9fe; color: #7c3aed; }
.color-green { background: #d1fae5; color: #059669; }
.color-orange { background: #ffedd5; color: #ea580c; }
.color-pink { background: #fce7f3; color: #db2777; }
.color-cyan { background: #cffafe; color: #0891b2; }
.color-yellow { background: #fef9c3; color: #ca8a04; }
.color-red { background: #fee2e2; color: #dc2626; }
.color-indigo { background: #e0e7ff; color: #4338ca; }
.color-teal { background: #ccfbf1; color: #0d9488; }

/* ===== 加载动画 ===== */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .6s linear infinite;
    display: inline-block;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ===== 搜索结果 ===== */
.search-results {
    /* position: absolute; */
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    z-index: 100;
    max-height: 320px;
    overflow-y: auto;
    display: none;
}

.search-results.show { display: block; }

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    color: var(--text);
}

.search-result-item:hover { background: #f8fafc; }

.search-result-item .item-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.search-result-item .item-info .item-name {
    font-size: 14px;
    font-weight: 600;
}

.search-result-item .item-info .item-cat {
    font-size: 12px;
    color: var(--text-muted);
}

/* ===== 分隔线 ===== */
.divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 20px 0;
}

/* ===== 标签 ===== */
.tag {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 500;
    background: #f1f5f9;
    color: var(--text-muted);
}

/* ===== 进度条 ===== */
.progress {
    height: 6px;
    background: #e2e8f0;
    border-radius: 50px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 50px;
    transition: width .3s ease;
}

/* ===== 滑块 ===== */
input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 50px;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(79,70,229,.4);
}

/* ===== 颜色选择器 ===== */
input[type="color"] {
    -webkit-appearance: none;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    padding: 0;
}

input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
input[type="color"]::-webkit-color-swatch { border: none; border-radius: 8px; }

/* ===== 选择框 ===== */
select.form-control {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    -webkit-appearance: none;
}

/* ===== 工具提示 ===== */
[data-tooltip] {
    position: relative;
    cursor: help;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: #1e293b;
    color: #fff;
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

[data-tooltip]:hover::after { opacity: 1; }

/* ===== 移动端菜单 ===== */
.mobile-menu {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 16px;
    z-index: 999;
    box-shadow: var(--shadow-md);
}

.mobile-menu.open { display: block; }

.mobile-menu .nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-menu .nav-list a {
    display: block;
    padding: 10px 14px;
    border-radius: 8px;
    color: var(--text);
    font-size: 15px;
    font-weight: 500;
}

.mobile-menu .nav-list a:hover {
    background: #f1f5f9;
    color: var(--primary);
}

.mobile-menu .search-box {
    margin-top: 12px;
    display: flex;
    background: #f1f5f9;
    border-radius: 8px;
    padding: 8px 14px;
    gap: 8px;
}

.mobile-menu .search-box input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-size: 14px;
}


/* ===== 友情链接 ===== */
.friends-links-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    margin-top: 40px;
    border-top: 1px solid var(--border);
}

.friends-links-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.friends-links-title {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
    color: var(--text);
}

.friends-links-desc {
    text-align: center;
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 40px;
}

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

.friend-link-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 24px 20px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
    text-align: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.friend-link-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.3), transparent);
    transition: left .5s ease;
}

.friend-link-item:hover::before {
    left: 100%;
}

.friend-link-item:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.15);
    transform: translateY(-2px);
}

.friend-link-name {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
    transition: var(--transition);
}

.friend-link-item:hover .friend-link-name {
    color: var(--primary);
}

.friend-link-desc {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    transition: var(--transition);
}

.friend-link-item:hover .friend-link-desc {
    color: var(--primary-light);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .friends-links-section {
        padding: 40px 0;
        margin-top: 30px;
    }
    
    .friends-links-title {
        font-size: 22px;
        margin-bottom: 8px;
    }
    
    .friends-links-desc {
        font-size: 14px;
        margin-bottom: 30px;
    }
    
    .friends-links-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 16px;
    }
    
    .friend-link-item {
        padding: 18px 16px;
    }
    
    .friend-link-name {
        font-size: 14px;
    }
    
    .friend-link-desc {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .friends-links-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .friend-link-item {
        padding: 16px 12px;
    }
    
    .friend-link-name {
        font-size: 13px;
        margin-bottom: 6px;
    }
    
    .friend-link-desc {
        font-size: 11px;
    }
}
