﻿/* modern.css - 余姚专题现代化UI样式 */
@charset "utf-8";

/* 颜色定义 - 余姚主题：银灰蓝调与青绿韵律 */
:root {
    /* 主色调 - 冷蓝银灰 */
    --primary-green: #3a6b8c;      /* 青蓝色 - 匹配头图天空主色 */
    --secondary-green: #4a8ab0;    /* 中天蓝 */
    --accent-green: #8cb8d4;       /* 淡蓝灰 */
    --light-green: #e8f0f6;        /* 极浅蓝背景 */

    /* 金色系 - 柔和暖灰金 */
    --primary-gold: #8a7a60;       /* 暖灰金 */
    --accent-gold: #a89070;        /* 柔和棕金 */
    --light-gold: #f8f4ee;         /* 浅暖背景 */

    /* 辅助色 */
    --urban-gray: #5a6a78;
    --modern-gray: #7a8a98;
    --light-gray: #e8ecf0;
    --white: #ffffff;

    /* 强调色 */
    --accent-blue: #5a9ac0;        /* 亮蓝 */
    --accent-orange: #b08a50;      /* 暖棕橙 */

    /* 文字颜色 */
    --text-dark: #2a3a48;
    --text-medium: #4a5a68;
    --text-light: #7a8a98;

    /* 阴影 */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* 圆角 */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;

    /* 过渡动画 */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* 全局重置与基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
li {
    list-style: none;
}
a {
    text-decoration: none;
}
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--light-gray);
    overflow-x: hidden;
    background: #dce0e6;
}

/* 容器系统 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 顶部导航栏 */
.navbar-modern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.navbar-modern.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

/* Logo区域 */
.navbar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 20px;
    box-shadow: var(--shadow-md);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-green);
    line-height: 1;
}

.logo-subtitle {
    font-size: 11px;
    color: var(--text-light);
    letter-spacing: 1px;
    margin-top: 3px;
}

/* 导航菜单 */
.navbar-menu {
    display: flex;
    gap: 8px;
    list-style: none;
    align-items: center;
}

.navbar-menu a {
    text-decoration: none;
    color: var(--text-medium);
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    font-size: 15px;
}

.navbar-menu a:hover {
    color: var(--primary-green);
    background: var(--light-green);
}

.navbar-menu a.active {
    color: var(--primary-green);
    background: var(--light-green);
    font-weight: 600;
}

/* 英雄区域 */
.hero-modern {
    position: relative;
    padding-top: 73px;
    /* padding: 160px 0 100px; */
    background: linear-gradient(135deg, #c0d8e8 0%, #a0c8e0 30%, #90b8d8 60%, #88b0d0 100%);
    color: white;
    overflow: hidden;
}

.hero-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background: radial-gradient(ellipse at 30% 50%, rgba(255,255,255,0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 80%, rgba(232,169,58,0.12) 0%, transparent 50%); */
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 860px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-tag {
    display: inline-block;
    padding: 5px 16px;
    background: rgba(168, 144, 112, 0.25);
    border: 1px solid rgba(168, 144, 112, 0.6);
    border-radius: var(--radius-full);
    color: #c0a878;
    font-size: 13px;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 46px;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.hero-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* 按钮 */
.btn-modern {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 15px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(to right, var(--primary-green), var(--secondary-green));
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-gold {
    background: linear-gradient(to right, var(--primary-gold), var(--accent-gold));
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.6);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.15);
    border-color: white;
    transform: translateY(-2px);
}

/* 章节标题 */
.section-title {
    text-align: center;
    margin: 80px 0 20px;
}

.section-title h2 {
    font-size: 30px;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-green), var(--accent-gold));
    border-radius: var(--radius-full);
}

.section-title p {
    color: var(--text-light);
    margin-top: 18px;
    font-size: 15px;
}

/* 卡片组件 */
.card-modern {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: all var(--transition-normal);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.card-modern:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-green);
}

.card-header {
    padding: 20px 20px 0;
    border-bottom: 2px solid var(--light-green);
    padding-bottom: 16px;
    margin-bottom: 0;
}

.card-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 6px;
}

.card-title-line {
    display: flex;
    align-items: center;
    gap: 10px;
    /* margin-bottom: 8px; */
}

.card-title-line::before {
    content: '';
    width: 4px;
    height: 22px;
    background: linear-gradient(to bottom, var(--primary-green), var(--accent-gold));
    border-radius: 2px;
    flex-shrink: 0;
}

.card-subtitle {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 0;
}

.card-body {
    padding: 24px;
}

