/* ============================================= VAT Withholding Calculator Website Styles For Overseas Chinese Users in HK & Macao ============================================= */ :root { --primary: #c41e3a; --primary-dark: #8b1529; --secondary: #2b5a9e; --accent: #f4d03f; --dark: #1a1a2e; --light: #f8f9fa; --gray: #6c757d; --success: #28a745; --warning: #ffc107; --danger: #dc3545; --shadow: 0 4px 6px rgba(0,0,0,0.1); --shadow-lg: 0 10px 25px rgba(0,0,0,0.15); --radius: 8px; --radius-lg: 12px; --transition: all 0.3s ease; } * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%); color: var(--dark); line-height: 1.6; min-height: 100vh; } /* ============================================= Navigation ============================================= */ .navbar { background: linear-gradient(90deg, var(--primary-dark) 0%, var(--primary) 100%); padding: 1rem 0; position: sticky; top: 0; z-index: 1000; box-shadow: var(--shadow-lg); } .nav-container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; display: flex; justify-content: space-between; align-items: center; } .logo { display: flex; align-items: center; gap: 0.75rem; color: white; text-decoration: none; font-size: 1.4rem; font-weight: 700; } .logo img { height: 40px; width: auto; border-radius: var(--radius); } .nav-right { display: flex; align-items: center; gap: 0.5rem; } .nav-links { display: flex; gap: 0.5rem; list-style: none; } .nav-links a { color: rgba(255,255,255,0.9); text-decoration: none; padding: 0.5rem 1rem; border-radius: var(--radius); transition: var(--transition); font-weight: 500; } .nav-links a:hover, .nav-links a.active { background: rgba(255,255,255,0.15); color: white; } .mobile-toggle { display: none; background: none; border: none; color: white; font-size: 1.5rem; cursor: pointer; } /* ============================================= Language Switcher ============================================= */ .lang-switcher { display: flex; align-items: center; gap: 0.35rem; margin-left: 0.75rem; padding-left: 0.75rem; border-left: 1px solid rgba(255,255,255,0.25); } .lang-item { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,0.1); border: 2px solid transparent; transition: var(--transition); text-decoration: none; overflow: hidden; cursor: pointer; } .lang-item:hover { background: rgba(255,255,255,0.25); transform: scale(1.1); } .lang-item.active { border-color: var(--accent); background: rgba(255,255,255,0.25); box-shadow: 0 0 0 2px rgba(244,208,63,0.3); } .lang-item img { width: 20px; height: 20px; object-fit: contain; border-radius: 2px; } .lang-item .lang-text { color: white; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.02em; } /* ============================================= Hero Section ============================================= */ .hero { background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary) 100%); color: white; padding: 4rem 1.5rem; text-align: center; position: relative; overflow: hidden; } .hero::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: url('../images/chinese-flag-1024x495.webp') center/cover; opacity: 0.08; } .hero-content { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; } .hero h1 { font-size: 2.8rem; margin-bottom: 1rem; text-shadow: 2px 2px 4px rgba(0,0,0,0.3); } .hero p { font-size: 1.2rem; margin-bottom: 2rem; opacity: 0.95; } .hero-badges { display: flex; justify-content: center; gap: 1.5rem; margin-top: 1.5rem; flex-wrap: wrap; } .hero-badge { display: flex; align-items: center; gap: 0.5rem; background: rgba(255,255,255,0.15); padding: 0.5rem 1rem; border-radius: 50px; backdrop-filter: blur(5px); } .hero-badge img { height: 24px; width: auto; } /* ============================================= Buttons ============================================= */ .btn { display: inline-block; padding: 0.875rem 2rem; border-radius: var(--radius); text-decoration: none; font-weight: 600; transition: var(--transition); border: none; cursor: pointer; font-size: 1rem; } .btn-primary { background: linear-gradient(135deg, var(--accent) 0%, #e6c229 100%); color: var(--dark); box-shadow: 0 4px 15px rgba(244,208,63,0.3); } .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(244,208,63,0.4); } .btn-secondary { background: white; color: var(--primary); border: 2px solid white; } .btn-secondary:hover { background: transparent; color: white; } .btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); } .btn-outline:hover { background: var(--primary); color: white; } /* ============================================= Container & Cards ============================================= */ .container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; } .section { padding: 3rem 0; } .section-title { text-align: center; margin-bottom: 2.5rem; } .section-title h2 { font-size: 2rem; color: var(--primary-dark); margin-bottom: 0.5rem; } .section-title p { color: var(--gray); font-size: 1.1rem; } .card { background: white; border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow); transition: var(--transition); } .card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); } .card-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; } .card-icon { width: 50px; height: 50px; background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: white; font-size: 1.5rem; } /* ============================================= Grid Layouts ============================================= */ .grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; } .grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; } .grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; } /* ============================================= Calculator Section ============================================= */ .calculator-section { background: white; padding: 3rem 0; } .calculator-container { max-width: 900px; margin: 0 auto; background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%); border-radius: var(--radius-lg); padding: 2.5rem; box-shadow: var(--shadow-lg); border: 1px solid #e0e0e0; } .form-group { margin-bottom: 1.5rem; } .form-label { display: block; margin-bottom: 0.5rem; font-weight: 600; color: var(--dark); } .form-input, .form-select { width: 100%; padding: 0.875rem; border: 2px solid #e0e0e0; border-radius: var(--radius); font-size: 1rem; transition: var(--transition); font-family: inherit; } .form-input:focus, .form-select:focus { outline: none; border-color: var(--secondary); box-shadow: 0 0 0 3px rgba(43,90,158,0.1); } .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; } .result-box { background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%); border: 2px solid var(--success); border-radius: var(--radius); padding: 1.5rem; margin-top: 1.5rem; display: none; } .result-box.show { display: block; animation: fadeIn 0.5s ease; } .result-box h3 { color: var(--success); margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem; } .result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; } .result-item { display: flex; justify-content: space-between; padding: 0.75rem 0; border-bottom: 1px solid rgba(0,0,0,0.1); } .result-item.total { font-weight: 700; font-size: 1.1rem; border-top: 2px solid var(--success); border-bottom: none; margin-top: 0.5rem; padding-top: 1rem; } @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } } /* ============================================= Features / Info Boxes ============================================= */ .feature-card { text-align: center; padding: 2rem 1.5rem; } .feature-card img { height: 80px; width: auto; margin-bottom: 1rem; border-radius: var(--radius); } .feature-card h3 { color: var(--primary-dark); margin-bottom: 0.75rem; font-size: 1.2rem; } .feature-card p { color: var(--gray); font-size: 0.95rem; } /* ============================================= Info Banner ============================================= */ .info-banner { background: linear-gradient(135deg, var(--secondary) 0%, #1e3a5f 100%); color: white; padding: 2.5rem 1.5rem; text-align: center; } .info-banner h2 { font-size: 1.8rem; margin-bottom: 0.75rem; } .info-banner p { opacity: 0.9; max-width: 700px; margin: 0 auto; } /* ============================================= Rules / Content Pages ============================================= */ .content-page { background: white; min-height: calc(100vh - 200px); } .content-header { background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary) 100%); color: white; padding: 3rem 1.5rem; text-align: center; } .content-header h1 { font-size: 2.2rem; margin-bottom: 0.5rem; } .content-body { max-width: 900px; margin: 0 auto; padding: 3rem 1.5rem; } .content-body h2 { color: var(--primary-dark); margin: 2rem 0 1rem; font-size: 1.5rem; padding-bottom: 0.5rem; border-bottom: 2px solid #e0e0e0; } .content-body h3 { color: var(--secondary); margin: 1.5rem 0 0.75rem; font-size: 1.2rem; } .content-body p { margin-bottom: 1rem; color: #444; line-height: 1.7; } .content-body ul, .content-body ol { margin-bottom: 1.5rem; padding-left: 1.5rem; } .content-body li { margin-bottom: 0.5rem; color: #444; } .rule-box { background: #f8f9fa; border-left: 4px solid var(--primary); padding: 1.25rem; margin: 1.5rem 0; border-radius: 0 var(--radius) var(--radius) 0; } .rule-box strong { color: var(--primary-dark); } .rate-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; box-shadow: var(--shadow); border-radius: var(--radius); overflow: hidden; } .rate-table th, .rate-table td { padding: 1rem; text-align: left; border-bottom: 1px solid #e0e0e0; } .rate-table th { background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary) 100%); color: white; font-weight: 600; } .rate-table tr:nth-child(even) { background: #f8f9fa; } .rate-table tr:hover { background: #e3f2fd; } /* ============================================= Contact Page ============================================= */ .contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; } .contact-info-card { background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary) 100%); color: white; padding: 2rem; border-radius: var(--radius-lg); } .contact-info-card h3 { margin-bottom: 1.5rem; font-size: 1.3rem; } .contact-item { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.25rem; } .contact-item i { font-size: 1.2rem; margin-top: 0.2rem; } .contact-item p { margin: 0; opacity: 0.9; } .contact-form .form-group { margin-bottom: 1.25rem; } /* ============================================= Footer ============================================= */ .footer { background: var(--dark); color: white; padding: 2.5rem 0 1.5rem; margin-top: auto; } .footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; margin-bottom: 2rem; } .footer-section h4 { color: var(--accent); margin-bottom: 1rem; font-size: 1.1rem; } .footer-section ul { list-style: none; } .footer-section ul li { margin-bottom: 0.5rem; } .footer-section a { color: rgba(255,255,255,0.7); text-decoration: none; transition: var(--transition); } .footer-section a:hover { color: white; } .footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.5rem; text-align: center; color: rgba(255,255,255,0.6); font-size: 0.9rem; } .footer-badge { display: inline-flex; align-items: center; gap: 0.5rem; background: rgba(255,255,255,0.1); padding: 0.25rem 0.75rem; border-radius: 50px; margin-top: 0.5rem; } .footer-badge img { height: 18px; width: auto; } /* ============================================= Disclaimer ============================================= */ .disclaimer { background: #fff3cd; border: 1px solid #ffc107; border-radius: var(--radius); padding: 1rem; margin: 2rem 0; font-size: 0.9rem; color: #856404; } .disclaimer strong { display: block; margin-bottom: 0.5rem; } /* ============================================= Image Styling ============================================= */ .img-fluid { max-width: 100%; height: auto; border-radius: var(--radius); } .img-rounded { border-radius: var(--radius-lg); } .img-shadow { box-shadow: var(--shadow-lg); } .about-hero-img { width: 100%; max-height: 300px; object-fit: cover; border-radius: var(--radius-lg); margin-bottom: 2rem; } /* ============================================= Responsive Design ============================================= */ @media (max-width: 768px) { .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--primary-dark); flex-direction: column; padding: 1rem; gap: 0.5rem; } .nav-links.show { display: flex; } .mobile-toggle { display: block; } .lang-switcher { margin-left: auto; padding-left: 0.5rem; border-left: none; } .hero h1 { font-size: 2rem; } .hero p { font-size: 1rem; } .form-row { grid-template-columns: 1fr; } .contact-grid { grid-template-columns: 1fr; } .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } .result-grid { grid-template-columns: 1fr; } .calculator-container { padding: 1.5rem; } .section-title h2 { font-size: 1.6rem; } } /* ============================================= Utilities ============================================= */ .text-center { text-align: center; } .text-right { text-align: right; } .mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mb-1 { margin-bottom: 1rem; } .mb-2 { margin-bottom: 2rem; } .font-bold { font-weight: 700; } .text-primary { color: var(--primary); } .text-secondary { color: var(--secondary); } .text-success { color: var(--success); } .text-gray { color: var(--gray); } .bg-light { background: var(--light); }