/* ============================================
   网页样式表 - style.css
   作者：网页设计作品
   日期：2024
   ============================================ */

/* ============================================
   1. 全局样式重置和基础设置
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 50%, #16213e 100%);
    min-height: 100vh;
}

/* 容器样式 - 统一页面宽度和居中 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   2. 头部导航区域样式
   ============================================ */
.header {
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    color: #00ffff;
    padding: 20px 0;
    box-shadow: 0 2px 20px rgba(0, 255, 255, 0.3), 0 0 40px rgba(176, 38, 255, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid #00ffff;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 28px;
    font-weight: bold;
}

/* 导航菜单样式 */
.nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav ul li a {
    color: #00ffff;
    text-decoration: none;
    font-size: 16px;
    padding: 8px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.nav ul li a:hover {
    background-color: rgba(0, 255, 255, 0.2);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.6);
    transform: translateY(-2px);
}

/* ============================================
   3. 主要内容区域样式
   ============================================ */
.main-content {
    min-height: calc(100vh - 200px);
}

/* 首页横幅区域 */
.hero {
    background:
        linear-gradient(135deg, rgba(15, 12, 41, 0.85) 0%, rgba(48, 43, 99, 0.8) 30%, rgba(176, 38, 255, 0.75) 70%, rgba(255, 0, 255, 0.75) 100%),
        url('../images.jpg') center/cover no-repeat;
    color: #fff;
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(0, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.hero h2 {
    font-size: 48px;
    margin-bottom: 20px;
    animation: fadeInDown 1s ease;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.8), 0 0 40px rgba(176, 38, 255, 0.6);
    color: #00ffff;
    position: relative;
    z-index: 1;
}

.hero p {
    font-size: 20px;
    animation: fadeInUp 1s ease;
    text-shadow: 0 0 10px rgba(255, 0, 255, 0.6);
    color: #ff00ff;
    position: relative;
    z-index: 1;
}

/* 动画效果 */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 区域标题样式 */
.section-title {
    font-size: 36px;
    text-align: center;
    margin-bottom: 50px;
    color: #00ffff;
    position: relative;
    padding-bottom: 15px;
    text-shadow: 0 0 15px rgba(0, 255, 255, 0.6);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #00ffff, #b026ff, #ff00ff);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
}

/* ============================================
   4. 关于区域样式 - 包含表格
   ============================================ */
.about-section {
    padding: 80px 0;
    background: linear-gradient(to bottom, rgba(10, 10, 15, 0.8), rgba(26, 26, 46, 0.9));
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.about-text {
    text-align: center;
    font-size: 18px;
    color: #e0e0e0;
}

/* 表格容器 */
.table-container {
    overflow-x: auto;
    margin-top: 30px;
}

.table-container h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #00ffff;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

/* 技能表格样式 */
.skills-table {
    width: 100%;
    border-collapse: collapse;
    background: linear-gradient(135deg, rgba(15, 12, 41, 0.9), rgba(48, 43, 99, 0.9));
    box-shadow: 0 4px 20px rgba(0, 255, 255, 0.2), 0 0 40px rgba(176, 38, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(0, 255, 255, 0.3);
}

.skills-table thead {
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #b026ff 100%);
    color: #00ffff;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
}

.skills-table th {
    padding: 15px;
    text-align: left;
    font-weight: bold;
    font-size: 16px;
}

.skills-table tbody tr {
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.skills-table tbody tr:hover {
    background: rgba(0, 255, 255, 0.1);
    box-shadow: inset 0 0 20px rgba(0, 255, 255, 0.2);
    transform: scale(1.01);
}

.skills-table td {
    padding: 15px;
    color: #e0e0e0;
}

.skills-table tbody tr:nth-child(even) {
    background: rgba(176, 38, 255, 0.05);
}

.skills-table tbody tr:nth-child(even):hover {
    background: rgba(0, 255, 255, 0.15);
    box-shadow: inset 0 0 20px rgba(0, 255, 255, 0.3);
}

/* ============================================
   5. 作品展示区域样式 - 包含图片和超链接
   ============================================ */
.portfolio-section {
    padding: 80px 0;
    background: linear-gradient(to bottom, rgba(22, 33, 62, 0.9), rgba(15, 12, 41, 0.9));
}

/* 作品网格布局 */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

/* 作品项目样式 */
.portfolio-item {
    background: linear-gradient(135deg, rgba(15, 12, 41, 0.9), rgba(48, 43, 99, 0.9));
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 255, 255, 0.2), 0 0 30px rgba(176, 38, 255, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 255, 255, 0.3);
}

.portfolio-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 8px 30px rgba(0, 255, 255, 0.4), 0 0 50px rgba(176, 38, 255, 0.3);
    border-color: #00ffff;
}

/* 作品图片样式 */
.portfolio-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #b026ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.portfolio-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(0, 255, 255, 0.1) 50%, transparent 70%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.1);
}

/* 作品信息样式 */
.portfolio-info {
    padding: 20px;
}

.portfolio-info h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: #00ffff;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.portfolio-info p {
    color: #e0e0e0;
    margin-bottom: 15px;
    line-height: 1.6;
}

.portfolio-info ul {
    list-style: none;
    padding-left: 0;
    margin: 10px 0 15px 0;
}

.portfolio-info ul li {
    padding: 5px 0;
    padding-left: 20px;
    position: relative;
    color: #e0e0e0;
    font-size: 14px;
    line-height: 1.5;
}

.portfolio-info ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #00ffff;
    font-weight: bold;
    font-size: 18px;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.8);
}

