/* css/style.css - TPwallet主样式文件 */

/* 重置和基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8fafc;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: #1a202c;
}

a {
    color: #3a86ff;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #2667d6;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

/* 无障碍功能 */
.skip-nav {
    position: absolute;
    top: -40px;
    left: 0;
    background: #3a86ff;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 1001;
    border-radius: 0 0 4px 0;
    font-weight: 500;
}

.skip-nav:focus {
    top: 0;
}

/* Cookie 同意提示 */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(26, 32, 44, 0.95);
    color: white;
    padding: 20px;
    z-index: 1000;
    display: none;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.cookie-content p {
    flex: 1;
    margin: 0;
    font-size: 0.95rem;
}

.cookie-content a {
    color: #3a86ff;
    text-decoration: underline;
}

.cookie-content .btn {
    flex-shrink: 0;
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    gap: 8px;
    position: relative;
}

.btn-primary {
    background-color: #3a86ff;
    color: white;
    box-shadow: 0 4px 6px rgba(58, 134, 255, 0.2);
}

.btn-primary:hover {
    background-color: #2667d6;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(58, 134, 255, 0.3);
    color: white;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
    box-shadow: 0 4px 6px rgba(108, 117, 125, 0.2);
}

.btn-secondary:hover {
    background-color: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(108, 117, 125, 0.3);
    color: white;
}

.btn-large {
    padding: 15px 32px;
    font-size: 18px;
}

.btn-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* 头部样式 */
.header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 999;
    transition: all 0.3s ease;
}

.header.scrolled {
    padding: 5px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-size: 24px;
    font-weight: 700;
    color: #1a202c;
    gap: 8px;
}

.logo-icon {
    display: inline-block;
    width: 28px;
    height: 28px;
    background: url('../images/logo-icon.svg') no-repeat center;
    background-size: contain;
}

.logo-highlight {
    color: #3a86ff;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-item {
    position: relative;
    margin: 0 12px;
}

.nav-link {
    text-decoration: none;
    color: #4a5568;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link:hover, .nav-link.active {
    color: #3a86ff;
    background-color: rgba(58, 134, 255, 0.1);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
    padding: 10px 0;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 12px 20px;
    text-decoration: none;
    color: #4a5568;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: #f8fafc;
    color: #3a86ff;
}

.header-actions {
    display: flex;
    align-items: center;
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
}

