/* style.css - 共享样式文件 */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: #0066cc;
    transition: color 0.3s ease;
}

a:hover {
    color: #004d99;
}

/* Header Styles */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo h1 {
    color: #0066cc;
    font-size: 1.8rem;
    margin-left: 10px;
}

.logo-icon {
    font-size: 24px;
    color: #0066cc;
}

/* Navigation */
.navbar {
    position: relative;
}

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

.nav-item {
    position: relative;
    margin-left: 25px;
}

.nav-link {
    color: #333;
    font-weight: 500;
    padding: 10px 0;
    display: block;
}

.nav-link:hover {
    color: #0066cc;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    width: 260px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 99;
}

.nav-item:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    padding: 12px 20px;
    display: block;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-item:hover {
    background-color: #f0f6ff;
    color: #0066cc;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #0066cc 0%, #004d99 100%);
    color: white;
    padding: 60px 0;
    margin-bottom: 40px;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Common Card Styles */
.broker-info-card {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.broker-info-card h3 {
    color: #0066cc;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.section-title {
    color: #0066cc;
    margin-bottom: 30px;
    font-size: 2rem;
    text-align: center;
}

/* Grid Layouts */
.broker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.community-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

/* Broker Card Styles */
.broker-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.broker-card:hover {
    transform: translateY(-5px);
}

.broker-card-header {
    background: linear-gradient(135deg, #0066cc 0%, #004d99 100%);
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
}

.broker-card-logo {
    width: 60px;
    height: 60px;
    background-color: white;
    border-radius: 8px;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.5rem;
    color: #0066cc;
}

.broker-card-body {
    padding: 20px;
}

.broker-card-body h3 {
    color: #0066cc;
    margin-bottom: 15px;
}

.broker-features {
    list-style: none;
    margin-bottom: 20px;
}

.broker-features li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.broker-features li:before {
    content: "✓";
    color: #28a745;
    position: absolute;
    left: 0;
}

.rating {
    color: #ffc107;
    margin: 5px 0;
}

/* Directory Card Styles */
.directory-card {
    background-color: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

.directory-card:hover {
    transform: translateY(-5px);
}

.directory-logo {
    width: 80px;
    height: 80px;
    background-color: #f0f6ff;
    border-radius: 10px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.8rem;
    color: #0066cc;
}

.directory-card h3 {
    color: #0066cc;
    margin-bottom: 10px;
}

.directory-card p {
    color: #666;
    margin-bottom: 15px;
}

/* Community Card Styles */
.community-card {
    background-color: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

.community-card:hover {
    transform: translateY(-5px);
}

.community-icon {
    font-size: 2.5rem;
    color: #0066cc;
    margin-bottom: 15px;
}

.community-card h3 {
    color: #0066cc;
    margin-bottom: 10px;
}

.community-card p {
    color: #666;
    margin-bottom: 15px;
}

/* Button Styles */
.btn {
    display: inline-block;
    background-color: #0066cc;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn:hover {
    background-color: #004d99;
    color: white;
}

.btn-large {
    display: inline-block;
    background-color: white;
    color: #0066cc;
    padding: 15px 30px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.btn-large:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
}

/* Badge Styles */
.badge {
    display: inline-block;
    background-color: #28a745;
    color: white;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-left: 5px;
}

.badge-new {
    background-color: #dc3545;
}

.badge-recommended {
    background-color: #ffc107;
    color: #333;
}

/* Footer */
footer {
    background-color: #003366;
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 30px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin-bottom: 30px;
    padding-right: 20px;
}

.footer-section h3 {
    margin-bottom: 15px;
    color: white;
}

.footer-section p {
    color: #ccc;
    margin-bottom: 15px;
}

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

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

.footer-section a {
    color: #ccc;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #ccc;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-30 {
    margin-bottom: 30px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
    }
    
    .nav-menu {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-item {
        margin: 5px 10px;
    }
    
    .broker-grid, .directory-grid, .community-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-section {
        padding-right: 0;
        margin-bottom: 30px;
    }
}
/*top-rated*/
.poll-section {
	margin-bottom: 50px;
}
.poll-card {
	background-color: white;
	border-radius: 10px;
	padding: 30px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
	margin-bottom: 30px;
}
.poll-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
	padding-bottom: 15px;
	border-bottom: 1px solid #eee;
}
.poll-title {
	color: #0066cc;
	font-size: 1.5rem;
}

.poll-date {
	color: #666;
	font-size: 0.9rem;
}

.poll-options {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 20px;
	margin-bottom: 25px;
}

.poll-option {
	display: flex;
	align-items: center;
	padding: 15px;
	border: 1px solid #eee;
	border-radius: 8px;
	transition: all 0.3s ease;
	cursor: pointer;
}

.poll-option:hover {
	border-color: #0066cc;
	background-color: #f0f6ff;
}

.poll-option.selected {
	border-color: #0066cc;
	background-color: #e6f0ff;
}

.option-logo {
	width: 50px;
	height: 50px;
	background-color: #f0f6ff;
	border-radius: 5px;
	margin-right: 15px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: bold;
	color: #0066cc;
}

.option-info {
	flex: 1;
}

.option-name {
	font-weight: 600;
	margin-bottom: 5px;
}

.option-stats {
	display: flex;
	justify-content: space-between;
	font-size: 0.9rem;
	color: #666;
}

.vote-bar {
	height: 8px;
	background-color: #e9ecef;
	border-radius: 4px;
	margin-top: 8px;
	overflow: hidden;
}

.vote-fill {
	height: 100%;
	background-color: #0066cc;
	border-radius: 4px;
	transition: width 0.5s ease;
}

.poll-actions {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.poll-results {
	font-size: 0.9rem;
	color: #666;
}

.poll-tabs {
	display: flex;
	margin-bottom: 30px;
	border-bottom: 1px solid #eee;
}

.poll-tab {
	padding: 12px 25px;
	background: none;
	border: none;
	font-size: 1rem;
	font-weight: 500;
	color: #666;
	cursor: pointer;
	border-bottom: 3px solid transparent;
	transition: all 0.3s ease;
}

.poll-tab.active {
	color: #0066cc;
	border-bottom-color: #0066cc;
}

.poll-tab:hover {
	color: #0066cc;
}

.poll-category {
	margin-bottom: 40px;
}

.poll-category h3 {
	color: #0066cc;
	margin-bottom: 20px;
	font-size: 1.5rem;
}
/*top-rated end*/
/*cheapest*/
.comparison-table {
	width: 100%;
	border-collapse: collapse;
	background-color: white;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
	border-radius: 10px;
	overflow: hidden;
	margin-bottom: 40px;
}
.comparison-table th {
	background-color: #0066cc;
	color: white;
	padding: 20px 15px;
	text-align: left;
	font-weight: 600;
	position: sticky;
	top: 0;
}

.comparison-table td {
	padding: 20px 15px;
	border-bottom: 1px solid #eee;
}

.comparison-table tr:nth-child(even) {
	background-color: #f8f9fa;
}

.comparison-table tr:hover {
	background-color: #f0f6ff;
}

.broker-logo-small {
	width: 30px;
	height: 30px;
	background-color: #f0f6ff;
	border-radius: 5px;
	margin-right: 10px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: bold;
	color: #0066cc;
	font-size: 0.8rem;
}

.broker-name {
	display: flex;
	align-items: center;
}

.price-highlight {
	color: #28a745;
	font-weight: bold;
}

.best-value {
	background-color: #e8f5e8 !important;
	border-left: 4px solid #28a745;
}

.featured-brokers {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
	gap: 25px;
	margin-top: 30px;
}

.featured-broker {
	background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
	border-radius: 10px;
	padding: 25px;
	border-left: 5px solid #28a745;
}

.featured-broker h3 {
	color: #0066cc;
	margin-bottom: 15px;
	display: flex;
	align-items: center;
}

.featured-broker .badge {
	margin-left: 10px;
}

.price-comparison {
	display: flex;
	justify-content: space-between;
	margin: 20px 0;
	background: white;
	padding: 15px;
	border-radius: 8px;
	box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.price-item {
	text-align: center;
	flex: 1;
}

.price-item .label {
	font-size: 0.9rem;
	color: #666;
	margin-bottom: 5px;
}

.price-item .value {
	font-size: 1.2rem;
	font-weight: bold;
	color: #0066cc;
}

.savings-badge {
	background-color: #ffc107;
	color: #333;
	padding: 3px 8px;
	border-radius: 3px;
	font-size: 0.8rem;
	font-weight: 500;
	margin-left: 5px;
}

@media (max-width: 768px) {
	.comparison-table {
		display: block;
		overflow-x: auto;
	}
	
	.featured-brokers {
		grid-template-columns: 1fr;
	}
	
	.price-comparison {
		flex-direction: column;
		gap: 15px;
	}
}
/*cheapest end*/
/*Policy*/
.policy-content {
	background-color: white;
	border-radius: 10px;
	padding: 40px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
	margin-bottom: 30px;
}

.policy-section {
	margin-bottom: 30px;
}

.policy-section h3 {
	color: #0066cc;
	margin-bottom: 15px;
	font-size: 1.3rem;
}

.policy-section p {
	margin-bottom: 15px;
	line-height: 1.8;
}

.policy-section ul {
	margin-left: 20px;
	margin-bottom: 15px;
}

.policy-section li {
	margin-bottom: 8px;
	line-height: 1.6;
}

.last-updated {
	background-color: #f0f6ff;
	padding: 15px;
	border-radius: 5px;
	margin-bottom: 25px;
	border-left: 4px solid #0066cc;
}

.contact-info {
	background-color: #f8f9fa;
	padding: 20px;
	border-radius: 5px;
	margin-top: 30px;
}
/*Policy end*/
/*Service*/
.terms-content {
	background-color: white;
	border-radius: 10px;
	padding: 40px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
	margin-bottom: 30px;
}

.terms-section {
	margin-bottom: 30px;
}

.terms-section h3 {
	color: #0066cc;
	margin-bottom: 15px;
	font-size: 1.3rem;
}

.terms-section p {
	margin-bottom: 15px;
	line-height: 1.8;
}

.terms-section ul {
	margin-left: 20px;
	margin-bottom: 15px;
}

.terms-section li {
	margin-bottom: 8px;
	line-height: 1.6;
}

.last-updated {
	background-color: #f0f6ff;
	padding: 15px;
	border-radius: 5px;
	margin-bottom: 25px;
	border-left: 4px solid #0066cc;
}

.important-notice {
	background-color: #fff3cd;
	border: 1px solid #ffeaa7;
	padding: 20px;
	border-radius: 5px;
	margin: 25px 0;
}

.contact-info {
	background-color: #f8f9fa;
	padding: 20px;
	border-radius: 5px;
	margin-top: 30px;
}

.definition-list {
	margin: 20px 0;
}

.definition-list dt {
	font-weight: bold;
	margin-top: 15px;
	color: #0066cc;
}

.definition-list dd {
	margin-left: 20px;
	margin-bottom: 10px;
}
/*Service end*/