/* ============================================================
   main.css — 夏创官网全局样式（ThinkCMF 版）
   对齐原 Vue 3 项目：src/assets/base.css + src/assets/main.css + App.vue <style>
   ============================================================ */

/* ====== 颜色变量 ====== */
:root {
    --vt-c-white: #ffffff;
    --vt-c-white-soft: #f8f8f8;
    --vt-c-white-mute: #f2f2f2;
    --vt-c-black: #181818;
    --vt-c-black-soft: #222222;
    --vt-c-black-mute: #282828;
    --vt-c-indigo: #2c3e50;
    --vt-c-divider-light-1: rgba(60, 60, 60, 0.29);
    --vt-c-divider-light-2: rgba(60, 60, 60, 0.12);
    --vt-c-divider-dark-1: rgba(84, 84, 84, 0.65);
    --vt-c-divider-dark-2: rgba(84, 84, 84, 0.48);
    --vt-c-text-light-1: var(--vt-c-indigo);
    --vt-c-text-light-2: rgba(60, 60, 60, 0.66);
    --vt-c-text-dark-1: var(--vt-c-white);
    --vt-c-text-dark-2: rgba(235, 235, 235, 0.64);

    --color-background: var(--vt-c-white);
    --color-background-soft: var(--vt-c-white-soft);
    --color-background-mute: var(--vt-c-white-mute);
    --color-border: var(--vt-c-divider-light-2);
    --color-border-hover: var(--vt-c-divider-light-1);
    --color-heading: var(--vt-c-text-light-1);
    --color-text: var(--vt-c-text-light-1);
    --section-gap: 160px;
}

/* ====== 全局重置 ====== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-weight: normal;
}

html, body {
    min-height: 100vh;
    color: #fff;
    background: #101014;
    font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: transparent;
}

/* ====== Vue #app 等价 body.dark ====== */
body.dark {
    background: #101014;
    min-height: 100vh;
    color: #ffffff;
}

/* ====== 通用占位 ====== */
.main-placeholder {
    height: 70px;
}


/* ====== 全局 Loading（对齐 Loading.vue） ====== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 1);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-spinner img {
    width: 200px;
    height: 200px;
}

/* ====== 通用按钮（对齐 Home.vue 中的 read-btn） ====== */
.read-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: inline-block;
    text-decoration: none;
    text-align: center;
    line-height: 1.4;
}

.read-btn.primary {
    background-color: #26bbff;
    color: #101014;
    font-weight: bold;
}

.read-btn.primary:hover {
    background-color: #1da8e8;
}

.read-btn.outline {
    background-color: transparent;
    color: #ffffff;
    border: 1px solid hsla(0, 0%, 100%, 0.35);
}

.read-btn.outline:hover {
    border-color: hsla(0, 0%, 100%, 0.6);
}

/* ====== 通用 view-all 按钮 ====== */
.view-all {
    font-size: 14px;
    color: #fff;
    text-decoration: none;
    padding: 8px 16px;
    border: 1px solid hsla(0, 0%, 100%, 0.2);
    border-radius: 8px;
    transition: all 0.3s;
    cursor: pointer;
}

.view-all:hover {
    border-color: hsla(0, 0%, 100%, 0.5);
    background-color: rgba(255, 255, 255, 0.05);
}

/* ====== section spacer ====== */
.section-spacer {
    margin-top: 50px;
}

@media (min-width: 1250px) {
    .section-spacer {
        margin-top: 96px;
    }
}

/* ====== 链接重置（对齐 App.vue <style>） ====== */
a {
    text-decoration: none;
    color: #fff;
    background-color: transparent;
    transition: 0.4s;
    padding: 3px;
}

a:hover,
a:focus {
    text-decoration: none;
    background-color: transparent;
    outline: none;
}

a:active,
a:visited,
a:link {
    text-decoration: none !important;
    outline: none !important;
    cursor: pointer;
}

/* ====== 图片默认 ====== */
img {
    max-width: 100%;
    height: auto;
}

/* ====== 列表重置 ====== */
ul, ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* ====== 按钮重置 ====== */
button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    background: none;
}

/* ====== 输入框 ====== */
input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

/* ====== 分页组件 ====== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 30px 0;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    padding: 8px 14px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s;
}

.pagination a:hover {
    background: rgba(255, 255, 255, 0.1);
}

.pagination .active {
    background: #26bbff;
    color: #101014;
    font-weight: bold;
}

.pagination .disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ====== 页面内容容器 ====== */
.page-content {
    min-height: calc(100vh - 70px - 60px);
}

/* ====== 卡片通用 ====== */
.card-bg {
    background: rgba(255, 255, 255, 0.05);
}

.card-bg-hover:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ====== Element Plus 兼容 ====== */
@media screen and (max-width: 768px) {
    .el-message {
        min-width: 90% !important;
    }
}