/* 全局样式 */
:root {
    --primary-color: #0056a4;
    --secondary-color: #004080;
    --accent-color: #00a0e9;
    --text-color: #333;
    --light-gray: #f8f9fa;
    --medium-gray: #e9ecef;
    --dark-gray: #6c757d;
    --white: #fff;
    --success: #28a745;
    --warning: #ffc107;
    --error: #dc3545;
    --border-radius: 0;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    --transition-speed: 0.25s;
    --font-primary: 'Noto Sans SC', 'Microsoft YaHei', 'Segoe UI', sans-serif;
    --font-heading: 'Noto Sans SC', 'Microsoft YaHei', 'Segoe UI', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-gray);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

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

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* 头部样式 */
header {
    background-color: var(--white);
    box-shadow: var(--box-shadow);
    padding: 0;
    margin-bottom: 0;
    color: var(--text-color);
    position: relative;
    border-bottom: 5px solid var(--accent-color);
}

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 50px;
    margin-right: 15px;
}

.site-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
    margin: 0;
}

.site-subtitle {
    font-size: 14px;
    color: var(--dark-gray);
    margin-top: 5px;
}

/* 导航样式 */
.main-nav {
    background-color: var(--primary-color);
    margin: 0;
    padding: 0;
}

.main-nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.main-nav li {
    margin: 0;
    position: relative;
}

.main-nav a {
    font-weight: 500;
    padding: 15px 25px;
    color: var(--white);
    transition: all var(--transition-speed);
    position: relative;
    letter-spacing: 0.5px;
    font-size: 15px;
    display: block;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.main-nav a:hover {
    background-color: var(--secondary-color);
    color: var(--white);
}

.main-nav a.active {
    background-color: var(--accent-color);
    color: var(--white);
}

.main-nav a i {
    margin-right: 8px;
}

/* 主内容区域 */
.main-content {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 40px;
    margin-top: 30px;
    margin-bottom: 40px;
    transition: all var(--transition-speed);
    position: relative;
    flex: 1 0 auto;
    min-height: calc(100vh - 200px); /* 减去头部和页脚的高度 */
}

/* 首页横幅 */
.banner {
    background-color: var(--primary-color);
    background-image: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 60px 0;
    margin-bottom: 30px;
    text-align: center;
}

.banner-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
}

.banner-text {
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

.banner-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.section-title {
    font-size: 22px;
    margin-bottom: 30px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--medium-gray);
    color: var(--primary-color);
    font-weight: 600;
    position: relative;
    font-family: var(--font-heading);
}

.section-title:after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
}

/* 表单样式 */
.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group.focused label {
    color: var(--accent-color);
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--primary-color);
    font-size: 15px;
}

.form-note {
    margin-top: 10px;
    font-size: 13px;
    color: var(--dark-gray);
    line-height: 1.5;
    padding-left: 5px;
    border-left: 2px solid var(--medium-gray);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--medium-gray);
    border-radius: var(--border-radius);
    font-size: 15px;
    transition: all var(--transition-speed);
    box-shadow: none;
    background-color: var(--white);
    color: var(--text-color);
}

.form-control:focus {
    border-color: var(--accent-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 160, 233, 0.1);
    background-color: var(--white);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
    line-height: 1.6;
}

/* 联系表单 */
.contact-form {
    background-color: var(--white);
    padding: 30px;
    box-shadow: var(--box-shadow);
}

.contact-info {
    margin-bottom: 30px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.contact-info-icon {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.contact-info-text {
    line-height: 1.5;
}

.contact-info-text h4 {
    margin: 0 0 5px;
    color: var(--primary-color);
    font-size: 16px;
}

.contact-info-text p {
    margin: 0;
    color: var(--dark-gray);
}

.contact-form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.contact-form-col {
    flex: 1;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    background-color: var(--accent-color);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: all var(--transition-speed);
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    text-transform: uppercase;
}

.btn:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.1);
    transition: width 0.3s ease;
    z-index: -1;
}

.btn:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn:hover:before {
    width: 100%;
}