/* 选项卡 */
.tabs-modern {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.tab-modern {
    padding: 10px 22px;
    background: var(--white);
    border: 2px solid rgba(58, 107, 140, 0.2);
    border-radius: var(--radius-md);
    color: var(--text-medium);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 14px;
}

.tab-modern:hover {
    border-color: var(--primary-green);
    color: var(--primary-green);
    transform: translateY(-2px);
}

.tab-modern.active {
    background: linear-gradient(to right, var(--primary-green), var(--secondary-green));
    color: white;
    border-color: transparent;
    box-shadow: var(--shadow-md);
}

.tab-content-modern {
    display: none;
    animation: fadeIn var(--transition-normal);
}

.tab-content-modern.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 网格系统 */
.grid-modern {
    display: grid;
    gap: 24px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-6 { grid-template-columns: repeat(6, 1fr); }
.grid-8 { grid-template-columns: repeat(8, 1fr); }
.grid-12 { grid-template-columns: repeat(12, 1fr); }

/*布局板式*/
.simple {
    display: flex;
    flex-wrap: wrap;
    align-content: space-between;
    justify-content: space-between;
}
.ju {
    justify-content: space-around;
}
.simple .cen {
    align-self: center;
}
/* 徽章 */
.badge-modern {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.badge-green {
    background: linear-gradient(to right, var(--primary-green), var(--secondary-green));
    color: white;
}

.badge-gold {
    background: linear-gradient(to right, var(--primary-gold), var(--accent-gold));
    color: white;
}

.badge-blue {
    background: linear-gradient(to right, #4a8ab0, #5a9ac0);
    color: white;
}

.badge-orange {
    background: linear-gradient(to right, #8a7a60, #b08a50);
    color: white;
}

/* 图片容器 */
.image-modern {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.image-modern img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform var(--transition-normal);
}

.image-modern:hover img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.45), transparent);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    color: white;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.image-modern:hover .image-overlay {
    opacity: 1;
}

/* 荣誉列表 */
.honor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}

.honor-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--light-green);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--primary-green);
    font-size: 13px;
    color: var(--text-dark);
    transition: all var(--transition-fast);
}

.honor-item:hover {
    background: #d0e0ec;
    transform: translateX(4px);
}

.honor-item::before {
    content: '✦';
    color: var(--accent-gold);
    font-size: 12px;
    flex-shrink: 0;
}

/* 数据展示 */
.stat-box {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, var(--light-green), #ecf0f4);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(58, 107, 140, 0.18);
}

.stat-num {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary-green);
    line-height: 1;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 13px;
    color: var(--text-light);
}

/* 段落正文 */
.znr {
    font-size: 15px;
    line-height: 1.9;
    color: var(--text-dark);
}

.znr p {
    margin-bottom: 10px;
    text-indent: 32px;
}

.znr p:last-child {
    margin-bottom: 0;
    /* text-indent: 32px; */
}

.intro-quote {
    font-size: 16px;
    line-height: 2;
    color: var(--text-dark);
    border-left: 4px solid var(--primary-green);
    padding-left: 20px;
    text-indent: 32px;
}

/* 折叠面板 */
.accordion-modern {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: 12px;
    overflow: hidden;
    border: 1px solid rgba(58, 107, 140, 0.1);
}

.accordion-header {
    padding: 18px 24px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--white);
    transition: all var(--transition-fast);
}

.accordion-header:hover {
    background: var(--light-green);
}

.accordion-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.accordion-title::before {
    content: '';
    width: 4px;
    height: 18px;
    background: var(--primary-green);
    border-radius: 2px;
}

.accordion-icon {
    color: var(--primary-green);
    transition: transform var(--transition-normal);
    font-size: 14px;
}

.accordion-modern.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.accordion-modern.active .accordion-content {
    padding: 0 24px 24px;
    max-height: none;
}
/* 卫星图 */
.satellite {
    width: 100%;
    height: 550px;
    border: none;
    border-radius: var(--radius-lg);
}
/* 表格 */
.table-modern {
    width: 100%;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.table-modern table {
    width: 100%;
    border-collapse: collapse;
}

.table-modern thead {
    background: linear-gradient(to right, var(--primary-green), var(--secondary-green));
    color: white;
}

.table-modern th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
}

.table-modern tbody tr {
    background: var(--white);
    transition: all var(--transition-fast);
}

.table-modern tbody tr:nth-child(even) {
    background: var(--light-green);
}

.table-modern tbody tr:hover {
    background: #c5d3ee;
}

.table-modern td {
    padding: 14px 16px;
    border-top: 1px solid rgba(143, 168, 216, 0.5);
    font-size: 14px;
}
/* 现代化的图片容器 */
.image-modern {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.image-modern img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform var(--transition-normal);
}

.image-modern:hover img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.4), transparent);
    display: flex;
    align-items: flex-end;
    padding: 24px;
    color: white;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.image-modern:hover .image-overlay {
    opacity: 1;
}

