/* 基础样式：现代化黄色主题 */
:root {
    /* 主题主色：活力橙黄色 */
    --primary-color: #ff9500;
    --primary-light: #ffb340;
    --primary-dark: #e08500;
    /* 渐变色 */
    --gradient-primary: linear-gradient(135deg, #ff9500 0%, #ff6b00 100%);
    --gradient-bg: linear-gradient(180deg, #fff8f0 0%, #fff3e6 100%);
    /* 文本与背景 */
    --text-color: #2d2d2d;
    --text-light: #666666;
    --text-muted: #999999;
    --bg-color: #fffbf5;
    --bg-card: #ffffff;
    --bg-secondary: #fff5e6;
    /* 强调色 */
    --accent-color: #ffd666;
    --accent-light: #ffeaa7;
    /* 边框与阴影 */
    --border-color: #ffe4cc;
    --border-light: #fff0d9;
    --shadow: 0 4px 20px rgba(255, 149, 0, 0.1);
    --shadow-hover: 0 8px 30px rgba(255, 149, 0, 0.2);
    --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.06);
    /* 圆角 */
    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 24px;
    /* 过渡 */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 深色模式 */
.dark-mode {
    --primary-color: #ff9500;
    --primary-light: #ffb340;
    --gradient-primary: linear-gradient(135deg, #ff9500 0%, #ff6b00 100%);
    --gradient-bg: linear-gradient(180deg, #1a1510 0%, #1f1a12 100%);
    --text-color: #f5f5f5;
    --text-light: #c4c4c4;
    --text-muted: #888888;
    --bg-color: #151210;
    --bg-card: #1e1a14;
    --bg-secondary: #252018;
    --accent-color: #ffd666;
    --accent-light: #3d3420;
    --border-color: #3d3420;
    --border-light: #2d2820;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.4);
    --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.2);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--gradient-bg);
    min-height: 100vh;
    transition: var(--transition);
}

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

/* 导航栏 */
.navbar {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-card);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.8rem 0;
    transition: var(--transition);
}

.dark-mode .navbar {
    background: rgba(30, 26, 20, 0.9);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo i {
    font-size: 1.6rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.nav-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
    border-radius: var(--radius-sm);
}

.nav-links a:hover {
    color: white;
    transform: translateY(-2px);
}

.nav-links a:hover::before {
    opacity: 1;
}

.theme-toggle {
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-color);
    padding: 10px;
    border-radius: 50%;
    transition: var(--transition);
    background: var(--bg-secondary);
}

.theme-toggle:hover {
    background: var(--primary-color);
    color: white;
    transform: rotate(15deg);
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-color);
    cursor: pointer;
    padding: 8px;
}

/* 主要内容区 */
main {
    padding: 2rem 0;
}

/* 区块样式 */
.section {
    margin-bottom: 2.5rem;
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.section-header h2 i {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header p {
    color: var(--text-light);
    margin-top: 0.5rem;
    font-size: 1rem;
}

/* 个人简介卡片 */
.profile-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-light);
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 2rem;
    align-items: center;
    transition: var(--transition);
}

.profile-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    box-shadow: 0 8px 24px rgba(255, 149, 0, 0.3);
}

.profile-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: var(--text-color);
}

.profile-info p {
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0.5rem;
}

.profile-info p i {
    color: var(--primary-color);
    width: 18px;
}

.profile-stats {
    display: flex;
    gap: 1.5rem;
}

.stat {
    text-align: center;
    padding: 1rem 1.5rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.stat:hover {
    background: var(--gradient-primary);
    color: white;
}

.stat:hover .stat-number,
.stat:hover .stat-label {
    color: white;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    transition: var(--transition);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-light);
    transition: var(--transition);
}

/* 任务管理 */
.tasks-container {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-light);
}

.task-input {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.task-input input {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    background: var(--bg-secondary);
    color: var(--text-color);
    transition: var(--transition);
}

.task-input input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(255, 149, 0, 0.1);
}

.task-input button {
    padding: 14px 28px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(255, 149, 0, 0.3);
}

.task-input button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 149, 0, 0.4);
}

.tasks-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.task-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.2rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.task-item:hover {
    background: var(--bg-card);
    box-shadow: var(--shadow);
}

.task-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.task-item span {
    flex: 1;
    color: var(--text-color);
}

.task-item.completed span {
    text-decoration: line-through;
    color: var(--text-muted);
}

.task-item i {
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    padding: 8px;
    border-radius: 50%;
}

.task-item i:hover {
    color: #ff4757;
    background: rgba(255, 71, 87, 0.1);
}

/* 笔记卡片 */
.notes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.note-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-light);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.note-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.note-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.note-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: var(--text-color);
}

.note-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

.note-card .note-date {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* 按钮样式 */
.btn {
    padding: 12px 24px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(255, 149, 0, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 149, 0, 0.4);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    box-shadow: none;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

/* 联系表单 */
.contact-form {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-light);
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    background: var(--bg-secondary);
    color: var(--text-color);
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(255, 149, 0, 0.1);
}

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

/* 表格样式 */
.table-wrap {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-light);
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    font-weight: 600;
    color: var(--text-color);
    background: var(--bg-secondary);
}

th:first-child {
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

th:last-child {
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

td {
    color: var(--text-light);
}

tr:hover td {
    background: var(--bg-secondary);
}

/* 页脚 */
footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    margin-top: 3rem;
    text-align: center;
    color: var(--text-light);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-card);
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow);
    }

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

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

    .profile-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .profile-avatar {
        margin: 0 auto;
    }

    .profile-stats {
        justify-content: center;
    }

    .task-input {
        flex-direction: column;
    }

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