/* 超链接样式 */
.portfolio-link {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #b026ff 100%);
    color: #00ffff;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-weight: bold;
    border: 1px solid rgba(0, 255, 255, 0.5);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
}

.portfolio-link:hover {
    background: linear-gradient(135deg, #b026ff 0%, #ff00ff 100%);
    transform: translateX(5px);
    box-shadow: 0 0 25px rgba(176, 38, 255, 0.6), 0 0 40px rgba(255, 0, 255, 0.4);
    border-color: #ff00ff;
    color: #fff;
}

/* ============================================
   6. 媒体展示区域样式 - 包含视频和音频
   ============================================ */
.media-section {
    padding: 80px 0;
    background: linear-gradient(to bottom, rgba(15, 12, 41, 0.9), rgba(22, 33, 62, 0.9));
}

.media-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.media-item {
    background: linear-gradient(135deg, rgba(15, 12, 41, 0.9), rgba(48, 43, 99, 0.9));
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 255, 255, 0.2), 0 0 30px rgba(176, 38, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
}

.media-item h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #00ffff;
    text-align: center;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.6);
}

/* 视频容器样式 */
.video-container {
    width: 100%;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.video-container video {
    width: 100%;
    height: auto;
    display: block;
}


.media-item p {
    color: #e0e0e0;
    text-align: center;
    font-size: 14px;
}

/* ============================================
   6.5. 模块详细说明区域样式
   ============================================ */
.module-section {
    padding: 80px 0;
    background-color: #fff;
}

.module-section:nth-child(even) {
    background: linear-gradient(to bottom, #f5f5f5, #fff);
}

.module-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.module-item {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid #667eea;
}

.module-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.module-item h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #667eea;
}

.module-item p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.8;
}

.module-item ul {
    list-style: none;
    padding-left: 0;
}

.module-item ul li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: #555;
    line-height: 1.6;
}

.module-item ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
    font-size: 18px;
}

/* ============================================
   7. 联系表单区域样式
   ============================================ */
.contact-section {
    padding: 80px 0;
    background: linear-gradient(to bottom, rgba(22, 33, 62, 0.9), rgba(10, 10, 15, 0.95));
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    margin-top: 40px;
}

.contact-info {
    background: linear-gradient(135deg, rgba(15, 12, 41, 0.9), rgba(48, 43, 99, 0.9));
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 255, 255, 0.2), 0 0 30px rgba(176, 38, 255, 0.1);
    height: fit-content;
    border: 1px solid rgba(0, 255, 255, 0.3);
}

.contact-info h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #00ffff;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.6);
}

.contact-info p {
    margin-bottom: 15px;
    color: #e0e0e0;
    font-size: 16px;
}

/* 表单容器 */
.contact-form-container {
    background: linear-gradient(135deg, rgba(15, 12, 41, 0.9), rgba(48, 43, 99, 0.9));
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 255, 255, 0.2), 0 0 30px rgba(176, 38, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
}

/* 表单样式 */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 8px;
    color: #00ffff;
    font-weight: bold;
    font-size: 14px;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.5);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px;
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 5px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: rgba(15, 12, 41, 0.7);
    color: #e0e0e0;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00ffff;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.4), inset 0 0 10px rgba(0, 255, 255, 0.1);
}

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

.form-group label input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
}

/* 按钮样式 */
.submit-btn,
.reset-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.submit-btn {
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #b026ff 100%);
    color: #00ffff;
    border: 1px solid rgba(0, 255, 255, 0.5);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
}