/* 表单 */
.input-modern {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid rgba(58, 107, 140, 0.2);
    border-radius: var(--radius-md);
    font-size: 15px;
    color: var(--text-dark);
    background: var(--white);
    transition: all var(--transition-fast);
}

.input-modern:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(58, 107, 140, 0.1);
}

.input-modern::placeholder {
    color: var(--text-light);
}

/* 页脚 */
.footer-modern {
    background: linear-gradient(135deg, #2a4a5e 0%, #3a6b8c 50%, #4a7a9c 100%);
    color: white;
    padding: 70px 0 36px;
    position: relative;
    overflow: hidden;
}

.footer-modern::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse at 80% 20%, rgba(168,144,112,0.1) 0%, transparent 50%);
}

.footer-container {
    position: relative;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
    position: relative;
    padding-bottom: 12px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 36px; height: 3px;
    background: var(--accent-gold);
    border-radius: var(--radius-full);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
    color: rgba(255,255,255,0.82);
    font-size: 14px;
    line-height: 1.7;
}

.footer-links a {
    color: rgba(255,255,255,0.82);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-links a:hover { color: white; }

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.social-icon {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: all var(--transition-fast);
}

.social-icon:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-3px);
}

.social-icon img {
    width: 100%;
    height: auto;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.12);
    padding-top: 26px;
    text-align: center;
    color: rgba(255,255,255,0.65);
    font-size: 13px;
}

/* 亮点块 */
.highlight-block {
    padding: 20px 24px;
    background: linear-gradient(135deg, var(--light-green), #ecf0f4);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--primary-green);
    margin-bottom: 16px;
}

.highlight-block h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 8px;
}

.highlight-block p {
    font-size: 14px;
    color: var(--text-medium);
    line-height: 1.8;
}

/* 进度条 */
.progress-modern {
    width: 100%;
    height: 8px;
    background: rgba(26,68,148,0.15);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(to right, var(--primary-green), var(--secondary-green));
    border-radius: var(--radius-full);
    transition: width var(--transition-slow);
}
/* 右侧导航栏 */
.outline{
    position: fixed;
    bottom: 50%;
    right: 0;
    padding: 5px 10px;
    background-color: #f0f2f5;
    box-shadow: 0 4px 12px rgba(0,0,0,.5);
    z-index: 3;
    font-size:1.0em;
}
.outline__item{
    display:block;
    margin-top:5px;
    padding:6px 8px;
    height: 41px;
    line-height: 26px;
    background: linear-gradient(to right, var(--primary-green), var(--secondary-green));
    color: white;
    border: none;
    border-radius: 5%;
    font-size: 18px;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.outline__item:first-child{
    border: none;
}
.outline__item_status_active{
    color: #fff;
}
/* 右侧导航栏动画效果 */
.outline{
    transition: all 1s;
    opacity: 0;
    transform: translate(100%,0);
}
.outline_status_in{
    opacity: 1;
    transform: translate(0,0);
}
a[href="http://www.soudi.cn"] {
    color: #fff;
}

/* 回到顶部按钮 */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 20px;
    width: 106px;
    height: 46px;
    background: linear-gradient(to right, var(--primary-green), var(--secondary-green));
    color: white;
    border: none;
    border-radius: 5%;
    font-size: 20px;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

#back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

table {
    border-collapse: collapse;
    width: 100%;
    font-family: "Microsoft YaHei", sans-serif;
}
th, td {
    border: 1px solid #ccc;
    padding: 8px;
    text-align: center;
}
th {
    background-color: var(--primary-green);
    color: white;
}
.merge-cell {
    background-color: #dce5f5;
}
.hcxz{
    color: #586c6e;
}
.hcxz>p{
    padding: 15px 0;
    font-family: "楷体", serif;
    font-size: 22px;
    text-align: center;
}
.hcxz>p>b{
    padding: 5px 8px;
    color: #2b2a2a;
    background: #e2c3a2;
    border-radius:8px;
    box-shadow: 1px 1px 8px #395f78;
}
.hcxz>p>b:hover{
    color: #fff;
    background: #ee5454;
    transition: all .3s ease .1s;
}
/* 响应式 */
@media (max-width: 768px) {
    .navbar-container {
        flex-direction: column;
        gap: 12px;
        padding: 12px 0;
    }

    .navbar-menu {
        gap: 4px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-title { font-size: 30px; }
    .hero-subtitle { font-size: 15px; }

    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }

    .tabs-modern { flex-direction: column; }

    .footer-grid { grid-template-columns: 1fr; }

    .honor-grid { grid-template-columns: 1fr; }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .grid-3, .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}
