/* 常州红发再生资源有限公司 - 通用样式 */

/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', 'SimHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
    min-height: 100vh;
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* 导航栏 */
.navbar {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c5530;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
    display: block;
}

.nav-menu a:hover {
    color: #2c5530;
}

/* 按钮样式 - 统一白色背景黑色文字，悬停时反转 */
.btn {
    display: inline-block;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin: 5px;
    border: 2px solid #333;
    cursor: pointer;
    font-size: 1rem;
    text-align: center;
    line-height: 1.4;
    background: #fff;
    color: #333;
}

.btn:hover {
    background: #333;
    border-color: #333;
    color: #fff;
    text-decoration: none;
}

.btn-primary {
    background: #fff;
    color: #333;
    border-color: #333;
}

.btn-primary:hover {
    background: #333;
    border-color: #333;
    color: #fff;
}

.btn-outline {
    background: #fff;
    color: #333;
    border-color: #333;
}

.btn-outline:hover {
    background: #333;
    color: #fff;
    border-color: #333;
}

.btn-light {
    background: #fff;
    color: #333;
    border-color: #333;
}

.btn-light:hover {
    background: #333;
    border-color: #333;
    color: #fff;
}

.btn-success {
    background: #fff;
    color: #333;
    border-color: #333;
}

.btn-success:hover {
    background: #333;
    border-color: #333;
    color: #fff;
}

.btn-danger {
    background: #fff;
    color: #333;
    border-color: #333;
}

.btn-danger:hover {
    background: #333;
    border-color: #333;
    color: #fff;
}

.btn-warning {
    background: #fff;
    color: #333;
    border-color: #333;
}

.btn-warning:hover {
    background: #333;
    border-color: #333;
    color: #fff;
}

.btn-info {
    background: #fff;
    color: #333;
    border-color: #333;
}

.btn-info:hover {
    background: #333;
    border-color: #333;
    color: #fff;
}

/* 新增按钮样式 */
.btn-secondary {
    background: #fff;
    color: #333;
    border-color: #333;
}

.btn-secondary:hover {
    background: #333;
    border-color: #333;
    color: #fff;
}

.btn-dark {
    background: #fff;
    color: #333;
    border-color: #333;
}

.btn-dark:hover {
    background: #333;
    border-color: #333;
    color: #fff;
}

.btn-slate {
    background: #fff;
    color: #333;
    border-color: #333;
}

.btn-slate:hover {
    background: #333;
    border-color: #333;
    color: #fff;
}

.btn-blue {
    background: #fff;
    color: #333;
    border-color: #333;
}

.btn-blue:hover {
    background: #333;
    border-color: #333;
    color: #fff;
}

