/* 
 * 完全本地化的CSS文件 - 减少HTTP请求次数
 * 包含：Bootstrap基础样式、Bootstrap Icons、自定义样式
 * 
 * 这个文件包含了页面所需的所有样式，无需外部CDN请求
 */

/* ==================== Bootstrap 基础样式 (精简版) ==================== */
/* 只包含页面实际使用的Bootstrap样式，减少文件大小 */

/* 重置和基础样式 */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
}

/* 容器 */
.container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* 行和列 */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.col, .col-6, .col-lg-2, .col-lg-3, .col-lg-4 {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

.col {
    flex: 1 0 0%;
}

.col-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

@media (min-width: 992px) {
    .col-lg-2 {
        flex: 0 0 16.666667%;
        max-width: 16.666667%;
    }
    .col-lg-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }
    .col-lg-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}

/* 导航栏 */
.navbar {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem;
    background-color: #f8f9fa;
}

.navbar-expand-lg {
    flex-flow: row nowrap;
    justify-content: flex-start;
}

.navbar-nav {
    display: flex;
    flex-direction: row;
    padding-left: 0;
    margin: 0;
    list-style: none;
}

.navbar-nav .nav-link {
    padding-right: 0.5rem;
    padding-left: 0.5rem;
}

.navbar-nav .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    display: none;
    min-width: 10rem;
    padding: 0.5rem 0;
    margin: 0.125rem 0 0;
    font-size: 1rem;
    color: #212529;
    text-align: left;
    list-style: none;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 0.375rem;
}

.navbar-nav .dropdown-menu.show {
    display: block;
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: 0.25rem 1rem;
    clear: both;
    font-weight: 400;
    color: #212529;
    text-align: inherit;
    text-decoration: none;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
}

.dropdown-item:hover {
    color: #1e2125;
    background-color: #e9ecef;
}

/* 按钮 */
.btn {
    display: inline-block;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    background-color: transparent;
    border: 1px solid transparent;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    border-radius: 0.375rem;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.btn-primary {
    color: #fff;
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-primary:hover {
    color: #fff;
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

.btn-trial {
    background: linear-gradient(90deg, #4f8cff 0%, #a084ee 100%);
    border: none;
    color: white;
    font-weight: 600;
}

.rounded-pill {
    border-radius: 50rem !important;
}

.w-100 {
    width: 100% !important;
}

/* 表单 */
.form-label {
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control, .form-select {
    display: block;
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus, .form-select:focus {
    color: #212529;
    background-color: #fff;
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* 工具类 */
.mb-3 {
    margin-bottom: 1rem !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.mt-3 {
    margin-top: 1rem !important;
}

.mt-5 {
    margin-top: 3rem !important;
}

.my-4 {
    margin-top: 1.5rem !important;
    margin-bottom: 1.5rem !important;
}

.d-flex {
    display: flex !important;
}

.flex-column {
    flex-direction: column !important;
}

.align-items-center {
    align-items: center !important;
}

.align-items-lg-end {
    align-items: flex-end !important;
}

.justify-content-center {
    justify-content: center !important;
}

.text-center {
    text-align: center !important;
}

.text-danger {
    color: #dc3545 !important;
}

.img-fluid {
    max-width: 100%;
    height: auto;
}

.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

/* 响应式工具 */
@media (max-width: 576px) {
    .d-none {
        display: none !important;
    }
}

/* ==================== Bootstrap Icons ==================== */
@font-face {
  font-family: "bootstrap-icons";
  src: url("../fonts/bootstrap-icons.woff2?856008caa5eb66df68595e734e15180d") format("woff2"),
       url("../fonts/bootstrap-icons.woff?856008caa5eb66df68595e734e15180d") format("woff");
}

.bi::before,
[class^="bi-"]::before,
[class*=" bi-"]::before {
  display: inline-block;
  font-family: bootstrap-icons !important;
  font-style: normal;
  font-weight: normal !important;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  vertical-align: text-bottom;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.bi-shield-lock::before {
  content: "\f4c8";
}

.bi::before,
[class^="bi-"]::before,
[class*=" bi-"]::before {
  display: inline-block;
  font-family: bootstrap-icons !important;
  font-style: normal;
  font-weight: normal !important;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  vertical-align: text-bottom;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==================== 自定义样式 ==================== */
:root {
    --primary-color: #4f8cff;
    --secondary-color: #a084ee;
    --success-color: #28a745;
    --info-color: #17a2b8;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(120deg, #e3f0ff 0%, #f8fbff 100%);
    min-height: 100vh;
}

/* 导航栏样式 */
.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    background: rgba(255,255,255,0.95) !important;
    backdrop-filter: blur(10px);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
    color: #333 !important;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* 报价页面特定样式 */
.trial-banner {
    background: linear-gradient(90deg, #4f8cff 0%, #a084ee 100%);
    color: #fff;
    padding: 3.5rem 0 2.2rem 0;
    text-align: center;
}

.trial-banner h1 {
    font-size: 2.4rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.trial-banner p {
    font-size: 1.15rem;
    margin-top: 0.7rem;
    opacity: 0.92;
}

.trial-card {
    max-width: 480px;
    margin: -3rem auto 0 auto;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 32px #4f8cff22;
    padding: 2.5rem 2rem 2rem 2rem;
    position: relative;
    z-index: 2;
}

.trial-card label {
    font-weight: 500;
    color: #22336b;
}

.trial-card .form-control, .trial-card .form-select {
    border-radius: 10px;
    border: 1.5px solid #e3e6ea;
    font-size: 1rem;
}

.trial-card .form-control:focus, .trial-card .form-select:focus {
    border-color: #4f8cff;
    box-shadow: 0 0 0 2px #4f8cff33;
}

.trial-card .btn-primary {
    background: linear-gradient(90deg, #4f8cff 0%, #a084ee 100%);
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0.7rem 0;
    transition: box-shadow 0.2s, transform 0.2s;
    box-shadow: 0 2px 12px #4f8cff22;
}

.trial-card .btn-primary:hover {
    box-shadow: 0 4px 24px #4f8cff44;
    transform: translateY(-2px) scale(1.03);
}

.trial-tip {
    text-align: center;
    color: #4a90e2;
    font-size: 0.98rem;
    margin-top: 1.5rem;
    background: #f8fbff;
    border-radius: 10px;
    padding: 1rem 0.5rem 0.8rem 0.5rem;
    box-shadow: 0 2px 12px #4f8cff11;
}

/* 验证状态样式 */
.form-control.is-valid {
    border-color: #198754;
    box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.25);
}

.form-control.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #dc3545;
}

.valid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #198754;
}

/* Footer样式 */
.footer {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 3rem 0 1rem 0;
}

.footer h5 {
    color: #fff;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer ul {
    list-style: none;
    padding: 0;
}

.footer ul li {
    margin-bottom: 0.5rem;
}

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

.footer ul li a:hover {
    color: #fff;
}

.footer-divider {
    border-top: 1px solid #34495e;
}

.footer-bottom {
    text-align: center;
    color: #95a5a6;
    font-size: 0.9rem;
}

.footer-qr-card {
    background: #fff;
    padding: 0.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* 响应式设计 */
@media (max-width: 576px) {
    .trial-card { 
        padding: 1.2rem 0.5rem 1.2rem 0.5rem; 
        margin: -1rem 1rem 0 1rem;
    }
    .trial-banner h1 { 
        font-size: 1.5rem; 
    }
    .trial-banner {
        padding: 2rem 0 1.5rem 0;
    }
} 