.bar {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #4a5568;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* 英雄区域 */
.hero {
    padding: 100px 0 80px;
    background: linear-gradient(135deg, #f8fafc 0%, #e9ecef 100%);
    overflow: hidden;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 200%;
    background: radial-gradient(circle, rgba(58, 134, 255, 0.1) 0%, transparent 70%);
    z-index: 0;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #1a202c;
    background: linear-gradient(90deg, #3a86ff, #2667d6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #4a5568;
    margin-bottom: 30px;
    max-width: 90%;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.stat {
    text-align: center;
    flex: 1;
    min-width: 120px;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #3a86ff;
    line-height: 1;
}

.stat-text {
    font-size: 0.9rem;
    color: #718096;
    font-weight: 500;
}

.hero-image {
    flex: 1;
    text-align: center;
    position: relative;
}

.phone-mockup {
    position: relative;
    width: 300px;
    height: 600px;
    margin: 0 auto;
    background: linear-gradient(145deg, #ffffff, #e6e9ef);
    border-radius: 40px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 0 0 10px #f8fafc,
        0 0 0 12px #e2e8f0;
    padding: 15px;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background-color: #1a202c;
    border-radius: 30px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-screen img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* 合作伙伴区域 */
.partners {
    padding: 40px 0;
    background-color: white;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.partners-title {
    text-align: center;
    font-size: 1.125rem;
    color: #718096;
    margin-bottom: 30px;
    font-weight: 500;
}

.partners-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}

.partner-logo {
    flex: 1;
    min-width: 150px;
    max-width: 200px;
    text-align: center;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.partner-logo:hover {
    opacity: 1;
}

.partner-logo img {
    max-width: 100%;
    height: auto;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.partner-logo:hover img {
    filter: grayscale(0%);
}

/* 功能区域 */
.features {
    background-color: white;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 15px;
    color: #1a202c;
}

.section-subtitle {
    font-size: 1.125rem;
    color: #718096;
    text-align: center;
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: #f8fafc;
    border-radius: 16px;
    padding: 30px;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: #3a86ff;
}

.feature-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(58, 134, 255, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon::before {
    content: '';
    display: block;
    width: 40px;
    height: 40px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.chain-icon::before {
    background-image: url('../images/icons/chain.svg');
}

.hardware-icon::before {
    background-image: url('../images/icons/hardware.svg');
}

.dapp-icon::before {
    background-image: url('../images/icons/dapp.svg');
}

.exchange-icon::before {
    background-image: url('../images/icons/exchange.svg');
}

.analytics-icon::before {
    background-image: url('../images/icons/analytics.svg');
}

.nft-icon::before {
    background-image: url('../images/icons/nft.svg');
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #1a202c;
}

.feature-description {
    color: #718096;
    margin-bottom: 20px;
    flex-grow: 1;
}

.feature-link {
    display: inline-flex;
    align-items: center;
    color: #3a86ff;
    font-weight: 500;
    gap: 8px;
}

.arrow-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    background: url('../images/icons/arrow-right.svg') no-repeat center;
    background-size: contain;
    transition: transform 0.3s ease;
}

.feature-link:hover .arrow-icon {
    transform: translateX(5px);
}

/* 安全区域 */
.security {
    background-color: #f8fafc;
}

.security .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.security-content {
    flex: 1;
}

.security-list {
    list-style: none;
    margin: 30px 0 40px;
}

.security-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 15px;
}

.check-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    background: url('../images/icons/check.svg') no-repeat center;
    background-size: contain;
    flex-shrink: 0;
    margin-top: 3px;
}

.security-list span {
    color: #4a5568;
    line-height: 1.6;
}

.security-list strong {
    color: #1a202c;
}

.security-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.security-image {
    flex: 1;
    text-align: center;
}

.security-image img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* 下载区域 */
.download {
    background-color: white;
}

.download-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.download-card {
    background-color: #f8fafc;
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.download-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: #3a86ff;
}

.download-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.apple-large-icon {
    background-image: url('../images/icons/apple-large.svg');
}

.android-large-icon {
    background-image: url('../images/icons/android-large.svg');
}

.windows-large-icon {
    background-image: url('../images/icons/windows-large.svg');
}

.linux-large-icon {
    background-image: url('../images/icons/linux-large.svg');
}

.download-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #1a202c;
}

.download-description {
    color: #718096;
    margin-bottom: 20px;
    flex-grow: 1;
}

.download-info {
    font-size: 0.875rem;
    color: #a0aec0;
    margin-top: 15px;
}

.download-qr {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    border-radius: 16px;
    padding: 40px;
    max-width: 500px;
    margin: 0 auto;
    border: 1px solid #e2e8f0;
    gap: 30px;
}

.qr-code img {
    width: 150px;
    height: 150px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.qr-info h4 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #1a202c;
}

.qr-info p {
    color: #718096;
}

/* CTA区域 */
.cta-section {
    background: linear-gradient(135deg, #3a86ff 0%, #2667d6 100%);
    color: white;
    text-align: center;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
}

.cta-description {
    font-size: 1.25rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* 页脚 */
.footer {
    background-color: #1a202c;
    color: #a0aec0;
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
    gap: 8px;
}

.footer-description {
    margin-bottom: 20px;
    line-height: 1.7;
    font-size: 0.95rem;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.social-icon {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: #2d3748;
    border-radius: 50%;
    transition: all 0.3s ease;
    background-size: 20px;
    background-repeat: no-repeat;
    background-position: center;
}

.twitter-icon {
    background-image: url('../images/icons/twitter.svg');
}

.telegram-icon {
    background-image: url('../images/icons/telegram.svg');
}

.github-icon {
    background-image: url('../images/icons/github.svg');
}

.medium-icon {
    background-image: url('../images/icons/medium.svg');
}

.discord-icon {
    background-image: url('../images/icons/discord.svg');
}

.social-icon:hover {
    background-color: #3a86ff;
    transform: translateY(-3px);
}

.footer-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: white;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #a0aec0;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: #3a86ff;
}

.subscribe-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.subscribe-form input {
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #4a5568;
    background-color: #2d3748;
    color: white;
    font-size: 16px;
}

.subscribe-form input:focus {
    outline: none;
    border-color: #3a86ff;
}

.subscribe-note {
    font-size: 0.85rem;
    color: #718096;
    margin-top: 10px;
}

.subscribe-note a {
    color: #a0aec0;
    text-decoration: underline;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid #2d3748;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright {
    font-size: 0.95rem;
}

.footer-legal {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-legal a {
    color: #a0aec0;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.footer-legal a:hover {
    color: #3a86ff;
}

/* 回到顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #3a86ff;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(58, 134, 255, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #2667d6;
    transform: translateY(-3px);
}

.back-to-top-icon {
    display: block;
    width: 20px;
    height: 20px;
    background: url('../images/icons/chevron-up.svg') no-repeat center;
    background-size: contain;
}