/* 主样式文件 - 黑水资产管理公司网站 */

/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: #333333;
    background-color: #f5f5f5;
}

/* 导航栏滚动效果 */
.navbar-scrolled {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 调整导航栏布局平衡 */
header .flex.justify-between {
    justify-content: space-between;
}

/* 渐变文本 */
.gradient-text {
    background: linear-gradient(to right, #000000, #333333);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* 卡片悬停效果增强 */
.card-hover {
    transition: all 0.3s ease-in-out;
}

.card-hover:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

/* 自定义按钮样式 */
.btn-primary {
    background-color: #000000;
    color: #ffffff;
    border-radius: 4px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-block;
    text-align: center;
}

.btn-primary:hover {
    background-color: #333333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-outline {
    background-color: transparent;
    color: #000000;
    border: 2px solid #000000;
    border-radius: 4px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
    text-align: center;
}

.btn-outline:hover {
    background-color: #000000;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 输入框焦点样式 */
.form-input:focus {
    border-color: #000000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
    outline: none;
}

/* 计数器动画 */
@keyframes countUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.counter {
    opacity: 0;
    transform: translateY(20px);
}

.counter.animate {
    animation: countUp 0.8s ease forwards;
}

/* 数字增长动画 */
@keyframes numberGrow {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .hide-mobile {
        display: none;
    }
}

/* 加载动画 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
}

.fade-in.visible {
    animation: fadeIn 0.8s ease forwards;
}

/* 图片过渡效果 */
.img-transition img {
    transition: all 0.5s ease;
}

.img-transition:hover img {
    transform: scale(1.05);
}

/* 内容区域最大宽度限制 */
.content-wrapper {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* 标题下方装饰条 */
.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: #000000;
    margin-top: 12px;
}

/* 响应式表格 */
.responsive-table {
    width: 100%;
    overflow-x: auto;
}

/* 文章卡片样式增强 */
.article-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.article-card-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.article-card-excerpt {
    flex-grow: 1;
}

/* 联系表单样式 */
.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    border-color: #000000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
    outline: none;
}

/* 页脚链接样式 */
.footer-link {
    color: #999999;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: #ffffff;
    padding-left: 4px;
}

/* 图表容器样式 */
.chart-container {
    position: relative;
    margin: auto;
    height: 300px;
    width: 100%;
}

/* 打印样式 */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background-color: white;
        color: black;
    }
}

/* 无障碍访问 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000000;
        --text-color: #000000;
        --background-color: #ffffff;
    }
}