.submit-btn:hover {
    background: linear-gradient(135deg, #b026ff 0%, #ff00ff 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(176, 38, 255, 0.5), 0 0 30px rgba(255, 0, 255, 0.3);
    border-color: #ff00ff;
    color: #fff;
}

.reset-btn {
    background: rgba(15, 12, 41, 0.7);
    color: #e0e0e0;
    margin-left: 10px;
    border: 1px solid rgba(0, 255, 255, 0.3);
}

.reset-btn:hover {
    background: rgba(48, 43, 99, 0.7);
    border-color: #00ffff;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.form-group:last-child {
    flex-direction: row;
    justify-content: flex-start;
}

/* ============================================
   8. 页脚区域样式
   ============================================ */
.footer {
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    color: #00ffff;
    padding: 30px 0;
    margin-top: 50px;
    border-top: 2px solid #00ffff;
    box-shadow: 0 -2px 20px rgba(0, 255, 255, 0.3), 0 0 40px rgba(176, 38, 255, 0.2);
}

.footer-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    text-align: center;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: #00ffff;
    text-decoration: none;
    transition: all 0.3s ease;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.footer-links a:hover {
    color: #ff00ff;
    text-shadow: 0 0 15px rgba(255, 0, 255, 0.8);
    transform: translateY(-2px);
}

/* ICP备案号 - 特殊标签样式 */
.icp-record {
    margin: 8px 0 0 0;
    position: relative;
}

/* 外层轨道环 */
.icp-record::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 110%;
    height: 140%;
    transform: translate(-50%, -50%);
    border: 1px dashed rgba(0, 255, 255, 0.2);
    border-radius: 50%;
    animation: ring-orbit 12s linear infinite;
    pointer-events: none;
}

@keyframes ring-orbit {
    0%   { transform: translate(-50%, -50%) rotate(0deg) scale(1); }
    50%  { transform: translate(-50%, -50%) rotate(180deg) scale(1.08); }
    100% { transform: translate(-50%, -50%) rotate(360deg) scale(1); }
}

.icp-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.08), rgba(176, 38, 255, 0.08));
    border: 1px solid rgba(0, 255, 255, 0.4);
    border-radius: 50px;
    box-shadow:
        0 0 12px rgba(0, 255, 255, 0.25),
        0 0 30px rgba(176, 38, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    animation: badge-breathe 3s ease-in-out infinite;
}

/* 呼吸发光 */
@keyframes badge-breathe {
    0%, 100% {
        box-shadow:
            0 0 12px rgba(0, 255, 255, 0.25),
            0 0 30px rgba(176, 38, 255, 0.15),
            inset 0 1px 0 rgba(255, 255, 255, 0.05);
    }
    50% {
        box-shadow:
            0 0 22px rgba(0, 255, 255, 0.5),
            0 0 50px rgba(176, 38, 255, 0.35),
            0 0 70px rgba(0, 255, 255, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
}

/* 光泽扫过 */
.icp-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(0, 255, 255, 0.12),
            rgba(255, 255, 255, 0.06),
            rgba(0, 255, 255, 0.12),
            transparent);
    animation: badge-shine 3s ease-in-out infinite;
}

@keyframes badge-shine {
    0%, 100% { left: -100%; }
    25%  { left: 100%; }
    26%  { left: -100%; }
}

/* 垂直扫描线 */
.icp-badge::after {
    content: '';
    position: absolute;
    top: -20%;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg,
            transparent,
            rgba(0, 255, 255, 0.6),
            rgba(176, 38, 255, 0.8),
            rgba(0, 255, 255, 0.6),
            transparent);
    box-shadow: 0 0 6px rgba(0, 255, 255, 0.5), 0 0 14px rgba(176, 38, 255, 0.4);
    animation: badge-scan 4.5s ease-in-out infinite;
}

@keyframes badge-scan {
    0%, 100% { top: -20%; opacity: 0; }
    15%  { opacity: 1; }
    45%  { top: 120%; opacity: 0.6; }
    46%  { top: -20%; opacity: 0; }
}

.icp-icon {
    font-size: 14px;
    filter: drop-shadow(0 0 4px rgba(0, 255, 255, 0.6));
    animation: icon-pulse 2s ease-in-out infinite;
}

@keyframes icon-pulse {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.15); }
}

.icp-badge a {
    color: #00ffff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    z-index: 1;
}

