/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #0c0c0c 0%, #1a1a1a 100%);
    color: #e0e0e0;
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* 导航栏样式 */
.navbar {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid #333;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo h2 {
    color: #00d4ff;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 2px;
}

.nav-logo span {
    color: #888;
    font-size: 12px;
    display: block;
}

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

.nav-link {
    color: #e0e0e0;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #00d4ff;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #00d4ff;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: #e0e0e0;
    margin: 3px 0;
    transition: 0.3s;
}

/* 主页面样式 */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0 20px;
    background: linear-gradient(135deg, #0c0c0c 0%, #1a1a1a 50%, #0f0f0f 100%);
    position: relative;
    overflow: hidden;
}

.hero::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="%23333" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.1;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    z-index: 2;
    position: relative;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #00d4ff, #0099cc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    text-align: center;
}

/* 专业性说明样式 */
.professional-note {
    margin: 15px 0 25px 0;
    text-align: center;
}

.lawyer-credential {
    font-size: 1.1rem;
    color: #ffd700;
    font-weight: 600;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 215, 0, 0.05));
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 25px;
    padding: 12px 24px;
    margin: 0;
    display: inline-block;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
}

.lawyer-credential::before {
    content: '⭐';
    margin-right: 8px;
    font-size: 1rem;
}

.lawyer-credential:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 215, 0, 0.08));
}

.hero-content p {
    font-size: 1.2rem;
    color: #b0b0b0;
    margin-bottom: 30px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    position: relative;
}

.hero-image i {
    font-size: 15rem;
    color: #00d4ff;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, #00d4ff, #0099cc);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #00d4ff;
    border: 2px solid #00d4ff;
}

.btn-secondary:hover {
    background: #00d4ff;
    color: #000;
    transform: translateY(-2px);
}

/* 功能模块样式 */
.features {
    padding: 50px 0;
    background: #111;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 60px;
    color: #fff;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(135deg, #00d4ff, #0099cc);
    border-radius: 2px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.feature-card {
    background: linear-gradient(135deg, #1a1a1a, #222);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #333;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: #00d4ff;
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #00d4ff, #0099cc);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: #fff;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #fff;
}

.feature-card p {
    color: #b0b0b0;
    margin-bottom: 25px;
    line-height: 1.6;
}

.feature-link {
    color: #00d4ff;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.feature-link:hover {
    color: #fff;
}

/* 计算器样式 */
.calculator-section {
    padding: 100px 0;
    background: #0f0f0f;
}

.calculator-card {
    background: linear-gradient(135deg, #1a1a1a, #222);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid #333;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.calculator-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: #e0e0e0;
    font-weight: 600;
    font-size: 14px;
}

.form-group input,
.form-group select {
    padding: 15px;
    border: 2px solid #333;
    border-radius: 8px;
    background: #111;
    color: #e0e0e0;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #00d4ff;
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.radio-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #e0e0e0;
    font-weight: 500;
}

.radio-label input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #333;
    border-radius: 50%;
    position: relative;
    transition: all 0.3s ease;
}

.radio-label input[type="radio"]:checked + .radio-custom {
    border-color: #00d4ff;
}

.radio-label input[type="radio"]:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: #00d4ff;
    border-radius: 50%;
}

.calculator-result {
    background: #111;
    border-radius: 15px;
    padding: 30px;
    border: 1px solid #333;
}

.calculator-result h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 25px;
    text-align: center;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #333;
}

.result-item:last-child {
    border-bottom: none;
}

.result-label {
    color: #b0b0b0;
    font-weight: 500;
}

.result-value {
    color: #00d4ff;
    font-weight: 700;
    font-size: 1.2rem;
}

.result-note {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #333;
}

.result-note p {
    color: #888;
    font-size: 14px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.result-placeholder {
    color: #666;
    text-align: center;
    font-style: italic;
    padding: 40px 0;
}

/* 咨询模块样式 */
.consultation-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #111, #1a1a1a);
}

.consultation-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: center;
    margin-top: 40px;
}

.consultation-info h3 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 20px;
}

.consultation-info p {
    color: #b0b0b0;
    font-size: 1.1rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #e0e0e0;
    font-size: 1.1rem;
}

.contact-item i {
    width: 24px;
    color: #00d4ff;
    font-size: 1.2rem;
}

.qr-code {
    text-align: center;
}

.qr-code img {
    width: 200px;
    height: 200px;
    border-radius: 15px;
    border: 3px solid #333;
    margin-bottom: 15px;
}

.qr-code p {
    color: #b0b0b0;
    font-weight: 500;
}

/* 页脚样式 */
.footer {
    background: #000;
    padding: 60px 0 20px;
    border-top: 1px solid #333;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3,
.footer-section h4 {
    color: #fff;
    margin-bottom: 20px;
}

.footer-section h3 {
    font-size: 1.8rem;
    color: #00d4ff;
}

.footer-section p {
    color: #b0b0b0;
    line-height: 1.6;
    margin-bottom: 10px;
}

.footer-section ul {
    list-style: none;
}

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

.footer-section ul li a {
    color: #b0b0b0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #00d4ff;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    color: #666;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(0, 0, 0, 0.95);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 20px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding: 100px 0 20px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .lawyer-credential {
        font-size: 1rem;
        padding: 10px 20px;
        border-radius: 20px;
    }

    .hero-image i {
        font-size: 8rem;
    }

    .calculator-card {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 30px 20px;
    }

    .consultation-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .lawyer-credential {
        font-size: 0.9rem;
        padding: 8px 16px;
        border-radius: 18px;
    }

    .section-title {
        font-size: 2rem;
    }

    .calculator-card {
        padding: 20px 15px;
    }

    .btn {
        padding: 12px 24px;
        font-size: 14px;
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #111;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #333;
    border-radius: 50%;
    border-top-color: #00d4ff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 逾期利息和民间借贷计算器样式 */
.date-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.date-input {
    display: flex;
    flex-direction: column;
}

.date-input label {
    margin-bottom: 8px;
    color: #e0e0e0;
    font-weight: 500;
}

.date-input input[type="date"] {
    padding: 12px;
    border: 2px solid #333;
    border-radius: 8px;
    background: #1a1a1a;
    color: #e0e0e0;
    font-size: 16px;
    transition: all 0.3s ease;
}

.date-input input[type="date"]:focus {
    border-color: #00d4ff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.period-inputs {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr auto;
    gap: 10px;
    align-items: center;
}

.period-inputs input {
    padding: 12px;
    border: 2px solid #333;
    border-radius: 8px;
    background: #1a1a1a;
    color: #e0e0e0;
    font-size: 16px;
    transition: all 0.3s ease;
    text-align: center;
}

.period-inputs input:focus {
    border-color: #00d4ff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.period-inputs span {
    color: #b0b0b0;
    font-size: 14px;
    font-weight: 500;
}

.rate-note {
    margin-top: 8px;
}

.rate-note p {
    color: #ffa500;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rate-note i {
    color: #ffa500;
}

/* 响应式设计 - 日期和期限输入 */
@media (max-width: 768px) {
    .date-inputs {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .period-inputs {
        grid-template-columns: 1fr;
        gap: 10px;
        text-align: center;
    }
    
    .period-inputs span {
        display: none;
    }
    
    .period-inputs input::placeholder {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .date-input input[type="date"],
    .period-inputs input {
        padding: 10px;
        font-size: 14px;
    }
}