/* 组件样式 */

/* 表单样式 */
.form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2c3e50;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e8ed;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: #f8f9fa;
}

.form-control:focus {
    outline: none;
    border-color: #3498db;
    background: white;
}

.form-control.error {
    border-color: #e74c3c;
}

.error-message {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-top: 5px;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* 按钮样式扩展 */
.btn-secondary {
    background: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

.btn-success {
    background: #27ae60;
    color: white;
}

.btn-success:hover {
    background: #229954;
}

.btn-danger {
    background: #e74c3c;
    color: white;
}

.btn-danger:hover {
    background: #c0392b;
}

.btn-outline {
    background: transparent;
    border: 2px solid #3498db;
    color: #3498db;
}

.btn-outline:hover {
    background: #3498db;
    color: white;
}

/* 卡片样式 */
.card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.card-header {
    padding: 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e1e8ed;
}

.card-body {
    padding: 20px;
}

.card-footer {
    padding: 20px;
    background: #f8f9fa;
    border-top: 1px solid #e1e8ed;
}

/* 消息样式 */
.message {
    padding: 15px 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    border-left: 4px solid;
}

.message-success {
    background: #d4edda;
    border-color: #27ae60;
    color: #155724;
}

.message-error {
    background: #f8d7da;
    border-color: #e74c3c;
    color: #721c24;
}

.message-warning {
    background: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

.message-info {
    background: #d1ecf1;
    border-color: #17a2b8;
    color: #0c5460;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    margin: 20px;
    padding: 30px;
    border-radius: 10px;
    max-width: 500px;
    width: 100%;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e1e8ed;
}

.modal-title {
    font-size: 1.5rem;
    color: #2c3e50;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #7f8c8d;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #e74c3c;
}

/* 表格样式 */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.table th,
.table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e1e8ed;
}

.table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.table tr:hover {
    background: #f8f9fa;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.pagination-item {
    padding: 8px 12px;
    border: 1px solid #e1e8ed;
    background: white;
    color: #2c3e50;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.pagination-item:hover,
.pagination-item.active {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

/* 标签样式 */
.tag {
    display: inline-block;
    padding: 4px 8px;
    background: #e1e8ed;
    color: #2c3e50;
    border-radius: 15px;
    font-size: 0.8rem;
    margin: 2px;
}

.tag-primary {
    background: #3498db;
    color: white;
}

.tag-success {
    background: #27ae60;
    color: white;
}

.tag-warning {
    background: #f39c12;
    color: white;
}

.tag-danger {
    background: #e74c3c;
    color: white;
}

/* 进度条样式 */
.progress {
    width: 100%;
    height: 10px;
    background: #e1e8ed;
    border-radius: 5px;
    overflow: hidden;
    margin: 10px 0;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #3498db, #2980b9);
    transition: width 0.3s ease;
}

/* 工具提示 */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: #2c3e50;
    color: white;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.8rem;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* 响应式组件 */
@media (max-width: 768px) {
    .form-container {
        padding: 20px;
        margin: 20px;
    }
    
    .modal-content {
        margin: 10px;
        padding: 20px;
    }
    
    .table {
        font-size: 0.9rem;
    }
    
    .table th,
    .table td {
        padding: 8px 10px;
    }
}

/* 服务背景样式 */
.carousel-bg-service {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.carousel-bg-service::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.service-title {
    font-size: 4rem;
    font-weight: 900;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.service-subtitle {
    font-size: 2rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.service-description {
    font-size: 1.2rem;
    color: #ffffff;
    margin-bottom: 30px;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    max-width: 600px;
}

.service-features {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.service-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.2);
    padding: 15px 20px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.service-feature:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.service-feature i {
    font-size: 1.5rem;
    color: #ffffff;
}

.service-feature span {
    color: #ffffff;
    font-weight: 500;
    font-size: 1rem;
}

/* 响应式服务背景 */
@media (max-width: 768px) {
    .service-title {
        font-size: 2.5rem;
    }
    
    .service-subtitle {
        font-size: 1.5rem;
    }
    
    .service-description {
        font-size: 1rem;
    }
    
    .service-features {
        gap: 15px;
    }
    
    .service-feature {
        padding: 10px 15px;
    }
    
    .service-feature i {
        font-size: 1.2rem;
    }
    
    .service-feature span {
        font-size: 0.9rem;
    }
}

/* 二级菜单和面包屑导航样式 */

/* 面包屑导航 */
.breadcrumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 15px 0;
    margin-top: 70px;
}

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

.breadcrumb-list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.breadcrumb-item:not(:last-child)::after {
    content: '>';
    margin: 0 10px;
    color: rgba(255, 255, 255, 0.6);
}

.breadcrumb-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-link:hover {
    color: white;
}

.breadcrumb-current {
    color: white;
    font-weight: 500;
}

/* 页面内导航 */
.page-nav {
    background: white;
    border-bottom: 1px solid #e9ecef;
    position: sticky;
    top: 70px;
    z-index: 999;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

.page-nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.page-nav-list::-webkit-scrollbar {
    display: none;
}

.page-nav-item {
    flex-shrink: 0;
}

.page-nav-link {
    display: block;
    padding: 15px 25px;
    color: #6c757d;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.page-nav-link:hover {
    color: #3498db;
    background: rgba(52, 152, 219, 0.05);
}

.page-nav-link.active {
    color: #3498db;
    border-bottom-color: #3498db;
}

.page-nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1) 0%, rgba(52, 152, 219, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.page-nav-link:hover::before {
    opacity: 1;
}

/* 内容区域样式 */
.content-section {
    padding: 40px 0;
}

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

/* 联系页面特定样式 */
.contact-sections {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.contact-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.contact-section-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px 30px;
    position: relative;
    overflow: hidden;
}

.contact-section-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.contact-section-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.contact-section-header p {
    margin: 8px 0 0 0;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.contact-section-content {
    padding: 30px;
}

/* 留言板特定样式 */
.message-sections {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.message-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.message-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.message-section-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px 30px;
    position: relative;
    overflow: hidden;
}

.message-section-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.message-section-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.message-section-header p {
    margin: 8px 0 0 0;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.message-section-content {
    padding: 30px;
}

/* 留言规则样式 */
.message-rules-section {
    margin-top: 40px;
}

.rules-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rules-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.rules-container h2 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px 30px;
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.rules-container h2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.rules-container h2 i {
    position: relative;
    z-index: 1;
    margin-right: 10px;
}

.rules-content {
    padding: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.rule-item {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid #3498db;
    transition: all 0.3s ease;
}

.rule-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.rule-item h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.rule-item h3 i {
    color: #3498db;
}

.rule-item ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rule-item ul li {
    padding: 8px 0;
    color: #6c757d;
    position: relative;
    padding-left: 20px;
}

.rule-item ul li::before {
    content: '•';
    color: #3498db;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .page-nav-list {
        padding: 0 10px;
    }
    
    .page-nav-link {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .contact-section-header,
    .message-section-header {
        padding: 20px 25px;
    }
    
    .contact-section-content,
    .message-section-content {
        padding: 25px;
    }
    
    .breadcrumb {
        padding: 10px 0;
    }
    
    .breadcrumb-item {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .page-nav-link {
        padding: 10px 15px;
        font-size: 13px;
    }
    
    .contact-section-header,
    .message-section-header {
        padding: 15px 20px;
    }
    
    .contact-section-content,
    .message-section-content {
        padding: 20px;
    }
}