/* ============================================
   朵尔学AI的心得 — 全局样式（淡蓝 + 金色主题）
   ============================================ */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: linear-gradient(135deg, #e3f0fa, #d4e6f7, #c2ddf5);
    color: #3a3a4a;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* --- 导航栏 --- */
nav {
    width: 100%;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.logo,
.logo a {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(90deg, #3a7bd5, #5a9fd4, #d4a844);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo a {
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    color: #5a5a6e;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: #c9a030;
}

/* --- 主内容区 --- */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px;
    width: 100%;
    max-width: 900px;
}

/* --- 页脚 --- */
footer {
    width: 100%;
    padding: 24px;
    text-align: center;
    color: #999;
    font-size: 13px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

/* ============================================
   首页 (index.html)
   ============================================ */

.hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    max-width: 800px;
}

.hero h1 {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #3a7bd5, #5a9fd4, #d4a844);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero .subtitle {
    font-size: 20px;
    color: #6a6a7e;
    margin-bottom: 48px;
    line-height: 1.6;
}

/* AI 图标 */
.ai-icon {
    width: 100px;
    height: 100px;
    border-radius: 24px;
    background: linear-gradient(135deg, #3a7bd5, #d4a844);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    margin-bottom: 32px;
    animation: float 3s ease-in-out infinite;
    box-shadow: 0 20px 60px rgba(58, 123, 213, 0.3);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* 卡片区 */
.cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 40px;
    width: 100%;
    max-width: 1100px;
}

.card {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(201, 160, 48, 0.18);
    border-color: rgba(201, 160, 48, 0.35);
}

.card .icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.card p {
    font-size: 14px;
    color: #777;
    line-height: 1.6;
}

/* 按钮 */
.cta {
    margin-top: 48px;
    display: flex;
    gap: 16px;
}

.btn {
    padding: 14px 36px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #d4a844, #c09020);
    color: #fff;
    box-shadow: 0 4px 20px rgba(201, 160, 48, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(201, 160, 48, 0.5);
}

.btn-secondary {
    background: rgba(0, 0, 0, 0.04);
    color: #555;
    border: 1px solid rgba(0, 0, 0, 0.12);
}

.btn-secondary:hover {
    background: rgba(0, 0, 0, 0.08);
}

/* ============================================
   笔记列表 (notes.html)
   ============================================ */

.page-header {
    text-align: center;
    margin-bottom: 48px;
}

.page-header h1 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 12px;
    background: linear-gradient(90deg, #3a7bd5, #5a9fd4, #d4a844);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-header .subtitle {
    font-size: 16px;
    color: #888;
}

/* 笔记列表 */
.note-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.note-item {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: 16px;
    padding: 28px 32px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.note-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(201, 160, 48, 0.18);
    border-color: rgba(201, 160, 48, 0.35);
}

.note-date {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(135deg, #d4a844, #c09020);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
}

.note-date .day {
    font-size: 22px;
}

.note-date .month {
    font-size: 12px;
    opacity: 0.85;
}

.note-content h3 {
    font-size: 18px;
    margin-bottom: 6px;
    color: #333;
}

.note-content p {
    font-size: 14px;
    color: #777;
    line-height: 1.6;
}

.note-tag {
    display: inline-block;
    margin-top: 10px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    background: rgba(201, 160, 48, 0.15);
    color: #b8941f;
}

/* 返回按钮 */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 48px;
    padding: 12px 28px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    color: #555;
    text-decoration: none;
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.back-link:hover {
    background: rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

/* ============================================
   工具列表 (tools/tools.html)
   ============================================ */

.tool-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tool-item {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: 16px;
    padding: 28px 32px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.tool-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(201, 160, 48, 0.18);
    border-color: rgba(201, 160, 48, 0.35);
}

.tool-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, #d4a844, #c09020);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.tool-content h3 {
    font-size: 18px;
    margin-bottom: 6px;
    color: #333;
}

.tool-content p {
    font-size: 14px;
    color: #777;
    line-height: 1.6;
}

/* ============================================
   笔记详情 (note-detail.html / note-*.html)
   ============================================ */

.page-header .meta {
    font-size: 14px;
    color: #888;
}

.page-header .meta span {
    margin: 0 8px;
}

.page-header .tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    background: rgba(201, 160, 48, 0.15);
    color: #b8941f;
}

/* 文章内容 */
.article {
    width: 100%;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 20px;
    padding: 48px 40px;
    line-height: 1.9;
}

.article h2 {
    font-size: 24px;
    color: #2a3a5a;
    margin: 36px 0 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(201, 160, 48, 0.3);
}

.article h2:first-child {
    margin-top: 0;
}

.article h3 {
    font-size: 18px;
    color: #3a4a6a;
    margin: 24px 0 10px;
}

.article p {
    margin: 10px 0;
    color: #555;
}

.article ul,
.article ol {
    padding-left: 24px;
    color: #555;
    margin: 8px 0;
}

.article li {
    margin: 6px 0;
}

.article code {
    background: rgba(201, 160, 48, 0.1);
    padding: 3px 8px;
    border-radius: 4px;
    font-family: "Fira Code", "Cascadia Code", Consolas, monospace;
    font-size: 14px;
    color: #b8941f;
}

.article pre {
    background: rgba(58, 123, 213, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    padding: 20px 24px;
    overflow-x: auto;
    margin: 12px 0;
    font-size: 14px;
    line-height: 1.7;
}

.article pre code {
    background: none;
    padding: 0;
    color: #3a4a6a;
}

.article .highlight-box {
    background: rgba(201, 160, 48, 0.08);
    border-left: 3px solid #d4a844;
    border-radius: 0 10px 10px 0;
    padding: 16px 20px;
    margin: 16px 0;
}

.article .highlight-box p {
    margin: 4px 0;
    color: #4a4a5e;
}

/* 导航按钮 */
.nav-buttons {
    display: flex;
    gap: 16px;
    margin-top: 40px;
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    color: #555;
    text-decoration: none;
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.nav-btn:hover {
    background: rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.nav-btn.primary {
    background: linear-gradient(135deg, #d4a844, #c09020);
    border: none;
    color: #fff;
    box-shadow: 0 4px 20px rgba(201, 160, 48, 0.3);
}

.nav-btn.primary:hover {
    box-shadow: 0 8px 30px rgba(201, 160, 48, 0.5);
}

/* 来源提示 */
.source-note {
    margin-top: 16px;
    font-size: 12px;
    color: #aaa;
    text-align: center;
}

/* ============================================
   软件展示 / 下载页 (exe/index.html)
   ============================================ */

.screenshots {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin: 16px 0 32px;
}

.screenshot-item {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
}

.screenshot-item img {
    width: 100%;
    display: block;
}

.screenshot-item p {
    padding: 12px;
    margin: 0;
    font-size: 13px;
    color: #888;
}

.download-section {
    margin-top: 32px;
    padding: 28px 32px;
    background: rgba(201, 160, 48, 0.08);
    border: 1px solid rgba(201, 160, 48, 0.2);
    border-radius: 16px;
    text-align: center;
}

.download-section h2 {
    margin-top: 0;
    padding-bottom: 0;
    border-bottom: none;
    font-size: 20px;
}

.download-section p {
    margin: 8px 0 20px;
}

.download-btn {
    display: inline-block;
    padding: 14px 40px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    background: linear-gradient(135deg, #3a7bd5, #5a9fd4);
    box-shadow: 0 4px 20px rgba(58, 123, 213, 0.3);
    transition: all 0.3s;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(58, 123, 213, 0.45);
}

@media (max-width: 768px) {
    .screenshots {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   响应式
   ============================================ */

@media (max-width: 1024px) {
    .cards {
        grid-template-columns: repeat(2, 1fr);
        max-width: 600px;
    }
}

@media (max-width: 768px) {
    /* 首页 */
    .hero h1 {
        font-size: 36px;
    }

    .cards {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }

    .cta {
        flex-direction: column;
        align-items: center;
    }

    /* 笔记列表 */
    .page-header h1 {
        font-size: 30px;
    }

    .note-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 24px 20px;
    }

    /* 工具列表 */
    .tool-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 24px 20px;
    }

    /* 笔记详情 */
    .article {
        padding: 28px 20px;
    }

    .article h2 {
        font-size: 20px;
    }

    .nav-buttons {
        flex-direction: column;
        align-items: center;
    }

    /* 导航 */
    .nav-links {
        gap: 16px;
    }
}
