/* 鄂渝科技官网样式表 - VI色彩方案 */

:root {
    /* 主色调 */
    --primary-color: #2E8B57;      /* 科技绿 */
    --secondary-color: #6A6A6A;    /* 大地灰 */
    --accent-color: #9ACD32;       /* 活力黄绿 */
    --white-color: #FFFFFF;        /* 纯净白 */
    
    /* 辅助色系 */
    --light-bg: #F5F5F5;          /* 浅灰背景 */
    --dark-text: #333333;         /* 深灰文字 */
    --border-color: #E0E0E0;      /* 边框灰 */
    --hover-color: #267349;       /* 主色调悬停 */
    
    /* 其他 */
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --radius: 4px;
    --radius-lg: 8px;
}

/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Microsoft YaHei', 'Segoe UI', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark-text);
    background-color: var(--white-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--hover-color);
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 工具类 */
.text-primary { color: var(--primary-color); }
.text-secondary { color: var(--secondary-color); }
.text-accent { color: var(--accent-color); }
.text-white { color: var(--white-color); }

.bg-primary { background-color: var(--primary-color); }
.bg-secondary { background-color: var(--secondary-color); }
.bg-light { background-color: var(--light-bg); }
.bg-white { background-color: var(--white-color); }

.section-padding {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--dark-text);
    margin-bottom: 15px;
}

.section-header p {
    color: var(--secondary-color);
    max-width: 600px;
    margin: 0 auto;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--radius);
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.btn-primary:hover {
    background-color: var(--hover-color);
    color: var(--white-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white-color);
}

.btn-secondary:hover {
    background-color: #5a5a5a;
    color: var(--white-color);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.btn-light {
    background-color: var(--white-color);
    color: var(--primary-color);
}

.btn-light:hover {
    background-color: var(--light-bg);
    color: var(--primary-color);
}

/* 顶部栏 */
.top-bar {
    background-color: var(--secondary-color);
    color: var(--white-color);
    padding: 10px 0;
    font-size: 0.9rem;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info span {
    margin-right: 20px;
}

.contact-info i {
    margin-right: 5px;
}

.social-links a {
    color: var(--white-color);
    margin-left: 15px;
    font-size: 1.1rem;
}

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

/* 导航栏 */
.navbar {
    background-color: var(--white-color);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.logo {
    height: 40px;
    margin-right: 10px;
}

.site-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

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

.nav-item a {
    color: var(--dark-text);
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}

.nav-item a:hover,
.nav-item.active a {
    color: var(--primary-color);
}

.nav-item.active a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark-text);
}

/* 英雄区域 */
.hero {
    background: linear-gradient(135deg, var(--light-bg) 0%, var(--white-color) 100%);
    padding: 100px 0;
}

.hero .container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: 3rem;
    color: var(--dark-text);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.hero-image {
    flex: 1;
}

.hero-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* 关于我们区域 */
.about-section {
    padding: 80px 0;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h3 {
    color: var(--dark-text);
    margin: 20px 0 10px;
    font-size: 1.3rem;
}

.about-text ul {
    margin: 15px 0 25px;
}

.about-text li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.about-text li::before {
    content: '✓';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background-color: var(--light-bg);
    border-radius: var(--radius);
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-label {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

/* 服务区域 */
.services-section {
    background-color: var(--light-bg);
    padding: 80px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.service-card {
    background-color: var(--white-color);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

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

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--dark-text);
}

.service-card p {
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.service-link {
    color: var(--primary-color);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

.service-link:hover {
    color: var(--hover-color);
    gap: 10px;
}

.section-cta {
    text-align: center;
}

/* 特色功能区域 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-item {
    text-align: center;
    padding: 30px 20px;
    background-color: var(--white-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature-item:hover {
    box-shadow: var(--shadow-lg);
}

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

.feature-item h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--dark-text);
}

/* 合作伙伴区域 */
.partners-section {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.partners-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    align-items: center;
}

.partner-item {
    background-color: var(--white-color);
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
}

.partner-item img {
    max-height: 60px;
    width: auto;
}

/* 行动号召区域 */
.cta-section {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 80px 0;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* 页脚 */
.footer {
    background-color: var(--secondary-color);
    color: var(--white-color);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--white-color);
}

.footer-section p {
    opacity: 0.8;
    margin-bottom: 20px;
    line-height: 1.8;
}

.footer-contact p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-section ul a:hover {
    color: var(--white-color);
    padding-left: 5px;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white-color);
    font-size: 1.2rem;
}

.footer-social a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.newsletter-form {
    display: flex;
    margin-top: 15px;
}

.newsletter-form input {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-radius: var(--radius) 0 0 var(--radius);
    font-size: 0.9rem;
}

.newsletter-form button {
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: var(--white-color);
    border: none;
    border-radius: 0 var(--radius) var(--radius) 0;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background-color: var(--hover-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
    font-size: 0.9rem;
}

.footer-bottom p {
    margin-bottom: 5px;
}

/* 页面头部 */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--hover-color) 100%);
    color: var(--white-color);
    padding: 80px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* 表单样式 */
.form-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--white-color);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark-text);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(46, 139, 87, 0.1);
}

.form-submit {
    text-align: center;
}

/* 时间线样式 */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--border-color);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-year {
    flex: 0 0 100px;
    text-align: center;
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--primary-color);
    background-color: var(--white-color);
    padding: 10px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    z-index: 1;
}

