/* css/common.css - 公共样式文件 */
/* 本文件包含主页和子页面共用的样式 */

/* ===================== */
/* CSS 变量定义          */
/* ===================== */
:root {
    --primary-color: #3a86ff;
    --secondary-color: #5a8dee;
    --light-blue: #a2d2ff;
    --very-light-blue: #cdedfd;
    --text-dark: #2c3e50;
    --text-light: #5d6d7e;
    --white: #ffffff;
    --shadow: rgba(58, 134, 255, 0.1);
    --transition: all 0.3s ease;
}

/* ===================== */
/* 基础样式重置          */
/* ===================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

/* ===================== */
/* 页面基础样式          */
/* ===================== */
body {
    background-color: #f8fafd;
    color: var(--text-dark);
    line-height: 1.7;
    min-height: 100vh;
    background-image: linear-gradient(135deg, #f5f7ff 0%, #f0f8ff 100%);
}

/* ===================== */
/* 容器样式              */
/* ===================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===================== */
/* 头部样式              */
/* ===================== */
header {
    padding: 25px 0;
    text-align: center;
    background-color: var(--white);
    box-shadow: 0 4px 12px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    animation: slideDown 0.8s ease-out;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 10px;
}

.logo-icon {
    color: var(--primary-color);
    font-size: 32px;
    animation: pulse 2s infinite alternate;
}

.logo-text {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.tagline {
    color: var(--text-light);
    font-size: 16px;
    letter-spacing: 1px;
}

/* ===================== */
/* 页脚样式              */
/* ===================== */
footer {
    background-color: var(--text-dark);
    color: var(--white);
    padding: 30px 0;
    text-align: center;
    margin-top: 40px;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    color: #bdc3c7;
    font-size: 14px;
}

.copyright {
    color: #bdc3c7;
    font-size: 14px;
    line-height: 1.5;
}

.disclaimer {
    color: #bdc3c7;
    font-size: 14px;
}

/* ===================== */
/* 链接基础样式重置       */
/* ===================== */
a:link,
a:visited,
a:hover,
a:active {
    color: inherit;
    text-decoration: none;
}

/* ===================== */
/* 动画关键帧            */
/* ===================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1);
    }
}
