/* 
 * 一城软件网站样式表
 * 使用专业蓝色为主色调
 */

/* 基础样式 */
:root {
    --primary-color: #0056b3;
    --primary-dark: #004494;
    --primary-light: #e6f0ff;
    --secondary-color: #2ecc71;
    --text-color: #333;
    --text-light: #666;
    --bg-color: #fff;
    --bg-alt: #f8f9fa;
    --border-color: #e0e0e0;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

ul {
    list-style: none;
}

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

.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: white;
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-light);
}

.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

/* 头部导航 */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: var(--transition);
}

#header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
}

.logo a {
    color: var(--primary-color);
}

nav .main-menu {
    display: flex;
}

nav .main-menu li {
    margin: 0 15px;
}

nav .main-menu a {
    font-weight: 500;
    color: var(--text-color);
    position: relative;
    padding: 5px 0;
}

nav .main-menu a:hover,
nav .main-menu a.active {
    color: var(--primary-color);
}

nav .main-menu a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
}

nav .main-menu a:hover:after,
nav .main-menu a.active:after {
    width: 100%;
}

.language-switch {
    display: flex;
    align-items: center;
}

.language-switch button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px 10px;
    margin-left: 5px;
    color: var(--text-light);
    transition: var(--transition);
}

.language-switch button:hover,
.language-switch button.active {
    color: var(--primary-color);
    font-weight: 500;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 3px 0;
    transition: var(--transition);
}

/* 首屏区域 */
.hero-section {
    padding: 160px 0 80px;
    background-color: var(--primary-light);
}

.hero-section .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-content {
    flex: 1;
    padding-right: 50px;
}

.company-name {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--primary-dark);
}

.slogan {
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.intro {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--text-color);
}

.cta-buttons {
    display: flex;
    gap: 15px;
}

.hero-image {
    flex: 1;
    text-align: right;
}

.hero-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

/* 核心优势 */
.advantages-section {
    background-color: var(--bg-color);
}

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

.advantage-item {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.advantage-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.advantage-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.advantage-item h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-dark);
}

.advantage-item p {
    color: var(--text-light);
}

/* 服务流程 */
.process-section {
    background-color: var(--bg-alt);
}

.process-container {
    max-width: 900px;
    margin: 0 auto;
}

.process-timeline {
    position: relative;
    padding: 30px 0;
}

.timeline-bar {
    position: absolute;
    top: 0;
    left: 30px;
    width: 4px;
    height: 100%;
    background-color: var(--border-color);
    z-index: 1;
}

.process-step {
    display: flex;
    margin-bottom: 40px;
    position: relative;
    opacity: 0.7;
    transition: var(--transition);
}

.process-step.active {
    opacity: 1;
}

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    border: 4px solid var(--primary-light);
    z-index: 2;
    box-shadow: var(--shadow);
}

.process-step.active .step-number {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-light);
}

.step-content {
    margin-left: 30px;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    flex: 1;
}

.step-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--primary-dark);
}

.process-progress {
    margin-top: 30px;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.progress-bar {
    width: 100%;
    height: 10px;
    background-color: var(--border-color);
    border-radius: 5px;
    margin-bottom: 15px;
    overflow: hidden;
}

.progress-indicator {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 5px;
    transition: width 0.5s ease;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    font-weight: 500;
}

/* 客户评价 */
.testimonials-section {
    background-color: var(--bg-color);
}

.testimonials-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-controls {
    display: flex;
    justify-content: space-between;
    position: absolute;
    width: 100%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.testimonial-controls button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: white;
    border: none;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--primary-color);
}

.testimonial-controls button:hover {
    background-color: var(--primary-color);
    color: white;
}

.testimonials-slider {
    position: relative;
    height: 320px;
}

.testimonial-item {
    position: absolute;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
}

.testimonial-item.active {
    opacity: 1;
    visibility: visible;
}

.testimonial-content {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    position: relative;
}

.quote-icon {
    color: var(--primary-light);
    font-size: 3rem;
    position: absolute;
    top: 20px;
    left: 20px;
    opacity: 0.5;
}

.testimonial-content p {
    position: relative;
    z-index: 1;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--primary-dark);
}

.author-info p {
    margin: 0;
    color: var(--text-light);
    font-style: normal;
}

/* 团队介绍 */
.team-section {
    background-color: var(--bg-alt);
}

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

.team-member {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.member-photo {
    height: 250px;
    overflow: hidden;
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.team-member:hover .member-photo img {
    transform: scale(1.05);
}

.member-info {
    padding: 20px;
}

.member-info h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
    color: var(--primary-dark);
}

.member-position {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 10px;
}

.member-description {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* 价格计算器 */
.calculator-section {
    background-color: var(--bg-color);
}

.calculator-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.calculator-form {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.form-group select,
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group select:focus,
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px var(--primary-light);
}

.checkbox-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.checkbox-item input[type="checkbox"] {
    margin-right: 8px;
}

.calculator-result {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.result-header {
    margin-bottom: 20px;
}

.result-header h3 {
    font-size: 1.5rem;
    color: var(--primary-dark);
}

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

.price-min, .price-max {
    text-align: center;
    flex: 1;
}

.price-label {
    display: block;
    font-weight: 500;
    margin-bottom: 10px;
    color: var(--text-light);
}

.price-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.price-note {
    margin-bottom: 30px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.cta-container {
    margin-top: auto;
}

/* FAQ */
.faq-section {
    background-color: var(--bg-alt);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: var(--shadow);
}

.faq-question {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.faq-question:hover {
    background-color: var(--primary-light);
}

.faq-question h3 {
    font-size: 1.1rem;
    color: var(--text-color);
    font-weight: 500;
}

.faq-toggle {
    color: var(--primary-color);
    transition: var(--transition);
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 20px 20px;
    max-height: 1000px;
}

/* 联系我们 */
.contact-section {
    background-color: var(--bg-color);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
}

.contact-info {
    background-color: var(--primary-color);
    color: white;
    padding: 30px;
    border-radius: 10px;
}

.info-item {
    display: flex;
    margin-bottom: 20px;
}

.info-icon {
    font-size: 1.5rem;
    margin-right: 15px;
}

.info-content h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.business-hours {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.business-hours h3 {
    margin-bottom: 10px;
}

.contact-form-container {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.contact-form .form-group:last-child {
    margin-bottom: 25px;
}

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

/* 页脚 */
#footer {
    background-color: #333;
    color: #fff;
    padding: 60px 0 20px;
}

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

.footer-logo h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.footer-logo h2 a {
    color: white;
}

.footer-logo p {
    color: #ccc;
}

.footer-links h3,
.footer-services h3,
.footer-newsletter h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: white;
}

.footer-links ul li,
.footer-services ul li {
    margin-bottom: 10px;
}

.footer-links ul li a,
.footer-services ul li {
    color: #ccc;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: white;
    padding-left: 5px;
}

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

.newsletter-form {
    display: flex;
}

.newsletter-form input {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 4px 0 0 4px;
}

.newsletter-form button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0 15px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background-color: var(--primary-dark);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #555;
}

.copyright {
    color: #aaa;
    font-size: 0.9rem;
}

.social-links {
    display: flex;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #444;
    border-radius: 50%;
    margin-left: 10px;
    color: white;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

/* 返回顶部按钮 */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    box-shadow: var(--shadow);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-5px);
}