/* 悬停效果 */
.icp-badge:hover {
    border-color: rgba(255, 0, 255, 0.7);
    box-shadow:
        0 0 20px rgba(255, 0, 255, 0.4),
        0 0 50px rgba(176, 38, 255, 0.3),
        0 0 80px rgba(0, 255, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    background: linear-gradient(135deg, rgba(255, 0, 255, 0.1), rgba(0, 255, 255, 0.1));
    animation: none;
}

/* 悬停 - 文字故障分裂效果 */
.icp-badge:hover a {
    color: #fff;
    animation: glitch-text 0.4s steps(3) forwards;
}

@keyframes glitch-text {
    0%   { text-shadow: 0 0 10px rgba(0, 255, 255, 0.8); transform: translate(0); }
    20%  { text-shadow: 3px 0 rgba(255, 0, 255, 0.8), -3px 0 rgba(0, 255, 255, 0.8); transform: translate(-2px, 1px); }
    40%  { text-shadow: -3px 0 rgba(255, 0, 255, 0.8), 3px 0 rgba(0, 255, 255, 0.8); transform: translate(2px, -1px); }
    60%  { text-shadow: 2px 0 rgba(255, 0, 255, 0.8), -2px 0 rgba(0, 255, 255, 0.8), 0 0 20px rgba(255, 0, 255, 0.6); transform: translate(-1px, -1px); }
    80%  { text-shadow: -2px 0 rgba(255, 0, 255, 0.8), 2px 0 rgba(0, 255, 255, 0.8); transform: translate(1px, 2px); }
    100% { text-shadow: 0 0 20px rgba(255, 0, 255, 1), 0 0 40px rgba(176, 38, 255, 0.8); transform: translate(0); }
}

/* 悬停 - 扫描线加速 */
.icp-badge:hover::after {
    animation-duration: 1.5s;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 0, 255, 0.7),
            rgba(255, 255, 255, 0.6),
            rgba(255, 0, 255, 0.7),
            transparent);
    box-shadow: 0 0 8px rgba(255, 0, 255, 0.6), 0 0 20px rgba(255, 0, 255, 0.3);
}

/* 悬停 - 光泽加速 */
.icp-badge:hover::before {
    animation-duration: 1s;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 0, 255, 0.2),
            rgba(255, 255, 255, 0.1),
            rgba(255, 0, 255, 0.2),
            transparent);
}

.icp-badge:hover .icp-icon {
    filter: drop-shadow(0 0 6px rgba(255, 0, 255, 0.8));
}

/* ============================================
   9. 响应式设计 - 移动端适配
   ============================================ */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 20px;
    }

    .nav ul {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .hero h2 {
        font-size: 32px;
    }

    .hero p {
        font-size: 16px;
    }

    .section-title {
        font-size: 28px;
    }

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

    .media-content {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .module-content {
        grid-template-columns: 1fr;
    }

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

    /* 平板端备案徽章微调 */
    .icp-badge {
        padding: 7px 16px;
        gap: 6px;
        border-radius: 40px;
    }

    .icp-badge a {
        font-size: 13px;
        letter-spacing: 0.3px;
    }

    .icp-icon {
        font-size: 13px;
    }

    .icp-record::before {
        width: 108%;
        height: 130%;
    }

    .skills-table {
        font-size: 14px;
    }

    .skills-table th,
    .skills-table td {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 60px 0;
    }

    .about-section,
    .portfolio-section,
    .media-section,
    .contact-section {
        padding: 50px 0;
    }

    .contact-form-container {
        padding: 20px;
    }

    /* 手机端备案徽章 */
    .icp-badge {
        padding: 6px 14px;
        gap: 6px;
        border-radius: 30px;
        border-color: rgba(0, 255, 255, 0.25);
        background: linear-gradient(135deg, rgba(0, 255, 255, 0.05), rgba(176, 38, 255, 0.05));
        animation: badge-breathe-mobile 4s ease-in-out infinite;
    }

    @keyframes badge-breathe-mobile {
        0%, 100% {
            box-shadow:
                0 0 6px rgba(0, 255, 255, 0.15),
                0 0 14px rgba(176, 38, 255, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 0.03);
        }
        50% {
            box-shadow:
                0 0 14px rgba(0, 255, 255, 0.3),
                0 0 30px rgba(176, 38, 255, 0.2),
                0 0 40px rgba(0, 255, 255, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.06);
        }
    }

    .icp-badge a {
        font-size: 13px;
        letter-spacing: 0.3px;
    }

    .icp-icon {
        font-size: 13px;
    }

    /* 手机端关闭光泽扫过，保留扫描线 */
    .icp-badge::before {
        animation: none;
    }

    .icp-badge::after {
        animation-duration: 6s;
    }

    /* 手机端缩小轨道环 */
    .icp-record::before {
        width: 106%;
        height: 120%;
        animation-duration: 16s;
    }

    .icp-badge:hover {
        transform: none;
        animation: none;
        box-shadow:
            0 0 10px rgba(255, 0, 255, 0.3),
            0 0 25px rgba(176, 38, 255, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.06);
    }

    /* 手机端保留文字故障效果 */
    .icp-badge:hover a {
        animation: glitch-text 0.4s steps(3) forwards;
    }
}

