:root {
    --primary: #4361ee;
    --secondary: #3a0ca3;
    --accent: #ff6b6b;
    --light: #f8f9fa;
    --light-bg: #ffffff;
    --text-dark: #333333;
    --text-light: #777777;
    --card-bg: rgba(255, 255, 255, 0.9);
    --shadow: rgba(149, 157, 165, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

body {
    background: linear-gradient(135deg, #f9f7fe 0%, #e3f2fd 100%);
    color: var(--text-dark);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    line-height: 1.6;
}

/* 顶部装饰 */
.header-deco {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    clip-path: polygon(0 0, 100% 0, 100% 70%, 0 100%);
    z-index: -1;
}

.header-deco::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M0 38.59l2.83-2.83 1.41 1.41L1.41 40H0v-1.41zM0 1.4l2.83 2.83 1.41-1.41L1.41 0H0v1.41z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.4;
}

/* 导航栏 */
.navbar {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* 主体内容 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.header {
    text-align: center;
    padding: 40px 0 60px;
    position: relative;
}

.title {
    font-size: 2.8rem;
    margin-bottom: 15px;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.subtitle {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
}

/* 内容卡片 */
.content-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 15px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.card h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.card h3 {
    font-size: 1.1rem;
    color: var(--accent);
    margin-bottom: 15px;
}

.card p {
    margin-bottom: 15px;
    color: var(--text-light);
    flex-grow: 1;
}

.poem {
    font-style: italic;
    padding: 20px;
    background: rgba(67, 97, 238, 0.05);
    border-radius: 10px;
    margin: 15px 0;
    position: relative;
    border-left: 3px solid var(--primary);
}

.poem::before {
    content: "" ";
 position: absolute;
    top: -15px;
    left: 10px;
    font-size: 5rem;
    color: rgba(67, 97, 238, 0.1);
    font-family: serif;
}

.poem-author {
    text-align: right;
    font-style: normal;
    font-size: 0.9rem;
    color: var(--text-light);
}

/* 工具区域 */
.tools-section {
    margin-top: 60px;
    margin-bottom: 40px;
    text-align: center;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 40px;
    color: var(--text-dark);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}

.tools-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.tool-card {
    flex: 0 0 300px;
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 15px var(--shadow);
    transition: all 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.tool-card .card-icon {
    color: var(--accent);
}

.tool-btn {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
    text-decoration: none;
}

.tool-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(67, 97, 238, 0.5);
}

/* 固定在右下角的工具入口 */
.floating-tool-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, var(--accent), #ff416c);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
    transition: all 0.3s ease;
    z-index: 50;
    text-decoration: none;
}

.floating-tool-btn:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.6);
}

/* 中部醒目的工具按钮 */
.cta-tool-btn {
    display: block;
    max-width: 400px;
    margin: 40px auto;
    text-align: center;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 20px 40px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(67, 97, 238, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta-tool-btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.5s ease;
    z-index: -1;
    opacity: 0;
}

.cta-tool-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(67, 97, 238, 0.6);
}

.cta-tool-btn:hover:before {
    opacity: 1;
    transform: scale(1.5);
}

.btn-icon {
    margin-right: 10px;
}

/* 底部备案信息 */
.footer {
    background: rgba(255, 255, 255, 0.9);
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    margin-top: 50px;
}

.footer a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--accent);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 15px;
    }

    .nav-links {
        width: 100%;
        justify-content: center;
    }

    .title {
        font-size: 2.2rem;
    }

    .card {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .nav-links {
        flex-wrap: wrap;
    }

    .title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.7rem;
    }

    .floating-tool-btn {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 1.2rem;
    }
}