/* 重置和基礎樣式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', 'Microsoft JhengHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #0a0a0a;
    overflow-x: hidden;
}

/* 科技背景動效 */
.tech-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #00ff88;
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
    box-shadow: 0 0 10px #00ff88;
}

.particle:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    top: 60%;
    left: 80%;
    animation-delay: 2s;
}

.particle:nth-child(3) {
    top: 80%;
    left: 30%;
    animation-delay: 4s;
}

.circuit-line {
    position: absolute;
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #00ff88, transparent);
    animation: circuit 8s linear infinite;
}

.circuit-line:nth-child(4) {
    top: 30%;
    left: -200px;
    animation-delay: 1s;
}

.circuit-line:nth-child(5) {
    top: 70%;
    left: -200px;
    animation-delay: 3s;
}

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

@keyframes circuit {
    0% { left: -200px; }
    100% { left: 100%; }
}

/* 導航欄 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #00ff88;
    z-index: 1000;
    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;
}

.logo h2 {
    color: #00ff88;
    font-size: 1.5rem;
    font-weight: bold;
}

.logo span {
    color: #fff;
    margin-left: 10px;
}

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

.nav-link {
    color: #fff;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #00ff88;
    background: rgba(0, 255, 136, 0.1);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #00ff88;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

/* 響應式導航 */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #00ff88;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* 主要內容 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 英雄區塊 */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 20px 50px;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1) 0%, rgba(26, 26, 46, 0.3) 100%);
}

.hero-content {
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: 3.5rem;
    color: #00ff88;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
}

.hero-subtitle {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 20px;
    font-weight: 300;
}

.hero-description {
    font-size: 1.1rem;
    color: #ccc;
    margin-bottom: 40px;
    line-height: 1.8;
}

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

/* 按鈕樣式 */
.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(45deg, #00ff88, #00cc70);
    color: #000;
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 255, 136, 0.4);
}

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

.btn-secondary:hover {
    background: #00ff88;
    color: #000;
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 1px solid #fff;
}

.btn-outline:hover {
    background: #fff;
    color: #000;
}

.btn-large {
    padding: 20px 40px;
    font-size: 1.2rem;
}

/* 亮點區塊 */
.highlights {
    padding: 100px 0;
    background: rgba(26, 26, 46, 0.5);
}

.highlights h2 {
    text-align: center;
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 60px;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.highlight-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.highlight-card:hover {
    transform: translateY(-10px);
    border-color: #00ff88;
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.2);
}