.btn:active {
    transform: translateY(1px);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

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

.btn-secondary:hover {
    background-color: #5a6268;
}

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

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

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

.btn-danger {
    background-color: var(--error);
}

.btn-danger:hover {
    background-color: #bd2130;
}

/* 消息提示 */
.message {
    padding: 16px 20px;
    margin-bottom: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    position: relative;
    padding-left: 60px;
    border: 1px solid transparent;
}

.message::before {
    font-family: 'Arial', sans-serif;
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
}

.success-message {
    background-color: rgba(40, 167, 69, 0.05);
    color: #155724;
    border-color: rgba(40, 167, 69, 0.2);
}

.success-message::before {
    content: "✓";
    color: var(--success);
}

.error-message {
    background-color: rgba(220, 53, 69, 0.05);
    color: #721c24;
    border-color: rgba(220, 53, 69, 0.2);
    display: flex;
    align-items: center;
    padding: 20px;
    margin: 20px 0;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.error-message .error-icon {
    margin-right: 20px;
    font-size: 24px;
    color: var(--error);
    flex-shrink: 0;
}

.error-message .error-content h4 {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--error);
}

.error-message .error-content p {
    margin: 0;
    line-height: 1.5;
}

.error-message::before {
    content: none;
}

.info-message {
    background-color: rgba(52, 152, 219, 0.05);
    color: #0c5460;
    border-color: rgba(52, 152, 219, 0.2);
}

.info-message::before {
    content: "i";
    color: var(--accent-color);
}

/* 页脚样式 */
footer {
    background-color: var(--primary-color);
    padding: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin-top: auto;
    position: relative;
    flex-shrink: 0;
    bottom: 0;
    width: 100%;
}

.footer-bottom {
    background-color: var(--primary-color);
    padding: 20px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
}

.footer-column {
    flex: 1;
    min-width: 200px;
    margin-bottom: 20px;
    padding: 0 15px;
}

.footer-column h3 {
    color: var(--white);
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s;
    display: block;
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-contact-item {
    display: flex;
    margin-bottom: 15px;
}

.footer-contact-icon {
    margin-right: 10px;
    color: var(--accent-color);
    width: 20px;
    text-align: center;
}

.footer-copyright {
    margin: 0;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        margin-top: 15px;
        justify-content: center;
    }
    
    .footer-contact-item {
        justify-content: center;
    }
}

/* 栅格系统 */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-md-8 {
    width: 66.66%;
    padding: 0 15px;
}

.col-md-4 {
    width: 33.33%;
    padding: 0 15px;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .col-md-8, .col-md-4 {
        width: 100%;
    }
    
    .banner {
        padding: 40px 0;
    }
    
    .banner-title {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .main-nav ul {
        flex-direction: column;
    }
    
    .main-nav li {
        margin-right: 0;
        width: 100%;
    }
    
    .main-nav a {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .header-main {
        flex-direction: column;
        text-align: center;
    }
    
    .logo-container {
        justify-content: center;
        margin-bottom: 15px;
    }
    
    .site-title:after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .main-content {
        padding: 20px;
    }
    
    .btn {
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }
    
    .banner-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .contact-form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .receipt {
        padding: 15px;
    }
    
    .receipt-number {
        font-size: 18px;
        padding: 8px;
    }
    
    .site-title {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 15px;
    }
    
    .form-control {
        padding: 10px;
    }
    
    .btn {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .section-title {
        font-size: 18px;
    }
    
    .detail-label {
        display: block;
        width: 100%;
        margin-bottom: 5px;
    }
    
    .banner-title {
        font-size: 24px;
    }
    
    .footer-column {
        padding: 0 5px;
    }
    
    .footer-top {
        padding: 20px 0;
    }
    
    footer {
        font-size: 12px;
    }
}

/* 查询结果样式 */
.query-result {
    margin-top: 20px;
    padding: 20px;
    background-color: var(--light-gray);
    border-radius: 4px;
}

.message-details {
    margin-bottom: 20px;
}

.message-details .detail-item {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--medium-gray);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.message-details .detail-label {
    font-weight: bold;
    display: inline-block;
    width: 100px;
}

.detail-item span {
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    display: inline-block;
}

.message-reply {
    background-color: #f0f8ff;
    padding: 15px;
    border-left: 4px solid var(--primary-color);
    margin-top: 20px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.message-reply-title {
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.message-reply-content {
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

/* 关于我们页面样式 */
.about-section {
    line-height: 1.8;
}

.about-section p {
    margin-bottom: 20px;
}

.contact-info {
    background-color: var(--light-gray);
    padding: 20px;
    border-radius: 4px;
    margin-top: 20px;
}

.contact-info p {
    margin-bottom: 10px;
}

/* 文件上传样式 */
.file-input-wrapper {
    position: relative;
    overflow: hidden;
    display: inline-block;
    cursor: pointer;
    width: 100%;
}

.file-input-wrapper input[type=file] {
    font-size: 100px;
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.file-input-name {
    margin-top: 10px;
    font-size: 14px;
    color: var(--dark-gray);
}

/* 回执单样式 */
.receipt {
    background-color: var(--white);
    border: 1px solid var(--medium-gray);
    padding: 35px;
    margin-top: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--box-shadow);
    position: relative;
    overflow: hidden;
}

.receipt::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--accent-color), var(--primary-color));
}

.receipt-number {
    font-size: 22px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 25px;
    padding: 15px;
    border: 2px dashed var(--accent-color);
    display: inline-block;
    border-radius: var(--border-radius);
    background-color: rgba(52, 152, 219, 0.05);
    letter-spacing: 1px;
}

.receipt-info {
    margin-bottom: 30px;
    line-height: 1.8;
}

.receipt-info p {
    margin-bottom: 10px;
}

.receipt-note {
    font-size: 14px;
    color: var(--dark-gray);
    background-color: var(--light-gray);
    padding: 15px;
    border-radius: var(--border-radius);
    margin: 25px 0;
    line-height: 1.6;
    border-left: 3px solid var(--accent-color);
    text-align: left;
}