.timeline-content {
    flex: 1;
    padding: 20px;
    margin: 0 30px;
    background-color: var(--white-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.timeline-content h3 {
    color: var(--dark-text);
    margin-bottom: 10px;
}

/* 卡片网格 */
.services-detail,
.partners-grid,
.team-grid,
.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-detail-item,
.partner-card,
.team-member,
.case-item {
    background-color: var(--white-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

.service-detail-item:hover,
.partner-card:hover,
.team-member:hover,
.case-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-detail-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background-color: var(--light-bg);
}

.service-detail-content {
    padding: 20px;
}

.service-features {
    margin: 20px 0;
}

.service-features h4 {
    margin-bottom: 10px;
    color: var(--dark-text);
}

.service-features ul {
    margin-left: 20px;
}

.service-features li {
    margin-bottom: 5px;
    list-style: disc;
}

.partner-logo {
    padding: 30px;
    background-color: var(--light-bg);
    text-align: center;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-logo img {
    max-height: 100px;
    width: auto;
}

.partner-info {
    padding: 20px;
}

.team-member {
    text-align: center;
}

.member-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin: 20px auto;
    border: 5px solid var(--light-bg);
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-title {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 10px;
}

.case-image {
    height: 200px;
    overflow: hidden;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.case-item:hover .case-image img {
    transform: scale(1.05);
}

.case-content {
    padding: 20px;
}

.case-tag {
    display: inline-block;
    padding: 5px 15px;
    background-color: var(--light-bg);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* 招聘页面特殊样式 */
.recruitment-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--hover-color) 100%);
    color: var(--white-color);
    padding: 100px 0;
    text-align: center;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 40px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

.advantages-grid,
.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.advantage-item,
.support-item {
    text-align: center;
    padding: 30px 20px;
    background-color: var(--white-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

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

/* 新闻页面样式 */
.news-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    padding: 40px 0;
}

.news-sidebar {
    background-color: var(--white-color);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.sidebar-section {
    margin-bottom: 30px;
}

.sidebar-section h3 {
    color: var(--dark-text);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--light-bg);
}

.news-categories li {
    margin-bottom: 10px;
}

.news-categories a {
    color: var(--secondary-color);
    display: block;
    padding: 8px 0;
    transition: var(--transition);
}

.news-categories a:hover,
.news-categories .active a {
    color: var(--primary-color);
    padding-left: 10px;
}

.hot-news li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.hot-news a {
    display: block;
}

.hot-news-title {
    display: block;
    color: var(--dark-text);
    font-weight: 500;
    margin-bottom: 5px;
}

.hot-news-date {
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.news-item {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    background-color: var(--white-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    overflow: hidden;
    transition: var(--transition);
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.news-image {
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.news-item:hover .news-image img {
    transform: scale(1.05);
}

.news-content {
    padding: 20px 20px 20px 0;
}

.news-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.news-top {
    color: var(--accent-color);
    font-weight: bold;
}

.news-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--dark-text);
}

.news-excerpt {
    color: var(--secondary-color);
    margin-bottom: 15px;
    line-height: 1.6;
}

.news-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.news-readmore {
    color: var(--primary-color);
    font-weight: 500;
}

.news-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
}

.page-number,
.page-prev,
.page-next {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 15px;
    background-color: var(--white-color);
    color: var(--dark-text);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.page-number:hover,
.page-prev:hover,
.page-next:hover {
    background-color: var(--light-bg);
}

.page-number.active {
    background-color: var(--primary-color);
    color: var(--white-color);
}

/* 消息提示样式 */
.flash-messages {
    padding: 15px 0;
}

.alert {
    padding: 12px 20px;
    border-radius: var(--radius);
    margin-bottom: 10px;
    border: 1px solid transparent;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border-color: #ffeaa7;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border-color: #bee5eb;
}