/* 英雄区域 */
.hero {
    background: linear-gradient(135deg, #2c5530, #4a7c59);
    color: white;
    padding: 100px 0;
    text-align: center;
    width: 100%;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
}

/* 页面标题 */
.page-header {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 80px 0;
    text-align: center;
    width: 100%;
}

.page-title {
    font-size: 2.5rem;
    color: #2c5530;
    margin-bottom: 1rem;
    font-weight: bold;
}

.page-subtitle {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* 章节样式 */
.section {
    padding: 80px 0;
    width: 100%;
}

.section-light {
    background: #f8f9fa;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: #2c5530;
    margin-bottom: 3rem;
    font-weight: bold;
}

/* 网格布局 */
.grid {
    display: grid;
    gap: 2rem;
    width: 100%;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* 卡片样式 */
.card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.card-header {
    background: #2c5530;
    color: white;
    padding: 1.5rem;
    font-weight: bold;
    font-size: 1.1rem;
}

.card-body {
    padding: 2rem;
}

.card-footer {
    background: #f8f9fa;
    padding: 1rem 2rem;
    border-top: 1px solid #e9ecef;
}

/* 特色卡片 */
.feature-card {
    text-align: center;
    padding: 2.5rem 2rem;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: block;
}

.feature-card h3,
.feature-card h5 {
    color: #2c5530;
    margin-bottom: 1rem;
    font-weight: bold;
}

/* 服务特色区域 */
.features {
    padding: 80px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* 价格展示区域 */
.prices {
    background: #f8f9fa;
    padding: 80px 0;
}

.price-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

/* 价格卡片 */
.price-card {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    border-left: 5px solid #2c5530;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.price-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.price-card h3,
.price-card h5 {
    color: #2c5530;
    margin-bottom: 1rem;
    font-weight: bold;
}

.price {
    font-size: 1.8rem;
    font-weight: bold;
    color: #2c5530;
    margin-top: 1rem;
}

/* 表单样式 */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fff;
}

.form-control:focus {
    outline: none;
    border-color: #2c5530;
    box-shadow: 0 0 0 3px rgba(44, 85, 48, 0.1);
}

.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 1rem;
    background: #fff;
    cursor: pointer;
}

.form-select:focus {
    outline: none;
    border-color: #2c5530;
    box-shadow: 0 0 0 3px rgba(44, 85, 48, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* 提示信息 */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 1px solid transparent;
    font-weight: 500;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border-color: #ffeaa7;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border-color: #bee5eb;
}

/* 徽章 */
.badge {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
    font-weight: bold;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-primary { background: #2c5530; color: white; }
.badge-success { background: #28a745; color: white; }
.badge-warning { background: #ffc107; color: #212529; }
.badge-danger { background: #dc3545; color: white; }
.badge-info { background: #17a2b8; color: white; }
.badge-light { background: #f8f9fa; color: #333; border: 1px solid #dee2e6; }

/* 表格样式 */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
    background: #fff;
}

.table th,
.table td {
    padding: 1rem 0.75rem;
    border-bottom: 1px solid #dee2e6;
    text-align: left;
    vertical-align: top;
}

.table th {
    background: #f8f9fa;
    font-weight: bold;
    color: #333;
    border-bottom: 2px solid #dee2e6;
}

.table tbody tr:hover {
    background: #f8f9fa;
}

/* 页脚 */
.footer {
    background: #333;
    color: #fff;
    padding: 50px 0 30px;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer h5 {
    margin-bottom: 1.5rem;
    color: #fff;
    font-weight: bold;
}

.footer p {
    margin-bottom: 0.5rem;
    color: #ccc;
    line-height: 1.6;
}

.footer a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #555;
    color: #999;
}

/* 工具类 */
.text-center { text-align: center !important; }
.text-left { text-align: left !important; }
.text-right { text-align: right !important; }

.text-primary { color: #2c5530 !important; }
.text-success { color: #28a745 !important; }
.text-danger { color: #dc3545 !important; }
.text-warning { color: #ffc107 !important; }
.text-info { color: #17a2b8 !important; }
.text-muted { color: #6c757d !important; }
.text-white { color: #fff !important; }

.bg-primary { background: #2c5530 !important; color: white !important; }
.bg-light { background: #f8f9fa !important; }
.bg-white { background: white !important; }
.bg-success { background: #28a745 !important; color: white !important; }
.bg-danger { background: #dc3545 !important; color: white !important; }

/* 间距工具类 */
.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }

.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }

.ml-1 { margin-left: 0.25rem !important; }
.ml-2 { margin-left: 0.5rem !important; }
.ml-3 { margin-left: 1rem !important; }

.mr-1 { margin-right: 0.25rem !important; }
.mr-2 { margin-right: 0.5rem !important; }
.mr-3 { margin-right: 1rem !important; }

.p-1 { padding: 0.25rem !important; }
.p-2 { padding: 0.5rem !important; }
.p-3 { padding: 1rem !important; }
.p-4 { padding: 1.5rem !important; }
.p-5 { padding: 3rem !important; }

/* Flexbox工具类 */
.d-flex { display: flex !important; }
.d-block { display: block !important; }
.d-inline { display: inline !important; }
.d-inline-block { display: inline-block !important; }
.d-none { display: none !important; }

.justify-content-center { justify-content: center !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-around { justify-content: space-around !important; }
.align-items-center { align-items: center !important; }
.align-items-start { align-items: flex-start !important; }

.flex-wrap { flex-wrap: wrap !important; }
.flex-column { flex-direction: column !important; }

.gap-1 { gap: 0.25rem !important; }
.gap-2 { gap: 0.5rem !important; }
.gap-3 { gap: 1rem !important; }

/* 宽度工具类 */
.w-100 { width: 100% !important; }
.w-75 { width: 75% !important; }
.w-50 { width: 50% !important; }
.w-25 { width: 25% !important; }

/* 高度工具类 */
.h-100 { height: 100% !important; }

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .nav-content {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .logo {
        font-size: 1.2rem;
        margin-bottom: 0;
        text-align: center;
    }
    
    .nav-menu {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
        width: 100%;
        justify-content: center;
        text-align: center;
    }
    
    .nav-menu a {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
        text-align: center;
        min-width: 80px;
        border-radius: 4px;
        white-space: nowrap;
    }
    
    .nav-menu a:hover {
        background: rgba(44, 85, 48, 0.1);
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .page-header {
        padding: 60px 0;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    .feature-card {
        padding: 2rem 1.5rem;
    }
    
    .btn {
        width: 100%;
        margin: 0.25rem 0;
    }
    
    .d-flex {
        flex-direction: column;
        align-items: stretch !important;
    }
}

@media (max-width: 480px) {
    .nav-menu {
        gap: 0.3rem;
    }
    
    .nav-menu a {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
        min-width: 70px;
    }
    
    .logo {
        font-size: 1rem;
    }
    
    .hero {
        padding: 40px 0;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .page-header {
        padding: 40px 0;
    }
    
    .page-title {
        font-size: 1.6rem;
    }
    
    .section {
        padding: 30px 0;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .feature-card {
        padding: 1.5rem 1rem;
    }
    
    .price-card {
        padding: 1.5rem;
    }
}

/* 特殊样式修复 */
.navbar .container {
    display: flex;
    width: 100%;
}

.navbar .nav-content {
    flex: 1;
}

/* 确保页面布局正确 */
html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* 修复卡片内容对齐 */
.card h3, .card h5, .card h6 {
    margin-top: 0;
}

.card p:last-child {
    margin-bottom: 0;
}

/* 修复按钮组 */
.btn-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* 修复表单布局 */
.form-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.form-row .form-group {
    flex: 1;
    min-width: 200px;
}

@media (max-width: 768px) {
    html body .container { max-width: 100%; padding-left: 16px; padding-right: 16px; box-sizing: border-box; }
    html body .grid-2, html body .grid-3, html body .grid-4 { grid-template-columns: minmax(0, 1fr); }
    html body .form-row { flex-direction: column; }
    html body .form-row .form-group { min-width: 0; }
    html body .form-control { font-size: 16px; max-width: 100%; box-sizing: border-box; }
    html body .btn { min-height: 44px; box-sizing: border-box; }
    html body .card, html body .card-body { min-width: 0; overflow-wrap: anywhere; }
    html body .table-responsive { overflow-x: auto; max-width: 100%; }
    html body img { max-width: 100%; height: auto; }
}