.highlight-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.highlight-card h3 {
    color: #00ff88;
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.highlight-card p {
    color: #ccc;
    line-height: 1.6;
}

/* SEO內容區塊 */
.seo-content {
    padding: 100px 0;
}

.seo-content h2 {
    text-align: center;
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 60px;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.content-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 30px;
    border-left: 4px solid #00ff88;
}

.content-card h3 {
    color: #00ff88;
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.content-card p {
    color: #ccc;
    line-height: 1.8;
}

/* 流程區塊 */
.process {
    padding: 100px 0;
    background: rgba(26, 26, 46, 0.5);
}

.process h2 {
    text-align: center;
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 60px;
}

.process-steps {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 40px;
}

.step {
    text-align: center;
    max-width: 300px;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #00ff88, #00cc70);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 20px;
}

.step h3 {
    color: #00ff88;
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.step p {
    color: #ccc;
    line-height: 1.6;
}

/* 頁面內容 */
.page-content {
    padding-top: 70px;
    min-height: 100vh;
}

.page-hero {
    background: rgba(26, 26, 46, 0.8);
    padding: 80px 0;
    text-align: center;
}

.page-hero h1 {
    color: #00ff88;
    font-size: 3rem;
    margin-bottom: 20px;
}

.page-hero p {
    color: #ccc;
    font-size: 1.2rem;
}

/* 關於我們頁面 */
.about-content {
    padding: 80px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-text {
    color: #ccc;
    line-height: 1.8;
}

.about-text h2,
.about-text h3 {
    color: #00ff88;
    margin-bottom: 20px;
}

.about-text h2 {
    font-size: 2rem;
}

.about-text h3 {
    font-size: 1.4rem;
    margin-top: 40px;
}

.about-text p {
    margin-bottom: 20px;
}

.about-stats {
    display: grid;
    gap: 20px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
}

.stat-card h3 {
    color: #00ff88;
    font-size: 2rem;
    margin-bottom: 10px;
}

.stat-card p {
    color: #ccc;
    font-size: 0.9rem;
}

/* 服務內容 */
.services-content {
    padding: 80px 0;
}

.service-section {
    margin-bottom: 80px;
}

.service-section h2 {
    color: #00ff88;
    font-size: 2.2rem;
    margin-bottom: 30px;
}

.service-section p {
    color: #ccc;
    line-height: 1.8;
    margin-bottom: 40px;
}

.service-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.feature {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 25px;
    border-left: 4px solid #00ff88;
}

.feature h4 {
    color: #00ff88;
    margin-bottom: 15px;
}

.feature p {
    color: #ccc;
    line-height: 1.6;
}

.eligibility,
.required-documents {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
}

.eligibility h3,
.required-documents h3 {
    color: #00ff88;
    margin-bottom: 20px;
}

.eligibility ul,
.required-documents ul {
    color: #ccc;
    padding-left: 20px;
}

.eligibility li,
.required-documents li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.mortgage-types {
    display: grid;
    gap: 40px;
}

.mortgage-type {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 30px;
    border-left: 4px solid #00ff88;
}

.mortgage-type h3 {
    color: #00ff88;
    margin-bottom: 20px;
}

.mortgage-type p {
    color: #ccc;
    line-height: 1.8;
}

.mortgage-type ul {
    color: #ccc;
    padding-left: 20px;
}

.mortgage-type li {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* 申請表單 */
.application-form {
    padding: 80px 0;
}

.loan-form {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 40px;
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

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

.form-group label {
    color: #00ff88;
    margin-bottom: 8px;
    font-weight: bold;
}

.form-group input,
.form-group select,
.form-group textarea {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 5px;
    padding: 12px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00ff88;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

.form-group input::placeholder {
    color: #888;
}

/* 簽名區域 */
.signature-section {
    margin: 40px 0;
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.signature-section h3 {
    color: #00ff88;
    margin-bottom: 15px;
}

.signature-section p {
    color: #ccc;
    margin-bottom: 20px;
}

.signature-container {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
}

#signatureCanvas {
    border: 2px dashed #00ff88;
    border-radius: 10px;
    cursor: crosshair;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.signature-controls {
    margin-top: 15px;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.signature-preview {
    margin-top: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.signature-preview h4 {
    color: #00ff88;
    margin-bottom: 15px;
}

#signatureImage {
    max-width: 100%;
    height: auto;
    border: 1px solid #00ff88;
    border-radius: 5px;
}

/* 條款區域 */
.terms-section {
    margin: 40px 0;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.checkbox-group input[type="checkbox"] {
    margin-top: 5px;
    width: 18px;
    height: 18px;
    accent-color: #00ff88;
    flex-shrink: 0;
}

.checkbox-group label {
    color: #ccc;
    line-height: 1.6;
    cursor: pointer;
}

/* reCAPTCHA 區域 */
.recaptcha-section {
    margin: 40px 0;
    text-align: center;
}

/* 表單提交 */
.form-submit {
    text-align: center;
    margin-top: 40px;
}

.submit-note {
    color: #ccc;
    margin-top: 20px;
    line-height: 1.6;
}

/* 聯絡頁面 */
.contact-content {
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info {
    color: #ccc;
}

.contact-info h2 {
    color: #00ff88;
    font-size: 2rem;
    margin-bottom: 40px;
}

.contact-item {
    margin-bottom: 40px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border-left: 4px solid #00ff88;
}

.contact-item h3 {
    color: #00ff88;
    margin-bottom: 15px;
}

.contact-item p {
    line-height: 1.6;
}

.contact-item a {
    color: #00ff88;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-item a:hover {
    color: #fff;
}

.phone-numbers p {
    margin-bottom: 10px;
}

.license-info {
    background: rgba(0, 255, 136, 0.1);
    border-color: #00ff88;
}

.license-info strong {
    color: #00ff88;
}

.quick-contact {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 30px;
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.quick-contact h2 {
    color: #00ff88;
    margin-bottom: 30px;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

/* 頁腳 */
.footer {
    background: rgba(26, 26, 46, 0.9);
    border-top: 1px solid rgba(0, 255, 136, 0.3);
    padding: 40px 0;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-section h3 {
    color: #00ff88;
    margin-bottom: 20px;
}

.footer-section p {
    color: #ccc;
    line-height: 1.6;
}

.footer-section P {
    FONT-SIZE: 30PX;
}

.footer-section.smaller P {
    FONT-SIZE: 18PX;
}

/* 動畫 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* 響應式設計 */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(26, 26, 46, 0.98);
        backdrop-filter: blur(10px);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 20px 0;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 10px 0;
    }
    
    .nav-link {
        display: block;
        padding: 15px 20px;
        color: #fff;
        text-decoration: none;
        transition: all 0.3s ease;
        border-radius: 5px;
        margin: 0 20px;
    }
    
    .nav-link:hover,
    .nav-link.active {
        background: rgba(0, 255, 136, 0.2);
        color: #00ff88;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.4rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .process-steps {
        flex-direction: column;
        align-items: center;
    }
    
    #signatureCanvas {
        width: 100%;
        max-width: 500px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .page-hero h1 {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .loan-form {
        padding: 20px;
    }
    
    .signature-container {
        padding: 10px;
    }
    
    #signatureCanvas {
        width: 100%;
    }
    
    .checkbox-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .checkbox-group input[type="checkbox"] {
        align-self: flex-start;
    }
}

/* styles.css 最末尾，加入以下兩行 */
.hamburger {
  position: relative;
  z-index: 1100;
}
.nav-menu {
  z-index: 1090;
}
