/* ============================================
   龙脉文化 - 主样式表
   配色：紫金主题（九紫离火大运 + 喜金水）
   ============================================ */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(180deg, #1a1a2e 0%, #2d1b4e 50%, #4a148c 100%);
    background-attachment: fixed;
    min-height: 100vh;
    line-height: 1.6;
    color: #fff;
}

/* ===== 顶部导航栏 ===== */
.navbar {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(243, 156, 18, 0.5);
    padding: 12px 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #f39c12;
    font-size: 1.5rem;
    font-weight: bold;
}

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

.navbar-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.navbar-link {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 1rem;
}

.navbar-link:hover {
    color: #f39c12;
}

/* ===== 主要内容区 ===== */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* ===== 标题样式 ===== */
h1, h2, h3 {
    color: #f39c12;
    margin-bottom: 20px;
}

h1 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
}

h2 {
    font-size: 2rem;
    border-bottom: 2px solid #f39c12;
    padding-bottom: 10px;
}

/* ===== 卡片样式 ===== */
.card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid rgba(243, 156, 18, 0.3);
    backdrop-filter: blur(10px);
}

/* ===== 按钮样式 ===== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #f39c12 0%, #e74c3c 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(243, 156, 18, 0.4);
}

.btn-primary {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
}

/* ===== 表单样式 ===== */
.form-group {
    margin-bottom: 20px;
}

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

.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(243, 156, 18, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1rem;
}

.form-input:focus {
    outline: none;
    border-color: #f39c12;
    box-shadow: 0 0 10px rgba(243, 156, 18, 0.3);
}

/* ===== 网格布局 ===== */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

/* ===== 服务卡片 ===== */
.service-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    border: 1px solid rgba(243, 156, 18, 0.2);
    transition: transform 0.3s, border-color 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: #f39c12;
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.service-title {
    color: #f39c12;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.service-desc {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

/* ===== 页脚 ===== */
.footer {
    background: rgba(0, 0, 0, 0.3);
    padding: 40px 20px;
    margin-top: 60px;
    text-align: center;
    border-top: 1px solid rgba(243, 156, 18, 0.3);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

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

.footer-link:hover {
    color: #f39c12;
}

.footer-contact {
    color: #f39c12;
    font-size: 1.1rem;
    margin-top: 20px;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-top: 20px;
}

/* ===== 响应式设计 ===== */
@media (max-width: 768px) {
    .navbar-menu {
        display: none;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .grid {
        grid-template-columns: 1fr;
    }
    
    .card {
        padding: 20px;
    }
}

/* ===== 特殊效果 ===== */
.glow {
    box-shadow: 0 0 20px rgba(243, 156, 18, 0.3);
}

.text-glow {
    text-shadow: 0 0 10px rgba(243, 156, 18, 0.5);
}

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

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* ===== 结果展示 ===== */
.result-box {
    background: rgba(155, 89, 182, 0.2);
    border: 1px solid #9b59b6;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

.result-title {
    color: #f39c12;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.result-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.result-label {
    color: rgba(255, 255, 255, 0.8);
}

.result-value {
    color: #f39c12;
    font-weight: bold;
}
