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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f4f6f8;
    color: #333;
    padding-bottom: 40px;
}

/* 顶部标题栏 */
header {
    background-color: #2c3e50;
    color: white;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header h1 {
    font-size: 1.5rem;
    font-weight: 500;
}

/* 主容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* --- 通栏板块样式 --- */
.section-block {
    background: white;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    overflow: hidden; /* 包含内部浮动 */
}

/* 板块标题 */
.section-header {
    background-color: #fff;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    border-left: 4px solid #3498db; /* 左侧蓝色竖条装饰 */
    padding-left: 10px;
}

/* 链接内容区域 */
.section-content {
    padding: 20px;
}

/* 链接网格布局 */
.url-grid {
    display: grid;
    /* 响应式网格：最小宽度300px，自动填满一行 */
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
}

/* 单个链接卡片 */
.url-card {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 12px;
    transition: all 0.2s ease;
    text-decoration: none; /* 去掉下划线 */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.url-card:hover {
    background-color: #e3f2fd;
    border-color: #90caf9;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

/* 链接文字样式 */
.url-text {
    font-size: 0.9rem;
    color: #555;
    font-family: Consolas, Monaco, "Courier New", monospace; /* 等宽字体显示URL */
    
    /* 核心：处理超长链接的换行 */
    word-break: break-all; 
    line-height: 1.4;
}

/* 链接图标/标签 */
.url-tag {
    font-size: 0.75rem;
    color: #888;
    margin-bottom: 5px;
    font-weight: bold;
    text-transform: uppercase;
}

/* 状态提示 */
#status-msg {
    text-align: center;
    padding: 20px;
    color: #666;
}
.error-msg {
    color: #d9534f;
}